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

Unified Diff: chrome/browser/instant/search.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: rebased, resolved conflicts 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/browser/instant/search.h
diff --git a/chrome/browser/instant/search.h b/chrome/browser/instant/search.h
index 41ce390a3bbed60565214b41e72b2018f5a8d73a..68aa61442320f711950d8baac2f7ca89a00f05d8 100644
--- a/chrome/browser/instant/search.h
+++ b/chrome/browser/instant/search.h
@@ -18,6 +18,12 @@ class Profile;
class TemplateURL;
class TemplateURLRef;
+namespace chrome {
+namespace search {
+struct Mode;
+}
+}
+
namespace content {
class NavigationEntry;
class WebContents;
@@ -150,6 +156,11 @@ bool GetBoolValueForFlagWithDefault(const std::string& flag,
GURL CoerceCommandLineURLToTemplateURL(const GURL& instant_url,
const TemplateURLRef& ref);
+// Returns true if visibility change in top bars should be handled based on
+// |old_mode| and |new_mode|.
+bool ShouldHandleTopBarsVisibilityChange(const Mode& old_mode,
dhollowa 2013/03/13 17:21:55 This should live in search_model.h/cc. And how ab
kuan 2013/03/13 22:21:07 Done.
+ const Mode& new_mode);
+
} // namespace search
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698