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

Side by Side Diff: chrome/browser/ui/chrome_bubble_manager.cc

Issue 1251633002: Add BubbleManager to manage bubbles and ChromeBubbleManager for events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TESTS! 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 #include "chrome/browser/ui/chrome_bubble_manager.h"
6
7 ChromeBubbleManager::ChromeBubbleManager() {}
8
9 ChromeBubbleManager::~ChromeBubbleManager() {}
10
11 void ChromeBubbleManager::WindowFullscreenStateChanged() {
12 CloseAllBubbles(BUBBLE_CLOSE_FULLSCREEN_TOGGLED);
13 // Any bubble that didn't close should update its anchor position.
14 UpdateAllBubbleAnchors();
15 }
16
17 void ChromeBubbleManager::TabDeactivated() {
18 CloseAllBubbles(BUBBLE_CLOSE_TABSWITCHED);
19 }
20
21 void ChromeBubbleManager::TabDetached() {
22 CloseAllBubbles(BUBBLE_CLOSE_TABDETACHED);
23 // Any bubble that didn't close should update its anchor position.
24 UpdateAllBubbleAnchors();
25 }
26
27 void ChromeBubbleManager::NavigationEntryCommitted() {
28 CloseAllBubbles(BUBBLE_CLOSE_NAVIGATED);
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698