// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // IPC messages for screen orientation. // Multiply-included message file, hence no include guard. #include "content/common/content_export.h" #include "ipc/ipc_message_macros.h" #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h" #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" #undef IPC_MESSAGE_EXPORT #define IPC_MESSAGE_EXPORT CONTENT_EXPORT #define IPC_MESSAGE_START ScreenOrientationMsgStart IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationType, blink::WebScreenOrientationUndefined, blink::WebScreenOrientationLandscapeSecondary) IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationLockType, blink::WebScreenOrientationLockDefault, blink::WebScreenOrientationLockPortrait) // The browser process informs the renderer process that the screen orientation // has changed. |orientation| contains the new screen orientation in degrees. IPC_MESSAGE_CONTROL1(ScreenOrientationMsg_OrientationChange, blink::WebScreenOrientationType /* orientation */ ) // The renderer process requests the browser process to lock the screen // orientation to the specified |orientations|. IPC_MESSAGE_CONTROL1(ScreenOrientationHostMsg_Lock, blink::WebScreenOrientationLockType /* orientations */ ) // The renderer process requests the browser process to unlock the screen // orientation. IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_Unlock)