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

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

Issue 461163002: Cleanup namespace usage in Source/core/modules/[mediasource/* to websockets/*] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ScreenOrientation_h 5 #ifndef ScreenOrientation_h
6 #define ScreenOrientation_h 6 #define ScreenOrientation_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/events/EventTarget.h" 9 #include "core/events/EventTarget.h"
10 #include "core/frame/DOMWindowProperty.h" 10 #include "core/frame/DOMWindowProperty.h"
(...skipping 21 matching lines...) Expand all
32 32
33 virtual ~ScreenOrientation(); 33 virtual ~ScreenOrientation();
34 34
35 // EventTarget implementation. 35 // EventTarget implementation.
36 virtual const WTF::AtomicString& interfaceName() const OVERRIDE; 36 virtual const WTF::AtomicString& interfaceName() const OVERRIDE;
37 virtual ExecutionContext* executionContext() const OVERRIDE; 37 virtual ExecutionContext* executionContext() const OVERRIDE;
38 38
39 String type() const; 39 String type() const;
40 unsigned short angle() const; 40 unsigned short angle() const;
41 41
42 void setType(blink::WebScreenOrientationType); 42 void setType(WebScreenOrientationType);
43 void setAngle(unsigned short); 43 void setAngle(unsigned short);
44 44
45 ScriptPromise lock(ScriptState*, const AtomicString& orientation); 45 ScriptPromise lock(ScriptState*, const AtomicString& orientation);
46 void unlock(); 46 void unlock();
47 47
48 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); 48 DEFINE_ATTRIBUTE_EVENT_LISTENER(change);
49 49
50 // Helper being used by this class and LockOrientationCallback. 50 // Helper being used by this class and LockOrientationCallback.
51 static const AtomicString& orientationTypeToString(blink::WebScreenOrientati onType); 51 static const AtomicString& orientationTypeToString(WebScreenOrientationType) ;
52 52
53 virtual void trace(Visitor*) OVERRIDE; 53 virtual void trace(Visitor*) OVERRIDE;
54 54
55 private: 55 private:
56 explicit ScreenOrientation(LocalFrame*); 56 explicit ScreenOrientation(LocalFrame*);
57 57
58 ScreenOrientationController* controller(); 58 ScreenOrientationController* controller();
59 59
60 blink::WebScreenOrientationType m_type; 60 WebScreenOrientationType m_type;
61 unsigned short m_angle; 61 unsigned short m_angle;
62 }; 62 };
63 63
64 } // namespace blink 64 } // namespace blink
65 65
66 #endif // ScreenOrientation_h 66 #endif // ScreenOrientation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698