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

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: Fix trybots pt2 Created 5 years, 3 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::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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698