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

Side by Side 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, 3 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_CHROME_BUBBLE_MANAGER_H_
6 #define CHROME_BROWSER_UI_CHROME_BUBBLE_MANAGER_H_
7
8 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
9 #include "components/bubble/bubble_manager.h"
10 #include "content/public/browser/web_contents_observer.h"
11
12 class TabStripModel;
13
14 class ChromeBubbleManager : public BubbleManager,
15 public TabStripModelObserver,
16 public content::WebContentsObserver {
17 public:
18 explicit ChromeBubbleManager(TabStripModel* tab_strip_model);
19 ~ChromeBubbleManager() override;
20
21 // TabStripModelObserver:
22 void TabDetachedAt(content::WebContents* contents, int index) override;
23 void TabDeactivated(content::WebContents* contents) override;
24 void ActiveTabChanged(content::WebContents* old_contents,
25 content::WebContents* new_contents,
26 int index,
27 int reason) override;
28
29 // content::WebContentsObserver:
30 void DidToggleFullscreenModeForTab(bool entered_fullscreen) override;
31 void NavigationEntryCommitted(
32 const content::LoadCommittedDetails& load_details) override;
33
34 private:
35 TabStripModel* tab_strip_model_;
36
37 DISALLOW_COPY_AND_ASSIGN(ChromeBubbleManager);
38 };
39
40 #endif // CHROME_BROWSER_UI_CHROME_BUBBLE_MANAGER_H_
OLDNEW
« 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