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 // The user clicked the advanced option. | 14 // The user clicked the advanced option. |
| 15 SET_STATE_OPTIONS, | 15 SET_STATE_OPTIONS = 1, |
|
groby-ooo-7-16
2016/05/17 19:44:07
Please add a comment why we need to force this to
| |
| 16 | 16 |
| 17 // The user clicked "Done" and went back from the advanced option. | 17 // The user clicked "Done" and went back from the advanced option. |
| 18 LEAVE_STATE_OPTIONS, | 18 LEAVE_STATE_OPTIONS, |
| 19 | 19 |
| 20 // The user clicked the advanced link. | 20 // The user clicked the advanced link. |
| 21 ADVANCED_LINK_CLICKED, | 21 ADVANCED_LINK_CLICKED, |
| 22 | 22 |
| 23 // The user checked the "always translate" checkbox. | 23 // The user checked the "always translate" checkbox. |
| 24 ALWAYS_TRANSLATE_CHECKED, | 24 ALWAYS_TRANSLATE_CHECKED, |
| 25 | 25 |
| (...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 | 98 // 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 | 99 // 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 | 100 // before the user opens the 'Advanced' view. This is used to navigate when |
| 101 // pressing 'Cancel' button on the 'Advanced' view. | 101 // pressing 'Cancel' button on the 'Advanced' view. |
| 102 TranslateBubbleModel::ViewState view_state_before_advanced_view_; | 102 TranslateBubbleModel::ViewState view_state_before_advanced_view_; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleViewStateTransition); | 104 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleViewStateTransition); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 #endif // CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_VIEW_STATE_TRANSITION_H_ | 107 #endif // CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_VIEW_STATE_TRANSITION_H_ |
| OLD | NEW |