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

Unified Diff: third_party/WebKit/Source/core/frame/ScreenOrientationController.h

Issue 2625043002: Use a new Supplement constructor in ScreenOrientationController (Closed)
Patch Set: temp Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/ScreenOrientationController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/ScreenOrientationController.h
diff --git a/third_party/WebKit/Source/core/frame/ScreenOrientationController.h b/third_party/WebKit/Source/core/frame/ScreenOrientationController.h
index 7c80e301e600ee4ca792e045eb7983004ceb64e4..fbe0e2746a9450ff4f5e8449e385eedffb083866 100644
--- a/third_party/WebKit/Source/core/frame/ScreenOrientationController.h
+++ b/third_party/WebKit/Source/core/frame/ScreenOrientationController.h
@@ -19,7 +19,11 @@ class WebLockOrientationCallback;
// module will implement and add a provider for.
// Callers of ScreenOrientationController::from() should always assume the
// returned pointer can be nullptr.
-class CORE_EXPORT ScreenOrientationController : public Supplement<LocalFrame> {
+class CORE_EXPORT ScreenOrientationController
+ : public GarbageCollectedFinalized<ScreenOrientationController>,
+ public Supplement<LocalFrame> {
+ USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientationController);
+
public:
virtual ~ScreenOrientationController() = default;
@@ -38,6 +42,7 @@ class CORE_EXPORT ScreenOrientationController : public Supplement<LocalFrame> {
DECLARE_VIRTUAL_TRACE();
protected:
+ explicit ScreenOrientationController(LocalFrame&);
// To be called by an ScreenOrientationController to register its
// implementation.
static void provideTo(LocalFrame&, ScreenOrientationController*);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/ScreenOrientationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698