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

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

Issue 2480293004: Mandate unique_ptr for base::IDMap in IDMapOwnPointer mode. (Closed)
Patch Set: Make changes requested by danakj, fix a few more headers Created 4 years 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 2015 The Chromium Authors. All rights reserved. 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 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 #ifndef WebScreenOrientationClient_h 5 #ifndef WebScreenOrientationClient_h
6 #define WebScreenOrientationClient_h 6 #define WebScreenOrientationClient_h
7 7
8 #include "public/platform/modules/screen_orientation/WebScreenOrientationLockTyp e.h" 8 #include "public/platform/modules/screen_orientation/WebScreenOrientationLockTyp e.h"
9 #include <memory>
9 10
10 namespace blink { 11 namespace blink {
11 12
12 class WebLockOrientationCallback; 13 class WebLockOrientationCallback;
13 14
14 // Client handling screen orientation locking for a given WebFrame. 15 // Client handling screen orientation locking for a given WebFrame.
15 class WebScreenOrientationClient { 16 class WebScreenOrientationClient {
16 public: 17 public:
17 virtual ~WebScreenOrientationClient() {} 18 virtual ~WebScreenOrientationClient() {}
18 19
19 // Request a screen orientation lock. The implementation will own the 20 // Request a screen orientation lock. The implementation will own the
20 // callback. 21 // callback.
21 virtual void lockOrientation(WebScreenOrientationLockType, 22 virtual void lockOrientation(WebScreenOrientationLockType,
22 WebLockOrientationCallback*) = 0; 23 std::unique_ptr<WebLockOrientationCallback>) = 0;
23 24
24 // Unlock the screen orientation. No-op if the screen orientation was not 25 // Unlock the screen orientation. No-op if the screen orientation was not
25 // locked. 26 // locked.
26 virtual void unlockOrientation() = 0; 27 virtual void unlockOrientation() = 0;
27 }; 28 };
28 29
29 } // namespace blink 30 } // namespace blink
30 31
31 #endif // WebScreenOrientationClient_h 32 #endif // WebScreenOrientationClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698