diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-03-11 11:32:04 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-03-18 13:40:17 +0000 |
commit | 31ccca0778db85c159634478b4ec7997f6704860 (patch) | |
tree | 3d33fc3afd9d5ec95541e1bbe074a9cf8da12a0e /chromium/chrome/browser/ui/webui/tab_strip/tab_strip_ui.h | |
parent | 248b70b82a40964d5594eb04feca0fa36716185d (diff) |
BASELINE: Update Chromium to 80.0.3987.136
Change-Id: I98e1649aafae85ba3a83e67af00bb27ef301db7b
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'chromium/chrome/browser/ui/webui/tab_strip/tab_strip_ui.h')
-rw-r--r-- | chromium/chrome/browser/ui/webui/tab_strip/tab_strip_ui.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/chromium/chrome/browser/ui/webui/tab_strip/tab_strip_ui.h b/chromium/chrome/browser/ui/webui/tab_strip/tab_strip_ui.h index 6f126eeb482..f153e10910f 100644 --- a/chromium/chrome/browser/ui/webui/tab_strip/tab_strip_ui.h +++ b/chromium/chrome/browser/ui/webui/tab_strip/tab_strip_ui.h @@ -12,12 +12,15 @@ #include "content/public/browser/web_ui_controller.h" class Browser; +class TabStripUIHandler; +struct TabStripUILayout; namespace gfx { class Point; -} +} // namespace gfx namespace ui { +class AcceleratorProvider; class MenuModel; } @@ -32,24 +35,38 @@ class TabStripUI : public content::WebUIController { Embedder() = default; virtual ~Embedder() {} + virtual const ui::AcceleratorProvider* GetAcceleratorProvider() const = 0; + virtual void CloseContainer() = 0; virtual void ShowContextMenuAtPoint( gfx::Point point, std::unique_ptr<ui::MenuModel> menu_model) = 0; + + virtual TabStripUILayout GetLayout() = 0; }; explicit TabStripUI(content::WebUI* web_ui); ~TabStripUI() override; - // Initialize TabStripUI with its embedder and the Browser it's running in. - // Must be called exactly once. The WebUI won't work until this is called. + // Initialize TabStripUI with its embedder and the Browser it's + // running in. Must be called exactly once. The WebUI won't work until + // this is called. void Initialize(Browser* browser, Embedder* embedder); + // The embedder should call this whenever the result of + // Embedder::GetLayout() changes. + void LayoutChanged(); + + // The embedder should call this whenever the tab strip gains keyboard focus. + void ReceivedKeyboardFocus(); + private: void HandleThumbnailUpdate(int extension_tab_id, ThumbnailTracker::CompressedThumbnailData image); + TabStripUIHandler* handler_ = nullptr; + DISALLOW_COPY_AND_ASSIGN(TabStripUI); }; |