Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_VIEW_STATE_TRANSITION_H_ | 5 #ifndef CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_VIEW_STATE_TRANSITION_H_ |
| 6 #define CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_VIEW_STATE_TRANSITION_H_ | 6 #define CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_VIEW_STATE_TRANSITION_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/translate/translate_bubble_model.h" | 9 #include "chrome/browser/ui/translate/translate_bubble_model.h" |
| 10 | 10 |
| 11 namespace translate { | 11 namespace translate { |
| 12 | 12 |
| 13 enum TranslateBubbleUiEvent { | 13 enum TranslateBubbleUiEvent { |
| 14 // Start with 1 to match existing UMA value: see http://crbug.com/612558 | |
|
msw
2016/05/17 21:14:12
nit: values
| |
| 14 // The user clicked the advanced option. | 15 // The user clicked the advanced option. |
| 15 SET_STATE_OPTIONS, | 16 SET_STATE_OPTIONS = 1, |
| 16 | 17 |
| 17 // The user clicked "Done" and went back from the advanced option. | 18 // The user clicked "Done" and went back from the advanced option. |
| 18 LEAVE_STATE_OPTIONS, | 19 LEAVE_STATE_OPTIONS, |
| 19 | 20 |
| 20 // The user clicked the advanced link. | 21 // The user clicked the advanced link. |
| 21 ADVANCED_LINK_CLICKED, | 22 ADVANCED_LINK_CLICKED, |
| 22 | 23 |
| 23 // The user checked the "always translate" checkbox. | 24 // The user checked the "always translate" checkbox. |
| 24 ALWAYS_TRANSLATE_CHECKED, | 25 ALWAYS_TRANSLATE_CHECKED, |
| 25 | 26 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 98 // The view type. When the current view type is not 'Advanced' view, this is | 99 // The view type. When the current view type is not 'Advanced' view, this is |
| 99 // equivalent to |view_state_|. Otherwise, this is the previous view type | 100 // equivalent to |view_state_|. Otherwise, this is the previous view type |
| 100 // before the user opens the 'Advanced' view. This is used to navigate when | 101 // before the user opens the 'Advanced' view. This is used to navigate when |
| 101 // pressing 'Cancel' button on the 'Advanced' view. | 102 // pressing 'Cancel' button on the 'Advanced' view. |
| 102 TranslateBubbleModel::ViewState view_state_before_advanced_view_; | 103 TranslateBubbleModel::ViewState view_state_before_advanced_view_; |
| 103 | 104 |
| 104 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleViewStateTransition); | 105 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleViewStateTransition); |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 #endif // CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_VIEW_STATE_TRANSITION_H_ | 108 #endif // CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_VIEW_STATE_TRANSITION_H_ |
| OLD | NEW |