QUIC - cleanup changes to sync chromium tree with internal source.
[chromium-blink-merge.git] / components / bubble / bubble_close_reason.h
blobbfd84b329145c1c193d97c5de3f9e42ad2683b05
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.
5 #ifndef COMPONENTS_BUBBLE_BUBBLE_CLOSE_REASON_H_
6 #define COMPONENTS_BUBBLE_BUBBLE_CLOSE_REASON_H_
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,
14 // User did not interact with the bubble, but changed tab.
15 BUBBLE_CLOSE_TABSWITCHED,
17 // User did not interact with the bubble, but detached the tab.
18 BUBBLE_CLOSE_TABDETACHED,
20 // User dismissed the bubble. (ESC, close, etc.)
21 BUBBLE_CLOSE_USER_DISMISSED,
23 // There has been a navigation event. (Link, URL typed, refresh, etc.)
24 BUBBLE_CLOSE_NAVIGATED,
26 // The parent window has entered or exited fullscreen mode. Will also be
27 // called for immersive fullscreen.
28 BUBBLE_CLOSE_FULLSCREEN_TOGGLED,
30 // The user selected an affirmative response in the bubble.
31 BUBBLE_CLOSE_ACCEPTED,
33 // The user selected a negative response in the bubble.
34 BUBBLE_CLOSE_CANCELED,
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,
41 #endif // COMPONENTS_BUBBLE_BUBBLE_CLOSE_REASON_H_