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

Unified Diff: Source/core/frame/DeviceSensorEventController.h

Issue 231003002: Blink: make the dispatchDeviceEvent virtual to allow overrides in subclasses. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/DeviceSensorEventController.h
diff --git a/Source/core/frame/DeviceSensorEventController.h b/Source/core/frame/DeviceSensorEventController.h
index 085f1e2a1c71b79e0d7aa6e248347f329eec47e9..913b46f4b9fdd7b8886e21ecc2278bd569b79dbd 100644
--- a/Source/core/frame/DeviceSensorEventController.h
+++ b/Source/core/frame/DeviceSensorEventController.h
@@ -44,7 +44,8 @@ protected:
explicit DeviceSensorEventController(Document&);
virtual ~DeviceSensorEventController();
- void dispatchDeviceEvent(const PassRefPtrWillBeRawPtr<Event>);
+ // Default dispatch is on DOMWindow, override in deriving class if necessary.
+ virtual void dispatchDeviceEvent(const PassRefPtrWillBeRawPtr<Event>);
virtual bool hasLastData() = 0;
virtual PassRefPtrWillBeRawPtr<Event> getLastEvent() = 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698