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

Unified Diff: chrome/renderer/searchbox/searchbox.h

Issue 12631008: alternate ntp: implement Show/HideBars API to reduce jank when showing/hiding bars (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 8b60a4b9bcb71afaa5ca3dbb622f0ed169282aad..fb1b96972e334e1911cd04b187d4c50704180d0c 100644
--- a/chrome/renderer/searchbox/searchbox.h
+++ b/chrome/renderer/searchbox/searchbox.h
@@ -58,6 +58,13 @@ class SearchBox : public content::RenderViewObserver,
// Sends ChromeViewHostMsg_InstantUndoAllMostVisitedDeletions to the browser.
void UndoAllMostVisitedDeletions();
+ // Shows any attached bars.
+ void ShowBars();
+
+ // Hides any attached bars. When the bars are hidden, the "onbarshidden"
+ // event is fired to notify the page.
+ void HideBars();
+
const string16& query() const { return query_; }
bool verbatim() const { return verbatim_; }
size_t selection_start() const { return selection_start_; }
@@ -103,6 +110,7 @@ class SearchBox : public content::RenderViewObserver,
void OnCancel(const string16& query);
void OnPopupResize(const gfx::Rect& bounds);
void OnMarginChange(int margin, int width);
+ void OnBarsHidden();
void OnDetermineIfPageSupportsInstant();
void OnAutocompleteResults(
const std::vector<InstantAutocompleteResult>& results);

Powered by Google App Engine
This is Rietveld 408576698