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

Unified Diff: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.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, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.h
diff --git a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.h b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.h
index 7917539e0d46383996ac6a597238a72da8d9c5d7..2fb4e894bad191a6e39d669fd6bcc42a385244a5 100644
--- a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.h
+++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.h
@@ -13,6 +13,7 @@
#include "public/platform/modules/screen_orientation/WebLockOrientationCallback.h"
#include "public/platform/modules/screen_orientation/WebScreenOrientationLockType.h"
#include "public/platform/modules/screen_orientation/WebScreenOrientationType.h"
+#include <memory>
namespace blink {
@@ -33,7 +34,8 @@ class MODULES_EXPORT ScreenOrientationController final
void setOrientation(ScreenOrientation*);
void notifyOrientationChanged();
- void lock(WebScreenOrientationLockType, WebLockOrientationCallback*);
+ void lock(WebScreenOrientationLockType,
+ std::unique_ptr<WebLockOrientationCallback>);
void unlock();
static void provideTo(LocalFrame&, WebScreenOrientationClient*);

Powered by Google App Engine
This is Rietveld 408576698