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

Side by Side Diff: Source/modules/device_orientation/DeviceOrientationController.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 /* 1 /*
2 * Copyright 2010 Apple Inc. All rights reserved. 2 * Copyright 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 3 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above copyright 10 * * Redistributions in binary form must reproduce the above copyright
(...skipping 18 matching lines...) Expand all
29 29
30 #include "core/dom/DocumentSupplementable.h" 30 #include "core/dom/DocumentSupplementable.h"
31 #include "core/events/Event.h" 31 #include "core/events/Event.h"
32 #include "core/frame/DOMWindowLifecycleObserver.h" 32 #include "core/frame/DOMWindowLifecycleObserver.h"
33 #include "core/frame/DeviceSensorEventController.h" 33 #include "core/frame/DeviceSensorEventController.h"
34 34
35 namespace WebCore { 35 namespace WebCore {
36 36
37 class DeviceOrientationData; 37 class DeviceOrientationData;
38 38
39 class DeviceOrientationController FINAL : public DeviceSensorEventController, pu blic DocumentSupplement, public DOMWindowLifecycleObserver { 39 class DeviceOrientationController FINAL : public NoBaseWillBeGarbageCollectedFin alized<DeviceOrientationController>, public DeviceSensorEventController, public DocumentSupplement, public DOMWindowLifecycleObserver {
40 40 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceOrientationController);
41 public: 41 public:
42 virtual ~DeviceOrientationController(); 42 virtual ~DeviceOrientationController();
43 43
44 static const char* supplementName(); 44 static const char* supplementName();
45 static DeviceOrientationController& from(Document&); 45 static DeviceOrientationController& from(Document&);
46 46
47 void didChangeDeviceOrientation(DeviceOrientationData*); 47 void didChangeDeviceOrientation(DeviceOrientationData*);
48 void setOverride(DeviceOrientationData*); 48 void setOverride(DeviceOrientationData*);
49 void clearOverride(); 49 void clearOverride();
50 50
51 // Inherited from DOMWindowLifecycleObserver 51 // Inherited from DOMWindowLifecycleObserver
52 virtual void didAddEventListener(DOMWindow*, const AtomicString&) OVERRIDE; 52 virtual void didAddEventListener(DOMWindow*, const AtomicString&) OVERRIDE;
53 virtual void didRemoveEventListener(DOMWindow*, const AtomicString&) OVERRID E; 53 virtual void didRemoveEventListener(DOMWindow*, const AtomicString&) OVERRID E;
54 virtual void didRemoveAllEventListeners(DOMWindow*) OVERRIDE; 54 virtual void didRemoveAllEventListeners(DOMWindow*) OVERRIDE;
55 55
56 virtual void trace(Visitor*) OVERRIDE { } 56 virtual void trace(Visitor*) OVERRIDE;
57 57
58 private: 58 private:
59 explicit DeviceOrientationController(Document&); 59 explicit DeviceOrientationController(Document&);
60 virtual void registerWithDispatcher() OVERRIDE; 60 virtual void registerWithDispatcher() OVERRIDE;
61 virtual void unregisterWithDispatcher() OVERRIDE; 61 virtual void unregisterWithDispatcher() OVERRIDE;
62 62
63 DeviceOrientationData* lastData(); 63 DeviceOrientationData* lastData();
64 virtual bool hasLastData() OVERRIDE; 64 virtual bool hasLastData() OVERRIDE;
65 virtual PassRefPtrWillBeRawPtr<Event> getLastEvent() OVERRIDE; 65 virtual PassRefPtrWillBeRawPtr<Event> getLastEvent() OVERRIDE;
66 virtual bool isNullEvent(Event*) OVERRIDE; 66 virtual bool isNullEvent(Event*) OVERRIDE;
67 virtual Document* document() OVERRIDE; 67 virtual Document* document() OVERRIDE;
68 68
69 RefPtrWillBePersistent<DeviceOrientationData> m_overrideOrientationData; 69 RefPtrWillBeMember<DeviceOrientationData> m_overrideOrientationData;
70 Document& m_document; 70 Document& m_document;
71 }; 71 };
72 72
73 } // namespace WebCore 73 } // namespace WebCore
74 74
75 #endif // DeviceOrientationController_h 75 #endif // DeviceOrientationController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698