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

Side by Side Diff: Source/modules/screen_orientation/ScreenOrientationController.h

Issue 169403006: Screen Orientation API: screen.orientation & orientationchange event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nits 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 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 ScreenOrientationController_h
6 #define ScreenOrientationController_h
7
8 #include "core/dom/DocumentSupplementable.h"
9 #include "public/platform/WebScreenOrientation.h"
10
11 namespace WebCore {
12
13 class ScreenOrientationController FINAL : public DocumentSupplement {
14 public:
15 virtual ~ScreenOrientationController();
16
17 void didChangeScreenOrientation(blink::WebScreenOrientation);
18
19 blink::WebScreenOrientation orientation() const { return m_orientation; }
20
21 // DocumentSupplement API.
22 static ScreenOrientationController* from(Document*);
23 static const char* supplementName();
24
25 private:
26 explicit ScreenOrientationController(Document&);
27
28 void dispatchOrientationChangeEvent();
29
30 Document& m_document;
31 blink::WebScreenOrientation m_orientation;
32 };
33
34 } // namespace WebCore
35
36 #endif // ScreenOrientationController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698