| 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 #include "chrome/browser/ui/chrome_bubble_manager.h" |
| 6 |
| 7 ChromeBubbleManager::ChromeBubbleManager() {} |
| 8 |
| 9 ChromeBubbleManager::~ChromeBubbleManager() {} |
| 10 |
| 11 void ChromeBubbleManager::TabDetachedAt(content::WebContents* contents, |
| 12 int index) { |
| 13 CloseAllBubbles(BUBBLE_CLOSE_TABDETACHED); |
| 14 // Any bubble that didn't close should update its anchor position. |
| 15 UpdateAllBubbleAnchors(); |
| 16 } |
| 17 |
| 18 void ChromeBubbleManager::TabDeactivated(content::WebContents* contents) { |
| 19 CloseAllBubbles(BUBBLE_CLOSE_TABSWITCHED); |
| 20 } |
| 21 |
| 22 void ChromeBubbleManager::WindowFullscreenStateChanged() { |
| 23 CloseAllBubbles(BUBBLE_CLOSE_FULLSCREEN_TOGGLED); |
| 24 // Any bubble that didn't close should update its anchor position. |
| 25 UpdateAllBubbleAnchors(); |
| 26 } |
| 27 |
| 28 void ChromeBubbleManager::NavigationEntryCommitted() { |
| 29 CloseAllBubbles(BUBBLE_CLOSE_NAVIGATED); |
| 30 } |
| OLD | NEW |