Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: chrome/renderer/searchbox/searchbox.h

Issue 14562006: Handle Esc key press event in Local NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git cl upload Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/searchbox/searchbox.cc » ('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_RENDERER_SEARCHBOX_SEARCHBOX_H_ 5 #ifndef CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 size_t selection_end); 122 size_t selection_end);
123 void OnSubmit(const string16& query); 123 void OnSubmit(const string16& query);
124 void OnCancel(const string16& query); 124 void OnCancel(const string16& query);
125 void OnPopupResize(const gfx::Rect& bounds); 125 void OnPopupResize(const gfx::Rect& bounds);
126 void OnMarginChange(int margin, int width); 126 void OnMarginChange(int margin, int width);
127 void OnBarsHidden(); 127 void OnBarsHidden();
128 void OnDetermineIfPageSupportsInstant(); 128 void OnDetermineIfPageSupportsInstant();
129 void OnAutocompleteResults( 129 void OnAutocompleteResults(
130 const std::vector<InstantAutocompleteResult>& results); 130 const std::vector<InstantAutocompleteResult>& results);
131 void OnUpOrDownKeyPressed(int count); 131 void OnUpOrDownKeyPressed(int count);
132 void OnEscKeyPressed();
132 void OnCancelSelection(const string16& query, 133 void OnCancelSelection(const string16& query,
133 bool verbatim, 134 bool verbatim,
134 size_t selection_start, 135 size_t selection_start,
135 size_t selection_end); 136 size_t selection_end);
136 void OnKeyCaptureChange(bool is_key_capture_enabled); 137 void OnKeyCaptureChange(bool is_key_capture_enabled);
137 void OnSetDisplayInstantResults(bool display_instant_results); 138 void OnSetDisplayInstantResults(bool display_instant_results);
138 void OnThemeChanged(const ThemeBackgroundInfo& theme_info); 139 void OnThemeChanged(const ThemeBackgroundInfo& theme_info);
139 void OnThemeAreaHeightChanged(int height); 140 void OnThemeAreaHeightChanged(int height);
140 void OnFontInformationReceived(const string16& omnibox_font, 141 void OnFontInformationReceived(const string16& omnibox_font,
141 size_t omnibox_font_size); 142 size_t omnibox_font_size);
(...skipping 22 matching lines...) Expand all
164 string16 omnibox_font_; 165 string16 omnibox_font_;
165 size_t omnibox_font_size_; 166 size_t omnibox_font_size_;
166 InstantRestrictedIDCache<InstantAutocompleteResult> 167 InstantRestrictedIDCache<InstantAutocompleteResult>
167 autocomplete_results_cache_; 168 autocomplete_results_cache_;
168 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; 169 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_;
169 170
170 DISALLOW_COPY_AND_ASSIGN(SearchBox); 171 DISALLOW_COPY_AND_ASSIGN(SearchBox);
171 }; 172 };
172 173
173 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 174 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/searchbox/searchbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698