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

Unified Diff: chrome/common/render_messages.h

Issue 14139013: Hide location bar on Javascript-initiated scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore handling of ViewMsg_UpdateTopControlsState in RenderViewImpl. 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/common/render_messages.h
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index 2758407b2c2c1da090f874bbce94c15676063522..fd0d4ef8ce999c76f96b101ccd084af1bdef2f41 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -16,6 +16,7 @@
#include "base/stringprintf.h"
#include "base/values.h"
#include "build/build_config.h"
+#include "cc/input/top_controls_state.h"
#include "chrome/common/common_param_traits.h"
#include "chrome/common/content_settings.h"
#include "chrome/common/content_settings_pattern.h"
@@ -126,6 +127,7 @@ IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment)
IPC_ENUM_TRAITS(ThemeBackgroundImageTiling)
IPC_ENUM_TRAITS(TranslateErrors::Type)
IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level)
+IPC_ENUM_TRAITS(cc::TopControlsState)
IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status)
IPC_STRUCT_TRAITS_MEMBER(value)
@@ -410,6 +412,14 @@ IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
IPC_MESSAGE_ROUTED1(ChromeViewMsg_StartFrameSniffer,
string16 /* frame-name */)
+// Notifies the renderer whether hiding/showing the top controls is enabled,
+// what the current state should be, and whether or not to animate to the
+// proper state.
+IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState,
+ cc::TopControlsState /* constraints */,
+ cc::TopControlsState /* current */,
+ bool /* animate */)
+
// JavaScript related messages -----------------------------------------------
// Notify the JavaScript engine in the render to change its parameters

Powered by Google App Engine
This is Rietveld 408576698