Chromium Code Reviews| 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..4f6e2360e7af3970a6c7891fa62a985df2b16f71 |
| --- /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; |
| + |
| + // WebContentsObserver: |
|
msw
2015/08/26 20:29:09
nit: "content::" prefix.
hcarmona
2015/08/26 20:52:28
Done.
|
| + 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_ |