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

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

Issue 2478423002: Rename SyntheticPointer to SyntheticPointerDriver (Closed)
Patch Set: rename Created 4 years, 1 month 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/synthetic_touch_pointer.cc
diff --git a/content/browser/renderer_host/input/synthetic_touch_pointer.cc b/content/browser/renderer_host/input/synthetic_touch_pointer.cc
deleted file mode 100644
index 2b1fa64893ab44881444996940028454257ba0ca..0000000000000000000000000000000000000000
--- a/content/browser/renderer_host/input/synthetic_touch_pointer.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/renderer_host/input/synthetic_touch_pointer.h"
-
-#include "content/browser/renderer_host/input/synthetic_gesture_target.h"
-
-namespace content {
-
-SyntheticTouchPointer::SyntheticTouchPointer() {}
-
-SyntheticTouchPointer::SyntheticTouchPointer(SyntheticWebTouchEvent touch_event)
- : touch_event_(touch_event) {}
-
-SyntheticTouchPointer::~SyntheticTouchPointer() {}
-
-void SyntheticTouchPointer::DispatchEvent(SyntheticGestureTarget* target,
- const base::TimeTicks& timestamp) {
- touch_event_.timeStampSeconds = ConvertTimestampToSeconds(timestamp);
- target->DispatchInputEventToPlatform(touch_event_);
-}
-
-int SyntheticTouchPointer::Press(float x,
- float y,
- SyntheticGestureTarget* target,
- const base::TimeTicks& timestamp) {
- int index = touch_event_.PressPoint(x, y);
- return index;
-}
-
-void SyntheticTouchPointer::Move(int index,
- float x,
- float y,
- SyntheticGestureTarget* target,
- const base::TimeTicks& timestamp) {
- touch_event_.MovePoint(index, x, y);
-}
-
-void SyntheticTouchPointer::Release(int index,
- SyntheticGestureTarget* target,
- const base::TimeTicks& timestamp) {
- touch_event_.ReleasePoint(index);
-}
-
-SyntheticGestureParams::GestureSourceType SyntheticTouchPointer::SourceType()
- const {
- return SyntheticGestureParams::TOUCH_INPUT;
-}
-
-} // namespace content

Powered by Google App Engine
This is Rietveld 408576698