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

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: call ScreenOrientationListener on UI thread Created 6 years, 4 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // |request_id| that will have to be passed back to the renderer process when 53 // |request_id| that will have to be passed back to the renderer process when
54 // notifying about a success or error (see ScreenOrientationMsg_LockError and 54 // notifying about a success or error (see ScreenOrientationMsg_LockError and
55 // ScreenOrientationMsg_LockSuccess). 55 // ScreenOrientationMsg_LockSuccess).
56 IPC_MESSAGE_ROUTED2(ScreenOrientationHostMsg_LockRequest, 56 IPC_MESSAGE_ROUTED2(ScreenOrientationHostMsg_LockRequest,
57 blink::WebScreenOrientationLockType, /* orientation */ 57 blink::WebScreenOrientationLockType, /* orientation */
58 int /* request_id */) 58 int /* request_id */)
59 59
60 // The renderer process requests the browser process to unlock the screen 60 // The renderer process requests the browser process to unlock the screen
61 // orientation. 61 // orientation.
62 IPC_MESSAGE_ROUTED0(ScreenOrientationHostMsg_Unlock) 62 IPC_MESSAGE_ROUTED0(ScreenOrientationHostMsg_Unlock)
63
64 // The renderer process is now using the Screen Orientation API and informs the
65 // browser process that it should start accurately listening to the screen
66 // orientation if it wasn't already.
67 // This is only expected to be acted upon when the underlying platform requires
68 // heavy work in order to accurately know the screen orientation.
69 IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_StartListening)
70
71 // The renderer process is no longer using the Screen Orientation API and
72 // informs the browser process that it can stop accurately listening to the
73 // screen orientation if no other process cares about it.
74 // This is only expected to be acted upon when the underlying platform requires
75 // heavy work in order to accurately know the screen orientation.
76 IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_StopListening)
OLDNEW
« no previous file with comments | « content/browser/screen_orientation/screen_orientation_provider_android.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698