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

Side by Side Diff: content/common/screen_orientation_messages.h

Issue 2578503002: [DeviceService] Mojofy left screen orientation IPC messages. (Closed)
Patch Set: Address nits from blundell@ Created 3 years, 12 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for screen orientation. 5 // IPC messages for screen orientation.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebLockO rientationError.h" 10 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebLockO rientationError.h"
11 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationLockType.h" 11 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationLockType.h"
12 12
13 #undef IPC_MESSAGE_EXPORT 13 #undef IPC_MESSAGE_EXPORT
14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
15 15
16 #define IPC_MESSAGE_START ScreenOrientationMsgStart 16 #define IPC_MESSAGE_START ScreenOrientationMsgStart
17 17
18 // Only used by content/common/manifest_manager_messages.h. 18 // Only used by content/common/manifest_manager_messages.h.
19 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationLockType, 19 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationLockType,
20 blink::WebScreenOrientationLockDefault, 20 blink::WebScreenOrientationLockDefault,
21 blink::WebScreenOrientationLockNatural) 21 blink::WebScreenOrientationLockNatural)
22
23 // The renderer process is now using the Screen Orientation API and informs the
24 // browser process that it should start accurately listening to the screen
25 // orientation if it wasn't already.
26 // This is only expected to be acted upon when the underlying platform requires
27 // heavy work in order to accurately know the screen orientation.
28 IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_StartListening)
29
30 // The renderer process is no longer using the Screen Orientation API and
31 // informs the browser process that it can stop accurately listening to the
32 // screen orientation if no other process cares about it.
33 // This is only expected to be acted upon when the underlying platform requires
34 // heavy work in order to accurately know the screen orientation.
35 IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_StopListening)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698