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

Unified Diff: content/common/view_messages.h

Issue 964403003: Make it possible to set the display mode from Chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Decouple getting display mode and renderer-initiated fullscreen mode code paths Created 5 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: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index aff3f3b2eca2962bf75c77108ce82148df9ea1ec..e990b63c208bc45f53549e9826dd9d096a4074ea 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -39,6 +39,7 @@
#include "media/base/channel_layout.h"
#include "media/base/media_log_event.h"
#include "net/base/network_change_notifier.h"
+#include "third_party/WebKit/public/platform/WebDisplayMode.h"
#include "third_party/WebKit/public/platform/WebFloatPoint.h"
#include "third_party/WebKit/public/platform/WebFloatRect.h"
#include "third_party/WebKit/public/platform/WebScreenInfo.h"
@@ -84,6 +85,8 @@ IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPopupType,
blink::WebPopupType::WebPopupTypeLast)
IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTextDirection,
blink::WebTextDirection::WebTextDirectionLast)
+IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDisplayMode,
+ blink::WebDisplayMode::WebDisplayModeLast)
IPC_ENUM_TRAITS(WindowContainerType)
IPC_ENUM_TRAITS(content::FaviconURL::IconType)
IPC_ENUM_TRAITS(content::FileChooserParams::Mode)
@@ -465,6 +468,8 @@ IPC_STRUCT_BEGIN(ViewMsg_Resize_Params)
IPC_STRUCT_MEMBER(gfx::Rect, resizer_rect)
// Indicates whether a page is fullscreen or not.
IPC_STRUCT_MEMBER(bool, is_fullscreen)
+ // The display mode.
+ IPC_STRUCT_MEMBER(blink::WebDisplayMode, display_mode)
// If set, requests the renderer to reply with a ViewHostMsg_UpdateRect
// with the ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK bit set in flags.
IPC_STRUCT_MEMBER(bool, needs_resize_ack)

Powered by Google App Engine
This is Rietveld 408576698