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

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: Partial Feedback 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 unified diff | Download patch
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 "components/bubble/bubble_manager.h"
9 #include "components/keyed_service/core/keyed_service.h"
10 #include "content/public/browser/navigation_details.h"
11
12 namespace content {
13 class WebContents;
14 } // content
15
16 // TODO(hcarmona): Inherit from TabStripModelObserver to simplify code.
17 class ChromeBubbleManager : public BubbleManager,
18 public KeyedService {
19 public:
20 ChromeBubbleManager();
21 ~ChromeBubbleManager() override;
22
23 void ListenToWebContents(content::WebContents* web_contents);
24
25 void FullscreenToggle(content::WebContents* context);
26 void TabBlur(content::WebContents* context);
27 void TabFocus(content::WebContents* context);
28 void TabDetached(content::WebContents* context);
29 void NavigationEntryCommitted(content::WebContents* context,
30 const content::LoadCommittedDetails& details);
31 void WebContentsDestroyed(content::WebContents* context);
32
33 private:
34 void ScheduleShowBubble(base::WeakPtr<BubbleController> controller) override;
35
36 DISALLOW_COPY_AND_ASSIGN(ChromeBubbleManager);
37 };
38
39 #endif // CHROME_BROWSER_UI_CHROME_BUBBLE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698