Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: chrome/browser/ui/translate/translate_bubble_view_state_transition.h

Issue 1923143003: Implement the 2016Q2 Translate UI designe spec out in (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor changes in comments Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..d99bcf7d26a6009b3bf8b32ce10010d2d63118ee 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.
+ 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 "Nope" in the "Options" menu.
+ NOPE_MENU_CLICKED,
+
+ // The user selected "Never translate language" in the "Options" menu.
+ NEVER_TRANSLATE_LANGUAGE_MENU_CLICKED,
+
+ // The user selected "Never translate this site" in the "Options" menu.
+ 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 {

Powered by Google App Engine
This is Rietveld 408576698