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

Side by Side Diff: chrome/browser/instant/instant_page.h

Issue 11889003: Fixing ESC in instant-extended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reverted back to asvitkine's fix. REALLY answered PK's comments. :) Created 7 years, 10 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_INSTANT_INSTANT_PAGE_H_ 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_
6 #define CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_ 6 #define CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 void DetermineIfPageSupportsInstant(); 140 void DetermineIfPageSupportsInstant();
141 141
142 // Tells the page about the available autocomplete results. 142 // Tells the page about the available autocomplete results.
143 void SendAutocompleteResults( 143 void SendAutocompleteResults(
144 const std::vector<InstantAutocompleteResult>& results); 144 const std::vector<InstantAutocompleteResult>& results);
145 145
146 // Tells the page that the user pressed Up or Down in the omnibox. |count| is 146 // Tells the page that the user pressed Up or Down in the omnibox. |count| is
147 // a repeat count, negative for moving up, positive for moving down. 147 // a repeat count, negative for moving up, positive for moving down.
148 void UpOrDownKeyPressed(int count); 148 void UpOrDownKeyPressed(int count);
149 149
150 // Tells the page that the user pressed Esc in the omnibox after having
151 // arrowed down in the suggestions. The page should reset the selection to
152 // the first suggestion. |user_text| is what the omnibox has been reset to.
153 void CancelSelection(string16 user_text);
sreeram 2013/02/12 18:12:29 const string16&
beaudoin 2013/02/12 20:27:30 Done.
154
150 // Tells the page that the active tab's search mode has changed. 155 // Tells the page that the active tab's search mode has changed.
151 void SearchModeChanged(const chrome::search::Mode& mode); 156 void SearchModeChanged(const chrome::search::Mode& mode);
152 157
153 // Tells the page about the current theme background. 158 // Tells the page about the current theme background.
154 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); 159 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info);
155 160
156 // Tells the page about the current theme area height. 161 // Tells the page about the current theme area height.
157 void SendThemeAreaHeight(int height); 162 void SendThemeAreaHeight(int height);
158 163
159 // Tells the page whether it is allowed to display Instant results. 164 // Tells the page whether it is allowed to display Instant results.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 void OnSearchBoxNavigate(int page_id, const GURL& url, 219 void OnSearchBoxNavigate(int page_id, const GURL& url,
215 content::PageTransition transition); 220 content::PageTransition transition);
216 221
217 Delegate* const delegate_; 222 Delegate* const delegate_;
218 bool supports_instant_; 223 bool supports_instant_;
219 224
220 DISALLOW_COPY_AND_ASSIGN(InstantPage); 225 DISALLOW_COPY_AND_ASSIGN(InstantPage);
221 }; 226 };
222 227
223 #endif // CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_ 228 #endif // CHROME_BROWSER_INSTANT_INSTANT_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698