| OLD | NEW |
| 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 29 matching lines...) Expand all Loading... |
| 40 class DeviceMotionController FINAL : public NoBaseWillBeGarbageCollectedFinalize
d<DeviceMotionController>, public DeviceSensorEventController, public DocumentSu
pplement, public DOMWindowLifecycleObserver { | 40 class DeviceMotionController FINAL : public NoBaseWillBeGarbageCollectedFinalize
d<DeviceMotionController>, public DeviceSensorEventController, public DocumentSu
pplement, public DOMWindowLifecycleObserver { |
| 41 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceMotionController); | 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* visitor) OVERRIDE { DocumentSupplement::trace(vi
sitor); } | |
| 51 | |
| 52 private: | 50 private: |
| 53 explicit DeviceMotionController(Document&); | 51 explicit DeviceMotionController(Document&); |
| 54 virtual void registerWithDispatcher() OVERRIDE; | 52 virtual void registerWithDispatcher() OVERRIDE; |
| 55 virtual void unregisterWithDispatcher() OVERRIDE; | 53 virtual void unregisterWithDispatcher() OVERRIDE; |
| 56 | 54 |
| 57 // Inherited from DOMWindowLifecycleObserver. | 55 // Inherited from DOMWindowLifecycleObserver. |
| 58 virtual void didAddEventListener(DOMWindow*, const AtomicString&) OVERRIDE; | 56 virtual void didAddEventListener(DOMWindow*, const AtomicString&) OVERRIDE; |
| 59 virtual void didRemoveEventListener(DOMWindow*, const AtomicString&) OVERRID
E; | 57 virtual void didRemoveEventListener(DOMWindow*, const AtomicString&) OVERRID
E; |
| 60 virtual void didRemoveAllEventListeners(DOMWindow*) OVERRIDE; | 58 virtual void didRemoveAllEventListeners(DOMWindow*) OVERRIDE; |
| 61 | 59 |
| 62 virtual bool hasLastData() OVERRIDE; | 60 virtual bool hasLastData() OVERRIDE; |
| 63 virtual PassRefPtrWillBeRawPtr<Event> getLastEvent() OVERRIDE; | 61 virtual PassRefPtrWillBeRawPtr<Event> getLastEvent() OVERRIDE; |
| 64 virtual bool isNullEvent(Event*) OVERRIDE; | 62 virtual bool isNullEvent(Event*) OVERRIDE; |
| 65 virtual Document* document() OVERRIDE; | 63 virtual Document* document() OVERRIDE; |
| 66 | 64 |
| 67 Document& m_document; | 65 Document& m_document; |
| 68 }; | 66 }; |
| 69 | 67 |
| 70 } // namespace WebCore | 68 } // namespace WebCore |
| 71 | 69 |
| 72 #endif // DeviceMotionController_h | 70 #endif // DeviceMotionController_h |
| OLD | NEW |