Chromium Code Reviews

Side by Side Diff: chrome/common/instant_types.h

Issue 11413217: Instant API: tell page whether the browser is capturing key strokes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@focus
Patch Set: No assignment in conditionals. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_win.cc ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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...)
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.
sky 2012/12/10 15:15:39 Name this enums more specifically, eg OMNIBOX_FOCU
samarth 2012/12/10 23:45:00 Done.
sky 2012/12/11 00:12:45 This is specific to the omnibox, it should be in t
149 FOCUS_VISIBLE, // Visibily focused.
150 FOCUS_INVISIBLE, // Invisibly focused, i.e. focused with a hidden caret.
151 };
152
153 // Reasons 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
159 // Focus changed to restore state from a tab the user switched to.
160 FOCUS_CHANGE_TAB_SWITCH,
161
162 // Focus changed because user started typing. This only happens when focus
163 // state is INVISIBLE (and this results in a change to VISIBLE).
164 FOCUS_CHANGE_TYPING,
165 };
166
146 #endif // CHROME_COMMON_INSTANT_TYPES_H_ 167 #endif // CHROME_COMMON_INSTANT_TYPES_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_win.cc ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine