| OLD | NEW |
| (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 class ChromeBubbleManager : public BubbleManager, |
| 17 public KeyedService { |
| 18 public: |
| 19 ChromeBubbleManager(); |
| 20 ~ChromeBubbleManager() override; |
| 21 |
| 22 void ListenToWebContents(content::WebContents* web_contents); |
| 23 |
| 24 void FullscreenToggle(content::WebContents* context); |
| 25 void TabBlur(content::WebContents* context); |
| 26 void TabFocus(content::WebContents* context); |
| 27 void TabDetached(content::WebContents* context); |
| 28 void NavigationEntryCommitted(content::WebContents* context, |
| 29 const content::LoadCommittedDetails& details); |
| 30 void WebContentsDestroyed(content::WebContents* context); |
| 31 |
| 32 private: |
| 33 void ScheduleShowBubble(base::WeakPtr<BubbleController> controller) override; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(ChromeBubbleManager); |
| 36 }; |
| 37 |
| 38 #endif // CHROME_BROWSER_UI_CHROME_BUBBLE_MANAGER_H_ |
| OLD | NEW |