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

Unified Diff: Source/core/events/MouseRelatedEvent.h

Issue 1174683004: Populates sourceDevice attribute into MouseEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add initinternal Created 5 years, 6 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 | « Source/core/events/MouseEvent.cpp ('k') | Source/core/events/MouseRelatedEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/MouseRelatedEvent.h
diff --git a/Source/core/events/MouseRelatedEvent.h b/Source/core/events/MouseRelatedEvent.h
index 6b4ae753e08e1ab1ac95a98cb7c79c0bf42bcb29..36638b112a50ced0b0e8398b2ea0ce0ef6d2c20c 100644
--- a/Source/core/events/MouseRelatedEvent.h
+++ b/Source/core/events/MouseRelatedEvent.h
@@ -65,10 +65,12 @@ namespace blink {
protected:
MouseRelatedEvent();
+ // TODO(lanwei): Will make this argument non-optional and all the callers need to provide
+ // sourceDevice even when it is null, see https://crbug.com/476530.
MouseRelatedEvent(const AtomicString& type, bool canBubble, bool cancelable,
PassRefPtrWillBeRawPtr<AbstractView>, int detail, const IntPoint& screenLocation,
const IntPoint& rootFrameLocation, const IntPoint& movementDelta, bool ctrlKey, bool altKey,
- bool shiftKey, bool metaKey, bool isSimulated = false);
+ bool shiftKey, bool metaKey, bool isSimulated = false, InputDevice* sourceDevice = nullptr);
void initCoordinates();
void initCoordinates(const LayoutPoint& clientLocation);
« no previous file with comments | « Source/core/events/MouseEvent.cpp ('k') | Source/core/events/MouseRelatedEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698