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

Side by Side Diff: chrome/browser/ui/chrome_web_contents_observer.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: Update 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_WEB_CONTENTS_OBSERVER_H_
6 #define CHROME_BROWSER_UI_CHROME_WEB_CONTENTS_OBSERVER_H_
7
8 #include "content/public/browser/web_contents_observer.h"
9 #include "content/public/browser/web_contents_user_data.h"
10
11 class ChromeBubbleManager;
12
13 class ChromeWebContentsObserver
hcarmona 2015/08/06 17:43:44 Move this to anon. namespace in chrome bubble mana
14 : public content::WebContentsObserver,
15 public content::WebContentsUserData<ChromeWebContentsObserver> {
16 public:
17 ~ChromeWebContentsObserver() override;
18
19 void SetBubbleManager(ChromeBubbleManager* manager);
20
21 // WebContentsObserver:
22 void NavigationEntryCommitted(
23 const content::LoadCommittedDetails& details) override;
24 void WebContentsDestroyed() override;
25
26 private:
27 friend class content::WebContentsUserData<ChromeWebContentsObserver>;
28
29 explicit ChromeWebContentsObserver(content::WebContents* web_contents);
30
31 // Weak.
32 ChromeBubbleManager* manager_;
33 };
34
35 #endif // CHROME_BROWSER_UI_CHROME_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698