| Index: chrome/common/instant_types.h
|
| diff --git a/chrome/common/instant_types.h b/chrome/common/instant_types.h
|
| index 90a77ac44233334dd14601d60053d759bf3daea2..e562364f0dd0908a8492f74cf5ed57142c193f61 100644
|
| --- a/chrome/common/instant_types.h
|
| +++ b/chrome/common/instant_types.h
|
| @@ -143,4 +143,23 @@ struct ThemeBackgroundInfo {
|
| uint16 image_height;
|
| };
|
|
|
| +// Omnibox focus state as tracked by InstantController.
|
| +enum OmniboxFocusState {
|
| + FOCUS_NONE, // Not focused.
|
| + FOCUS_VISIBLE, // Visibily focused.
|
| + FOCUS_INVISIBLE, // Invisibly focused, i.e. focused with with a hidden caret.
|
| +};
|
| +
|
| +// Reason why focus state could change.
|
| +enum OmniboxFocusChangeReason {
|
| + // Includes any explicit changes to focus. (e.g. user clicking to change
|
| + // focus, user tabbing to change focus, any explicit calls to SetFocus etc.)
|
| + FOCUS_CHANGE_EXPLICIT,
|
| + // Focus changed to restore state from a tab the user swtched to.
|
| + FOCUS_CHANGE_TAB_SWITCH,
|
| + // Focus changed because user started typing. This only happens when focus
|
| + // state is INVISIBLE (and this results in a change to VISIBLE).
|
| + FOCUS_CHANGE_TYPING,
|
| +};
|
| +
|
| #endif // CHROME_COMMON_INSTANT_TYPES_H_
|
|
|