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

Side by Side Diff: third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationClient.h

Issue 2702103002: [ScreenOrientation] De-associate device.mojom.ScreenOrientation from legacy IPC channel.
Patch Set: Synchronize response of lock success with legacy IPC ViewMsg_Resize. Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebScreenOrientationClient_h
6 #define WebScreenOrientationClient_h
7
8 #include "public/platform/modules/screen_orientation/WebScreenOrientationLockTyp e.h"
9 #include <memory>
10
11 namespace blink {
12
13 class WebLockOrientationCallback;
14
15 // Client handling screen orientation locking for a given WebFrame.
16 class WebScreenOrientationClient {
17 public:
18 virtual ~WebScreenOrientationClient() {}
19
20 // Request a screen orientation lock. The implementation will own the
21 // callback.
22 virtual void lockOrientation(WebScreenOrientationLockType,
23 std::unique_ptr<WebLockOrientationCallback>) = 0;
24
25 // Unlock the screen orientation. No-op if the screen orientation was not
26 // locked.
27 virtual void unlockOrientation() = 0;
28
29 virtual void startAccurateListen() = 0;
30
31 virtual void stopAccurateListen() = 0;
32 };
33
34 } // namespace blink
35
36 #endif // WebScreenOrientationClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698