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

Unified Diff: Source/modules/screen_orientation/ScreenOrientation.h

Issue 165443003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/screen_orientation/ScreenOrientation.h
diff --git a/Source/modules/screen_orientation/ScreenOrientation.h b/Source/modules/screen_orientation/ScreenOrientation.h
index 2fb20d810fb25b231e44ab710bd94b1a7be67613..67ffbdda00eb14cd0216d0de868fecba3e9d8f43 100644
--- a/Source/modules/screen_orientation/ScreenOrientation.h
+++ b/Source/modules/screen_orientation/ScreenOrientation.h
@@ -18,18 +18,18 @@ class Screen;
class ScreenOrientation FINAL : public Supplement<Screen>, DOMWindowProperty {
public:
- static ScreenOrientation* from(Screen*);
+ static ScreenOrientation& from(Screen&);
virtual ~ScreenOrientation();
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(orientationchange);
- static const AtomicString& orientation(Screen*);
- static bool lockOrientation(Screen*, const Vector<String>& orientations);
- static bool lockOrientation(Screen*, const AtomicString& orientation);
- static void unlockOrientation(Screen*);
+ static const AtomicString& orientation(Screen&);
+ static bool lockOrientation(Screen&, const Vector<String>& orientations);
+ static bool lockOrientation(Screen&, const AtomicString& orientation);
+ static void unlockOrientation(Screen&);
private:
- explicit ScreenOrientation(Screen*);
+ explicit ScreenOrientation(Screen&);
static const char* supplementName();
Screen* screen() const;
};
« no previous file with comments | « Source/modules/quota/WorkerNavigatorStorageQuota.cpp ('k') | Source/modules/screen_orientation/ScreenOrientation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698