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

Side by Side Diff: Source/modules/device_orientation/DeviceMotionController.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: review comments 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 19 matching lines...) Expand all
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 DeviceMotionData; 37 class DeviceMotionData;
38 class DOMWindow; 38 class DOMWindow;
39 39
40 class DeviceMotionController FINAL : public DeviceSensorEventController, public DocumentSupplement, public DOMWindowLifecycleObserver { 40 class DeviceMotionController FINAL : public NoBaseWillBeGarbageCollectedFinalize d<DeviceMotionController>, public DeviceSensorEventController, public DocumentSu pplement, public DOMWindowLifecycleObserver {
41 41 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceMotionController);
42 public: 42 public:
43 virtual ~DeviceMotionController(); 43 virtual ~DeviceMotionController();
44 44
45 static const char* supplementName(); 45 static const char* supplementName();
46 static DeviceMotionController& from(Document&); 46 static DeviceMotionController& from(Document&);
47 47
48 void didChangeDeviceMotion(DeviceMotionData*); 48 void didChangeDeviceMotion(DeviceMotionData*);
49 49
50 virtual void trace(Visitor*) OVERRIDE { } 50 virtual void trace(Visitor*) OVERRIDE { }
51 51
52 private: 52 private:
53 explicit DeviceMotionController(Document&); 53 explicit DeviceMotionController(Document&);
54 virtual void registerWithDispatcher() OVERRIDE; 54 virtual void registerWithDispatcher() OVERRIDE;
55 virtual void unregisterWithDispatcher() OVERRIDE; 55 virtual void unregisterWithDispatcher() OVERRIDE;
56 56
57 // Inherited from DOMWindowLifecycleObserver. 57 // Inherited from DOMWindowLifecycleObserver.
58 virtual void didAddEventListener(DOMWindow*, const AtomicString&) OVERRIDE; 58 virtual void didAddEventListener(DOMWindow*, const AtomicString&) OVERRIDE;
59 virtual void didRemoveEventListener(DOMWindow*, const AtomicString&) OVERRID E; 59 virtual void didRemoveEventListener(DOMWindow*, const AtomicString&) OVERRID E;
60 virtual void didRemoveAllEventListeners(DOMWindow*) OVERRIDE; 60 virtual void didRemoveAllEventListeners(DOMWindow*) OVERRIDE;
61 61
62 virtual bool hasLastData() OVERRIDE; 62 virtual bool hasLastData() OVERRIDE;
63 virtual PassRefPtrWillBeRawPtr<Event> getLastEvent() OVERRIDE; 63 virtual PassRefPtrWillBeRawPtr<Event> getLastEvent() OVERRIDE;
64 virtual bool isNullEvent(Event*) OVERRIDE; 64 virtual bool isNullEvent(Event*) OVERRIDE;
65 }; 65 };
66 66
67 } // namespace WebCore 67 } // namespace WebCore
68 68
69 #endif // DeviceMotionController_h 69 #endif // DeviceMotionController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698