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

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

Issue 302603005: Regression(r174876): Use OILPAN empty destructor macros (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Take sof's feedback into consideration Created 6 years, 7 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
« no previous file with comments | « no previous file | Source/modules/screen_orientation/ScreenOrientationController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ScreenOrientationController_h 5 #ifndef ScreenOrientationController_h
6 #define ScreenOrientationController_h 6 #define ScreenOrientationController_h
7 7
8 #include "core/dom/DocumentSupplementable.h" 8 #include "core/dom/DocumentSupplementable.h"
9 #include "public/platform/WebScreenOrientationType.h" 9 #include "public/platform/WebScreenOrientationType.h"
10 10
11 namespace WebCore { 11 namespace WebCore {
12 12
13 class FrameView; 13 class FrameView;
14 14
15 class ScreenOrientationController FINAL : public NoBaseWillBeGarbageCollected<Sc reenOrientationController>, public DocumentSupplement { 15 class ScreenOrientationController FINAL : public NoBaseWillBeGarbageCollected<Sc reenOrientationController>, public DocumentSupplement {
16 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientationController); 16 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientationController);
17 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(ScreenOrientationController );
17 public: 18 public:
18 virtual ~ScreenOrientationController();
19
20 blink::WebScreenOrientationType orientation() const; 19 blink::WebScreenOrientationType orientation() const;
21 20
22 // DocumentSupplement API. 21 // DocumentSupplement API.
23 static ScreenOrientationController& from(Document&); 22 static ScreenOrientationController& from(Document&);
24 static const char* supplementName(); 23 static const char* supplementName();
25 24
26 private: 25 private:
27 explicit ScreenOrientationController(Document&); 26 explicit ScreenOrientationController(Document&);
28 static blink::WebScreenOrientationType computeOrientation(FrameView*); 27 static blink::WebScreenOrientationType computeOrientation(FrameView*);
29 28
30 Document& m_document; 29 Document& m_document;
31 }; 30 };
32 31
33 } // namespace WebCore 32 } // namespace WebCore
34 33
35 #endif // ScreenOrientationController_h 34 #endif // ScreenOrientationController_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/screen_orientation/ScreenOrientationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698