OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_COMMON_INSTANT_TYPES_H_ | 5 #ifndef CHROME_COMMON_INSTANT_TYPES_H_ |
6 #define CHROME_COMMON_INSTANT_TYPES_H_ | 6 #define CHROME_COMMON_INSTANT_TYPES_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 ThemeBackgroundImageAlignment image_vertical_alignment; | 136 ThemeBackgroundImageAlignment image_vertical_alignment; |
137 | 137 |
138 // The theme background image tiling is only valid if |theme_id| is valid. | 138 // The theme background image tiling is only valid if |theme_id| is valid. |
139 ThemeBackgroundImageTiling image_tiling; | 139 ThemeBackgroundImageTiling image_tiling; |
140 | 140 |
141 // The theme background image height. | 141 // The theme background image height. |
142 // Value is only valid if |theme_id| is valid. | 142 // Value is only valid if |theme_id| is valid. |
143 uint16 image_height; | 143 uint16 image_height; |
144 }; | 144 }; |
145 | 145 |
| 146 // Omnibox focus state as tracked by InstantController. |
| 147 enum OmniboxFocusState { |
| 148 FOCUS_NONE, // Not focused. |
| 149 FOCUS_VISIBLE, // Visibily focused. |
| 150 FOCUS_INVISIBLE, // Invisibly focused, i.e. focused with with a hidden caret. |
| 151 }; |
| 152 |
| 153 // Reason why focus state could change. |
| 154 enum OmniboxFocusChangeReason { |
| 155 // Includes any explicit changes to focus. (e.g. user clicking to change |
| 156 // focus, user tabbing to change focus, any explicit calls to SetFocus etc.) |
| 157 FOCUS_CHANGE_EXPLICIT, |
| 158 // Focus changed to restore state from a tab the user swtched to. |
| 159 FOCUS_CHANGE_TAB_SWITCH, |
| 160 // Focus changed because user started typing. This only happens when focus |
| 161 // state is INVISIBLE (and this results in a change to VISIBLE). |
| 162 FOCUS_CHANGE_TYPING, |
| 163 }; |
| 164 |
146 #endif // CHROME_COMMON_INSTANT_TYPES_H_ | 165 #endif // CHROME_COMMON_INSTANT_TYPES_H_ |
OLD | NEW |