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

Side by Side Diff: components/bubble/bubble_close_reason.h

Issue 1251633002: Add BubbleManager to manage bubbles and ChromeBubbleManager for events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn nit 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
« no previous file with comments | « components/bubble/OWNERS ('k') | components/bubble/bubble_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef COMPONENTS_BUBBLE_BUBBLE_CLOSE_REASON_H_
6 #define COMPONENTS_BUBBLE_BUBBLE_CLOSE_REASON_H_
7
8 // List of reasons why a bubble might close. These correspond to various events
9 // from the UI. Not all platforms will receive all events.
10 enum BubbleCloseReason {
11 // Bubble was closed without any user interaction.
12 BUBBLE_CLOSE_FOCUS_LOST,
13
14 // User did not interact with the bubble, but changed tab.
15 BUBBLE_CLOSE_TABSWITCHED,
16
17 // User did not interact with the bubble, but detached the tab.
18 BUBBLE_CLOSE_TABDETACHED,
19
20 // User dismissed the bubble. (ESC, close, etc.)
21 BUBBLE_CLOSE_USER_DISMISSED,
22
23 // There has been a navigation event. (Link, URL typed, refresh, etc.)
24 BUBBLE_CLOSE_NAVIGATED,
25
26 // The parent window has entered or exited fullscreen mode. Will also be
27 // called for immersive fullscreen.
28 BUBBLE_CLOSE_FULLSCREEN_TOGGLED,
29
30 // The user selected an affirmative response in the bubble.
31 BUBBLE_CLOSE_ACCEPTED,
32
33 // The user selected a negative response in the bubble.
34 BUBBLE_CLOSE_CANCELED,
35
36 // The bubble WILL be closed regardless of return value for |ShouldClose|.
37 // Ex: The bubble's parent window is being destroyed.
38 BUBBLE_CLOSE_FORCED,
39 };
40
41 #endif // COMPONENTS_BUBBLE_BUBBLE_CLOSE_REASON_H_
OLDNEW
« no previous file with comments | « components/bubble/OWNERS ('k') | components/bubble/bubble_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698