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

Unified Diff: third_party/WebKit/Source/core/page/EventWithHitTestResults.h

Issue 2650403006: Remove PlatformMouseEvent and use WebMouseEvent instead (Closed)
Patch Set: Fix nits Created 3 years, 11 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
Index: third_party/WebKit/Source/core/page/EventWithHitTestResults.h
diff --git a/third_party/WebKit/Source/core/page/EventWithHitTestResults.h b/third_party/WebKit/Source/core/page/EventWithHitTestResults.h
index 9d0bdb7b5c451309d9fb44134c548cb18407bf0f..b8292558340782515805c0ccce21093591d31cc8 100644
--- a/third_party/WebKit/Source/core/page/EventWithHitTestResults.h
+++ b/third_party/WebKit/Source/core/page/EventWithHitTestResults.h
@@ -23,8 +23,8 @@
#include "core/layout/HitTestResult.h"
#include "platform/PlatformEvent.h"
-#include "platform/PlatformMouseEvent.h"
#include "public/platform/WebGestureEvent.h"
+#include "public/platform/WebMouseEvent.h"
namespace blink {
@@ -46,14 +46,16 @@ class EventWithHitTestResults {
bool isOverLink() const { return m_hitTestResult.isOverLink(); }
bool isOverWidget() const { return m_hitTestResult.isOverWidget(); }
Node* innerNode() const { return m_hitTestResult.innerNode(); }
+ const String& canvasRegionId() const {
+ return m_hitTestResult.canvasRegionId();
+ }
private:
EventType m_event;
HitTestResult m_hitTestResult;
};
-using MouseEventWithHitTestResults =
- EventWithHitTestResults<PlatformMouseEvent>;
+using MouseEventWithHitTestResults = EventWithHitTestResults<WebMouseEvent>;
using GestureEventWithHitTestResults = EventWithHitTestResults<WebGestureEvent>;
« no previous file with comments | « third_party/WebKit/Source/core/page/DragController.cpp ('k') | third_party/WebKit/Source/core/page/PointerLockController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698