| OLD | NEW |
| (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_ |
| OLD | NEW |