Chromium Code Reviews| Index: chrome/browser/ui/translate/translate_bubble_view_state_transition.h |
| diff --git a/chrome/browser/ui/translate/translate_bubble_view_state_transition.h b/chrome/browser/ui/translate/translate_bubble_view_state_transition.h |
| index 383bc24cb7ad754f3125c320470585ac12c2cd5d..e56e9e653a45579557603110361803e9e27ab4ab 100644 |
| --- a/chrome/browser/ui/translate/translate_bubble_view_state_transition.h |
| +++ b/chrome/browser/ui/translate/translate_bubble_view_state_transition.h |
| @@ -8,6 +8,63 @@ |
| #include "base/macros.h" |
| #include "chrome/browser/ui/translate/translate_bubble_model.h" |
| +namespace { |
|
groby-ooo-7-16
2016/04/29 05:26:14
Please don't use unnamed namespaces in .h files (s
ftang
2016/04/29 14:52:29
Done.
|
| +enum TranslateBubbleUiEvent { |
| + // Bubble enters the options state. |
| + SET_STATE_OPTIONS = 1, |
| + |
| + // Bubble leaves the options state. |
| + LEAVE_STATE_OPTIONS = 2, |
| + |
| + // User click the advanced link |
| + ADVANCED_LINK_CLICKED = 3, |
| + |
| + // User check the "always translate" checkbox |
| + ALWAYS_TRANSLATE_CHECKED = 4, |
| + |
| + // User uncheck the "always translate" checkbox |
| + ALWAYS_TRANSLATE_UNCHECKED = 5, |
| + |
| + // User select the "Nope" in option menu |
| + NOPE_MENU_CLICKED = 6, |
| + |
| + // User select the "Never translate language" in option menu |
| + NEVER_TRANSLATE_LANGUAGE_MENU_CLICKED = 7, |
| + |
| + // User select the "Never translate this site" in option menu |
| + NEVER_TRANSLATE_SITE_MENU_CLICKED = 8, |
| + |
| + // User click "Translate" button |
| + TRANSLATE_BUTTON_CLICKED = 9, |
| + |
| + // User click the "Done" button |
| + DONE_BUTTON_CLICKED = 10, |
| + |
| + // User click the "Cancel" button |
| + CANCEL_BUTTON_CLICKED = 11, |
| + |
| + // User click the "Closed" [X] button |
| + CLOSE_BUTTON_CLICKED = 12, |
| + |
| + // User click the "Try Again" button |
| + TRY_AGAIN_BUTTON_CLICKED = 13, |
| + |
| + // User click the "Show Original" button |
| + SHOW_ORIGINAL_BUTTON_CLICKED = 14, |
| + |
| + // User click the "Setting" link |
| + SETTING_LINK_CLICKED = 15, |
| + |
| + // User change the "Source language" |
| + SOURCE_LANGUAGE_MENU_CLICKED = 16, |
| + |
| + // User change the "Target language" |
| + TARGET_LANGUAGE_MENU_CLICKED = 17 , |
| + |
| + TRANSLATE_BUBBLE_UI_EVENT_MAX |
| +}; |
| +} // namespace |
| + |
| // The class which manages the transition of the view state of the Translate |
| // bubble. |
| class TranslateBubbleViewStateTransition { |