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

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

Issue 255983003: Oilpan: Move all supplements of Page, Document, and WorkerClients to the managed heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: using namespace WebCore 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
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 ScreenOrientationController FINAL : public DocumentSupplement { 13 class ScreenOrientationController FINAL : public NoBaseWillBeGarbageCollectedFin alized<ScreenOrientationController>, public DocumentSupplement {
14 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientationController);
14 public: 15 public:
15 virtual ~ScreenOrientationController(); 16 virtual ~ScreenOrientationController();
16 17
17 void didChangeScreenOrientation(blink::WebScreenOrientationType); 18 void didChangeScreenOrientation(blink::WebScreenOrientationType);
18 19
19 blink::WebScreenOrientationType orientation() const { return m_orientation; } 20 blink::WebScreenOrientationType orientation() const { return m_orientation; }
20 21
21 // DocumentSupplement API. 22 // DocumentSupplement API.
22 static ScreenOrientationController& from(Document&); 23 static ScreenOrientationController& from(Document&);
23 static const char* supplementName(); 24 static const char* supplementName();
24 25
25 virtual void trace(Visitor*) OVERRIDE { } 26 virtual void trace(Visitor*) OVERRIDE { }
26 27
27 private: 28 private:
28 explicit ScreenOrientationController(Document&); 29 explicit ScreenOrientationController(Document&);
29 30
30 void dispatchOrientationChangeEvent(); 31 void dispatchOrientationChangeEvent();
31 32
32 Document& m_document; 33 Document& m_document;
33 blink::WebScreenOrientationType m_orientation; 34 blink::WebScreenOrientationType m_orientation;
34 }; 35 };
35 36
36 } // namespace WebCore 37 } // namespace WebCore
37 38
38 #endif // ScreenOrientationController_h 39 #endif // ScreenOrientationController_h
OLDNEW
« no previous file with comments | « Source/modules/quota/StorageQuotaClient.cpp ('k') | Source/modules/screen_orientation/ScreenOrientationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698