| Index: chrome/browser/ui/chrome_bubble_manager.cc
|
| diff --git a/chrome/browser/ui/chrome_bubble_manager.cc b/chrome/browser/ui/chrome_bubble_manager.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fc48cfae00a2c90a8c2f87d9eb76a9ad3b4e05e4
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/chrome_bubble_manager.cc
|
| @@ -0,0 +1,30 @@
|
| +// 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.
|
| +
|
| +#include "chrome/browser/ui/chrome_bubble_manager.h"
|
| +
|
| +ChromeBubbleManager::ChromeBubbleManager() {}
|
| +
|
| +ChromeBubbleManager::~ChromeBubbleManager() {}
|
| +
|
| +void ChromeBubbleManager::TabDetachedAt(content::WebContents* contents,
|
| + int index) {
|
| + CloseAllBubbles(BUBBLE_CLOSE_TABDETACHED);
|
| + // Any bubble that didn't close should update its anchor position.
|
| + UpdateAllBubbleAnchors();
|
| +}
|
| +
|
| +void ChromeBubbleManager::TabDeactivated(content::WebContents* contents) {
|
| + CloseAllBubbles(BUBBLE_CLOSE_TABSWITCHED);
|
| +}
|
| +
|
| +void ChromeBubbleManager::WindowFullscreenStateChanged() {
|
| + CloseAllBubbles(BUBBLE_CLOSE_FULLSCREEN_TOGGLED);
|
| + // Any bubble that didn't close should update its anchor position.
|
| + UpdateAllBubbleAnchors();
|
| +}
|
| +
|
| +void ChromeBubbleManager::NavigationEntryCommitted() {
|
| + CloseAllBubbles(BUBBLE_CLOSE_NAVIGATED);
|
| +}
|
|
|