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

Unified Diff: chrome/renderer/searchbox/searchbox.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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/searchbox/searchbox.h
diff --git a/chrome/renderer/searchbox/searchbox.h b/chrome/renderer/searchbox/searchbox.h
index 441994ba3d30850bdc8d54c39ed85914caa3d88b..2bc65267fb6ae9f17a49973b6d36defe2c8925dd 100644
--- a/chrome/renderer/searchbox/searchbox.h
+++ b/chrome/renderer/searchbox/searchbox.h
@@ -69,6 +69,7 @@ class SearchBox : public content::RenderViewObserver,
bool display_instant_results() const { return display_instant_results_; }
const string16& omnibox_font() const { return omnibox_font_; }
size_t omnibox_font_size() const { return omnibox_font_size_; }
+ bool is_focused() const { return is_focused_; }
// In extended Instant, returns the start-edge margin of the location bar in
// screen pixels.
@@ -143,6 +144,8 @@ class SearchBox : public content::RenderViewObserver,
void OnMostVisitedChanged(
const std::vector<InstantMostVisitedItemIDPair>& items);
melevin 2013/05/09 16:41:11 No newline here.
+ void OnFocusChanged(bool is_focused);
+
// Returns the current zoom factor of the render view or 1 on failure.
double GetZoom() const;
@@ -164,6 +167,7 @@ class SearchBox : public content::RenderViewObserver,
bool display_instant_results_;
string16 omnibox_font_;
size_t omnibox_font_size_;
+ bool is_focused_;
InstantRestrictedIDCache<InstantAutocompleteResult>
autocomplete_results_cache_;
InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_;

Powered by Google App Engine
This is Rietveld 408576698