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..6f09f742580a586914a28c64267297aa5281b927 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,65 @@ |
| #include "base/macros.h" |
| #include "chrome/browser/ui/translate/translate_bubble_model.h" |
| +namespace translate { |
| + |
| +enum TranslateBubbleUiEvent { |
| + // The user clicked the advanced option. |
| + SET_STATE_OPTIONS, |
| + |
| + // The user clicked "Done" and went back from the advanced option. |
| + LEAVE_STATE_OPTIONS, |
| + |
| + // The user clicked the advanced link. |
|
msw
2016/05/03 22:33:34
How is this different from SET_STATE_OPTIONS? Shou
ftang
2016/05/03 23:55:41
ADVANCED_LINK_CLICKED record the link (the UI towa
msw
2016/05/04 00:19:20
Acknowledged.
|
| + ADVANCED_LINK_CLICKED, |
| + |
| + // The user checked the "always translate" checkbox. |
| + ALWAYS_TRANSLATE_CHECKED, |
| + |
| + // The user unchecked the "always translate" checkbox. |
| + ALWAYS_TRANSLATE_UNCHECKED, |
| + |
| + // The user selected the "Nope" in the "Options" menu. |
|
msw
2016/05/03 22:33:34
nit: selected "Nope"
ftang
2016/05/03 23:55:41
Done.
|
| + NOPE_MENU_CLICKED, |
| + |
| + // The user selected the "Never translate language" in the "Options" menu. |
|
msw
2016/05/03 22:33:34
nit: selected "Never
ftang
2016/05/03 23:55:41
Done.
|
| + NEVER_TRANSLATE_LANGUAGE_MENU_CLICKED, |
| + |
| + // The user selected the "Never translate this site" in the "Options" menu. |
|
msw
2016/05/03 22:33:34
nit: selected "Never
ftang
2016/05/03 23:55:41
Done.
|
| + NEVER_TRANSLATE_SITE_MENU_CLICKED, |
| + |
| + // The user clicked the "Translate" button. |
| + TRANSLATE_BUTTON_CLICKED, |
| + |
| + // The user clicked the "Done" button. |
| + DONE_BUTTON_CLICKED, |
| + |
| + // The user clicked the "Cancel" button. |
| + CANCEL_BUTTON_CLICKED, |
| + |
| + // The user clicked the "Closed" [X] button. |
| + CLOSE_BUTTON_CLICKED, |
| + |
| + // The user clicked the "Try Again" button. |
| + TRY_AGAIN_BUTTON_CLICKED, |
| + |
| + // The user clicked the "Show Original" button. |
| + SHOW_ORIGINAL_BUTTON_CLICKED, |
| + |
| + // The user clicked the "Settings" link. |
| + SETTINGS_LINK_CLICKED, |
| + |
| + // The user changed the "Source language". |
| + SOURCE_LANGUAGE_MENU_CLICKED, |
| + |
| + // The user changed the "Target language". |
| + TARGET_LANGUAGE_MENU_CLICKED, |
| + |
| + TRANSLATE_BUBBLE_UI_EVENT_MAX |
| +}; |
| + |
| +} // namespace translate |
| + |
| // The class which manages the transition of the view state of the Translate |
| // bubble. |
| class TranslateBubbleViewStateTransition { |