| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_BUBBLE_BUBBLE_CLOSE_REASON_H_ | 5 #ifndef COMPONENTS_BUBBLE_BUBBLE_CLOSE_REASON_H_ |
| 6 #define COMPONENTS_BUBBLE_BUBBLE_CLOSE_REASON_H_ | 6 #define COMPONENTS_BUBBLE_BUBBLE_CLOSE_REASON_H_ |
| 7 | 7 |
| 8 // List of reasons why a bubble might close. These correspond to various events | 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. | 9 // from the UI. Not all platforms will receive all events. |
| 10 enum BubbleCloseReason { | 10 enum BubbleCloseReason { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 // The parent window has entered or exited fullscreen mode. Will also be | 30 // The parent window has entered or exited fullscreen mode. Will also be |
| 31 // called for immersive fullscreen. | 31 // called for immersive fullscreen. |
| 32 BUBBLE_CLOSE_FULLSCREEN_TOGGLED, | 32 BUBBLE_CLOSE_FULLSCREEN_TOGGLED, |
| 33 | 33 |
| 34 // The user selected an affirmative response in the bubble. | 34 // The user selected an affirmative response in the bubble. |
| 35 BUBBLE_CLOSE_ACCEPTED, | 35 BUBBLE_CLOSE_ACCEPTED, |
| 36 | 36 |
| 37 // The user selected a negative response in the bubble. | 37 // The user selected a negative response in the bubble. |
| 38 BUBBLE_CLOSE_CANCELED, | 38 BUBBLE_CLOSE_CANCELED, |
| 39 |
| 40 // A bubble's owning frame is being destroyed. |
| 41 BUBBLE_CLOSE_FRAME_DESTROYED, |
| 39 }; | 42 }; |
| 40 | 43 |
| 41 #endif // COMPONENTS_BUBBLE_BUBBLE_CLOSE_REASON_H_ | 44 #endif // COMPONENTS_BUBBLE_BUBBLE_CLOSE_REASON_H_ |
| OLD | NEW |