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

Side by Side Diff: chrome/browser/ui/search/instant_page.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
OLDNEW
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_SEARCH_INSTANT_PAGE_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_
6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 void DetermineIfPageSupportsInstant(); 154 void DetermineIfPageSupportsInstant();
155 155
156 // Tells the page about the available autocomplete results. 156 // Tells the page about the available autocomplete results.
157 void SendAutocompleteResults( 157 void SendAutocompleteResults(
158 const std::vector<InstantAutocompleteResult>& results); 158 const std::vector<InstantAutocompleteResult>& results);
159 159
160 // Tells the page that the user pressed Up or Down in the omnibox. |count| is 160 // Tells the page that the user pressed Up or Down in the omnibox. |count| is
161 // a repeat count, negative for moving up, positive for moving down. 161 // a repeat count, negative for moving up, positive for moving down.
162 void UpOrDownKeyPressed(int count); 162 void UpOrDownKeyPressed(int count);
163 163
164 // Tells the page that the user pressed Esc key in the omnibox.
165 void EscKeyPressed();
166
164 // Tells the page that the user pressed Esc in the omnibox after having 167 // Tells the page that the user pressed Esc in the omnibox after having
165 // arrowed down in the suggestions. The page should reset the selection to 168 // arrowed down in the suggestions. The page should reset the selection to
166 // the first suggestion. Arguments are the same as those for Update(). 169 // the first suggestion. Arguments are the same as those for Update().
167 void CancelSelection(const string16& user_text, 170 void CancelSelection(const string16& user_text,
168 size_t selection_start, 171 size_t selection_start,
169 size_t selection_end, 172 size_t selection_end,
170 bool verbatim); 173 bool verbatim);
171 174
172 // Tells the page about the current theme background. 175 // Tells the page about the current theme background.
173 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); 176 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 void OnUndoAllMostVisitedDeletions(); 250 void OnUndoAllMostVisitedDeletions();
248 251
249 Delegate* const delegate_; 252 Delegate* const delegate_;
250 const std::string instant_url_; 253 const std::string instant_url_;
251 bool supports_instant_; 254 bool supports_instant_;
252 255
253 DISALLOW_COPY_AND_ASSIGN(InstantPage); 256 DISALLOW_COPY_AND_ASSIGN(InstantPage);
254 }; 257 };
255 258
256 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ 259 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_extended_interactive_uitest.cc ('k') | chrome/browser/ui/search/instant_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698