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

Unified Diff: content/browser/renderer_host/input/motion_event_web.cc

Issue 502993004: Remove abstract Clone and Cancel methods from MotionEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nasty bug fix Created 6 years, 2 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: content/browser/renderer_host/input/motion_event_web.cc
diff --git a/content/browser/renderer_host/input/motion_event_web.cc b/content/browser/renderer_host/input/motion_event_web.cc
index bff45355ce09326a5d5c922e960673667626f451..77a40a4fe254afc68ff90b087d9f46c4f08fb5b8 100644
--- a/content/browser/renderer_host/input/motion_event_web.cc
+++ b/content/browser/renderer_host/input/motion_event_web.cc
@@ -155,7 +155,6 @@ ui::MotionEvent::ToolType MotionEventWeb::GetToolType(
}
int MotionEventWeb::GetButtonState() const {
- NOTIMPLEMENTED();
return 0;
}
@@ -163,18 +162,4 @@ int MotionEventWeb::GetFlags() const {
return WebEventModifiersToEventFlags(event_.modifiers);
}
-scoped_ptr<ui::MotionEvent> MotionEventWeb::Clone() const {
- return scoped_ptr<MotionEvent>(new MotionEventWeb(event_));
-}
-
-scoped_ptr<ui::MotionEvent> MotionEventWeb::Cancel() const {
- WebTouchEvent cancel_event(event_);
- WebTouchEventTraits::ResetTypeAndTouchStates(
- blink::WebInputEvent::TouchCancel,
- // TODO(rbyers): Shouldn't we use a fresh timestamp?
- event_.timeStampSeconds,
- &cancel_event);
- return scoped_ptr<MotionEvent>(new MotionEventWeb(cancel_event));
-}
-
} // namespace content
« no previous file with comments | « content/browser/renderer_host/input/motion_event_web.h ('k') | content/browser/renderer_host/input/touch_handle_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698