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

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

Issue 398013002: Poll for Display rotation on Android 4.0 and 4.1 when needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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/WebLockOrientationError.h" 10 #include "third_party/WebKit/public/platform/WebLockOrientationError.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // |request_id| that will have to be passed back to the renderer process when 55 // |request_id| that will have to be passed back to the renderer process when
56 // notifying about a success or error (see ScreenOrientationMsg_LockError and 56 // notifying about a success or error (see ScreenOrientationMsg_LockError and
57 // ScreenOrientationMsg_LockSuccess). 57 // ScreenOrientationMsg_LockSuccess).
58 IPC_MESSAGE_ROUTED2(ScreenOrientationHostMsg_LockRequest, 58 IPC_MESSAGE_ROUTED2(ScreenOrientationHostMsg_LockRequest,
59 blink::WebScreenOrientationLockType, /* orientation */ 59 blink::WebScreenOrientationLockType, /* orientation */
60 int /* request_id */) 60 int /* request_id */)
61 61
62 // The renderer process requests the browser process to unlock the screen 62 // The renderer process requests the browser process to unlock the screen
63 // orientation. 63 // orientation.
64 IPC_MESSAGE_ROUTED0(ScreenOrientationHostMsg_Unlock) 64 IPC_MESSAGE_ROUTED0(ScreenOrientationHostMsg_Unlock)
65
66 // The renderer process is now using the Screen Orientation API and informs the
67 // browser process that it should start accurately listening to the screen
68 // orientation if it wasn't already.
69 // This is only expected to be acted upon when the underlying platform requires
70 // heavy work in order to accurately know the screen orientation.
71 IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_StartListening)
72
73 // The renderer process is no longer using the Screen Orientation API and
74 // informs the browser process that it can stop accurately listening to the
75 // screen orientation if no other process cares about it.
76 // This is only expected to be acted upon when the underlying platform requires
77 // heavy work in order to accurately know the screen orientation.
78 IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_StopListening)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698