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

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

Issue 11889003: Fixing ESC in instant-extended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reworked to send ESC down to JS, added test. 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 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_BROWSER_INSTANT_INSTANT_CLIENT_H_ 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_
6 #define CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ 6 #define CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void DetermineIfPageSupportsInstant(); 115 void DetermineIfPageSupportsInstant();
116 116
117 // Tells the page about the available autocomplete results. 117 // Tells the page about the available autocomplete results.
118 void SendAutocompleteResults( 118 void SendAutocompleteResults(
119 const std::vector<InstantAutocompleteResult>& results); 119 const std::vector<InstantAutocompleteResult>& results);
120 120
121 // Tells the page that the user pressed Up or Down in the omnibox. |count| is 121 // Tells the page that the user pressed Up or Down in the omnibox. |count| is
122 // a repeat count, negative for moving up, positive for moving down. 122 // a repeat count, negative for moving up, positive for moving down.
123 void UpOrDownKeyPressed(int count); 123 void UpOrDownKeyPressed(int count);
124 124
125 // Tells the page that the user pressed ESC in the omnibox.
126 void EscKeyPressed();
127
125 // Tells the page that the active tab's search mode has changed. 128 // Tells the page that the active tab's search mode has changed.
126 void SearchModeChanged(const chrome::search::Mode& mode); 129 void SearchModeChanged(const chrome::search::Mode& mode);
127 130
128 // Tells the page about the current theme background. 131 // Tells the page about the current theme background.
129 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); 132 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info);
130 133
131 // Tells the page about the current theme area height. 134 // Tells the page about the current theme area height.
132 void SendThemeAreaHeight(int height); 135 void SendThemeAreaHeight(int height);
133 136
134 // Tells the page whether it is allowed to display Instant results. 137 // Tells the page whether it is allowed to display Instant results.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void StopCapturingKeyStrokes(int page_id); 169 void StopCapturingKeyStrokes(int page_id);
167 void SearchBoxNavigate(int page_id, const GURL& url, 170 void SearchBoxNavigate(int page_id, const GURL& url,
168 content::PageTransition transition); 171 content::PageTransition transition);
169 172
170 Delegate* const delegate_; 173 Delegate* const delegate_;
171 174
172 DISALLOW_COPY_AND_ASSIGN(InstantClient); 175 DISALLOW_COPY_AND_ASSIGN(InstantClient);
173 }; 176 };
174 177
175 #endif // CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ 178 #endif // CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/instant/instant_client.cc » ('j') | chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698