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

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

Issue 168763002: Add initial Screen Orientation API support: IDL changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Take Adam's feedback into consideration 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
abarth-chromium 2014/02/16 09:14:11 You've got an extra blank line here.
Inactive 2014/02/16 14:09:14 Done.
6 #ifndef ScreenOrientation_h
7 #define ScreenOrientation_h
8
9 #include "core/events/EventTarget.h"
10 #include "core/frame/DOMWindowProperty.h"
11 #include "platform/Supplementable.h"
12 #include "wtf/Vector.h"
13 #include "wtf/text/AtomicString.h"
14 #include "wtf/text/WTFString.h"
15
16 namespace WebCore {
17
18 class Screen;
19
20 class ScreenOrientation FINAL : public Supplement<Screen>, DOMWindowProperty {
21 public:
22 static ScreenOrientation* from(Screen*);
23 virtual ~ScreenOrientation();
24
25 DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(orientationchange);
26
27 static const AtomicString& orientation(Screen*);
28 static bool lockOrientation(Screen*, const Vector<String>& orientations);
29 static bool lockOrientation(Screen*, const AtomicString& orientation);
30 static void unlockOrientation(Screen*);
31
32 private:
33 explicit ScreenOrientation(Screen*);
34 static const char* supplementName();
35 Screen* screen() const;
36 };
37
38 } // namespace WebCore
39
40 #endif // ScreenOrientation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698