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

Side by Side Diff: third_party/WebKit/Source/core/frame/DeviceSingleWindowEventController.h

Issue 2698723002: Add rappor logging for Device Orientation on security origins different from the main frame (Closed)
Patch Set: add DEviceMotion Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/DeviceSingleWindowEventController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/DeviceSingleWindowEventController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698