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

Side by Side Diff: chrome/browser/ui/search/instant_page.h

Issue 14646034: Add onfocuschange to the Extended Search API, with associated isFocused attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // Tells the page whether it is allowed to display Instant results. 184 // Tells the page whether it is allowed to display Instant results.
185 void SetDisplayInstantResults(bool display_instant_results); 185 void SetDisplayInstantResults(bool display_instant_results);
186 186
187 // Tells the page whether the browser is capturing user key strokes. 187 // Tells the page whether the browser is capturing user key strokes.
188 void KeyCaptureChanged(bool is_key_capture_enabled); 188 void KeyCaptureChanged(bool is_key_capture_enabled);
189 189
190 // Tells the page about new Most Visited data. 190 // Tells the page about new Most Visited data.
191 void SendMostVisitedItems( 191 void SendMostVisitedItems(
192 const std::vector<InstantMostVisitedItemIDPair>& items); 192 const std::vector<InstantMostVisitedItemIDPair>& items);
193 193
194 // Tells the page the Omnibox focus changed.
195 void FocusChanged(bool is_focused);
196
194 protected: 197 protected:
195 InstantPage(Delegate* delegate, const std::string& instant_url); 198 InstantPage(Delegate* delegate, const std::string& instant_url);
196 199
197 // Sets |contents| as the page to communicate with. |contents| may be NULL, 200 // Sets |contents| as the page to communicate with. |contents| may be NULL,
198 // which effectively stops all communication. 201 // which effectively stops all communication.
199 void SetContents(content::WebContents* contents); 202 void SetContents(content::WebContents* contents);
200 203
201 Delegate* delegate() const { return delegate_; } 204 Delegate* delegate() const { return delegate_; }
202 205
203 // These functions are called before processing messages received from the 206 // These functions are called before processing messages received from the
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 260
258 Delegate* const delegate_; 261 Delegate* const delegate_;
259 const std::string instant_url_; 262 const std::string instant_url_;
260 bool supports_instant_; 263 bool supports_instant_;
261 bool instant_support_determined_; 264 bool instant_support_determined_;
262 265
263 DISALLOW_COPY_AND_ASSIGN(InstantPage); 266 DISALLOW_COPY_AND_ASSIGN(InstantPage);
264 }; 267 };
265 268
266 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ 269 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698