Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7091)

Unified Diff: chrome/browser/ui/chrome_bubble_manager.h

Issue 1251633002: Add BubbleManager to manage bubbles and ChromeBubbleManager for events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn nit Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/chrome_bubble_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/chrome_bubble_manager.h
diff --git a/chrome/browser/ui/chrome_bubble_manager.h b/chrome/browser/ui/chrome_bubble_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..2c7dd7e96b0e261942b9e0fc37069c019f3f2964
--- /dev/null
+++ b/chrome/browser/ui/chrome_bubble_manager.h
@@ -0,0 +1,40 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_CHROME_BUBBLE_MANAGER_H_
+#define CHROME_BROWSER_UI_CHROME_BUBBLE_MANAGER_H_
+
+#include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
+#include "components/bubble/bubble_manager.h"
+#include "content/public/browser/web_contents_observer.h"
+
+class TabStripModel;
+
+class ChromeBubbleManager : public BubbleManager,
+ public TabStripModelObserver,
+ public content::WebContentsObserver {
+ public:
+ explicit ChromeBubbleManager(TabStripModel* tab_strip_model);
+ ~ChromeBubbleManager() override;
+
+ // TabStripModelObserver:
+ void TabDetachedAt(content::WebContents* contents, int index) override;
+ void TabDeactivated(content::WebContents* contents) override;
+ void ActiveTabChanged(content::WebContents* old_contents,
+ content::WebContents* new_contents,
+ int index,
+ int reason) override;
+
+ // content::WebContentsObserver:
+ void DidToggleFullscreenModeForTab(bool entered_fullscreen) override;
+ void NavigationEntryCommitted(
+ const content::LoadCommittedDetails& load_details) override;
+
+ private:
+ TabStripModel* tab_strip_model_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromeBubbleManager);
+};
+
+#endif // CHROME_BROWSER_UI_CHROME_BUBBLE_MANAGER_H_
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/chrome_bubble_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698