summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/ui/webui/tab_strip/tab_strip_ui.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-07-16 11:45:35 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-07-17 08:59:23 +0000
commit552906b0f222c5d5dd11b9fd73829d510980461a (patch)
tree3a11e6ed0538a81dd83b20cf3a4783e297f26d91 /chromium/chrome/browser/ui/webui/tab_strip/tab_strip_ui.h
parent1b05827804eaf047779b597718c03e7d38344261 (diff)
BASELINE: Update Chromium to 83.0.4103.122
Change-Id: Ie3a82f5bb0076eec2a7c6a6162326b4301ee291e Reviewed-by: Michael BrĂ¼ning <michael.bruning@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.h32
1 files changed, 4 insertions, 28 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 f153e10910f..b30afc1e6d4 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,47 +12,23 @@
#include "content/public/browser/web_ui_controller.h"
class Browser;
+class TabStripUIEmbedder;
class TabStripUIHandler;
-struct TabStripUILayout;
-namespace gfx {
-class Point;
-} // namespace gfx
-
-namespace ui {
-class AcceleratorProvider;
-class MenuModel;
-}
+extern const char kWebUITabIdDataType[];
+extern const char kWebUITabGroupIdDataType[];
// The WebUI version of the tab strip in the browser. It is currently only
// supported on ChromeOS in tablet mode.
class TabStripUI : public content::WebUIController {
public:
- // Interface to be implemented by the embedder. Provides native UI
- // functionality such as showing context menus.
- class Embedder {
- public:
- 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.
- void Initialize(Browser* browser, Embedder* embedder);
+ void Initialize(Browser* browser, TabStripUIEmbedder* embedder);
// The embedder should call this whenever the result of
// Embedder::GetLayout() changes.