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

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: Improved the added browser test 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 02e25fa37121dea8abb5983f30eeb8a4a703ed8e..5ffe976e6cf1c3c94bda974bb8ce1e3486ee0ac3 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::WebDisplayModeFullscreen)
scheib 2015/03/27 16:50:51 Enum should have a ___Last member.
IPC_ENUM_TRAITS(WindowContainerType)
IPC_ENUM_TRAITS(content::FaviconURL::IconType)
IPC_ENUM_TRAITS(content::FileChooserParams::Mode)
@@ -464,6 +467,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