| OLD | NEW |
| 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 DeviceSingleWindowEventController_h | 5 #ifndef DeviceSingleWindowEventController_h |
| 6 #define DeviceSingleWindowEventController_h | 6 #define DeviceSingleWindowEventController_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/frame/LocalDOMWindow.h" | 9 #include "core/frame/LocalDOMWindow.h" |
| 10 #include "core/frame/PlatformEventController.h" | 10 #include "core/frame/PlatformEventController.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 // Inherited from LocalDOMWindow::EventListenerObserver. | 29 // Inherited from LocalDOMWindow::EventListenerObserver. |
| 30 void didAddEventListener(LocalDOMWindow*, const AtomicString&) override; | 30 void didAddEventListener(LocalDOMWindow*, const AtomicString&) override; |
| 31 void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) override; | 31 void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) override; |
| 32 void didRemoveAllEventListeners(LocalDOMWindow*) override; | 32 void didRemoveAllEventListeners(LocalDOMWindow*) override; |
| 33 | 33 |
| 34 protected: | 34 protected: |
| 35 explicit DeviceSingleWindowEventController(Document&); | 35 explicit DeviceSingleWindowEventController(Document&); |
| 36 | 36 |
| 37 Document& document() const { return *m_document; } | 37 Document& document() const { return *m_document; } |
| 38 bool isSameSecurityOriginAsMainFrame() const; |
| 38 | 39 |
| 39 void dispatchDeviceEvent(Event*); | 40 void dispatchDeviceEvent(Event*); |
| 40 | 41 |
| 41 virtual Event* lastEvent() const = 0; | 42 virtual Event* lastEvent() const = 0; |
| 42 virtual const AtomicString& eventTypeName() const = 0; | 43 virtual const AtomicString& eventTypeName() const = 0; |
| 43 virtual bool isNullEvent(Event*) const = 0; | 44 virtual bool isNullEvent(Event*) const = 0; |
| 44 | 45 |
| 45 private: | 46 private: |
| 46 bool m_needsCheckingNullEvents; | 47 bool m_needsCheckingNullEvents; |
| 47 Member<Document> m_document; | 48 Member<Document> m_document; |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 } // namespace blink | 51 } // namespace blink |
| 51 | 52 |
| 52 #endif // DeviceSingleWindowEventController_h | 53 #endif // DeviceSingleWindowEventController_h |
| OLD | NEW |