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

Unified Diff: content/browser/renderer_host/input/synthetic_mouse_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_mouse_pointer.cc
diff --git a/content/browser/renderer_host/input/synthetic_mouse_pointer.cc b/content/browser/renderer_host/input/synthetic_mouse_pointer.cc
deleted file mode 100644
index 2dd8cbb4c5b0e015167863139f4c22db9ee7f875..0000000000000000000000000000000000000000
--- a/content/browser/renderer_host/input/synthetic_mouse_pointer.cc
+++ /dev/null
@@ -1,57 +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_mouse_pointer.h"
-
-#include "content/browser/renderer_host/input/synthetic_gesture_target.h"
-
-namespace content {
-
-SyntheticMousePointer::SyntheticMousePointer() {}
-
-SyntheticMousePointer::~SyntheticMousePointer() {}
-
-void SyntheticMousePointer::DispatchEvent(SyntheticGestureTarget* target,
- const base::TimeTicks& timestamp) {
- mouse_event_.timeStampSeconds = ConvertTimestampToSeconds(timestamp);
- target->DispatchInputEventToPlatform(mouse_event_);
-}
-
-int SyntheticMousePointer::Press(float x,
- float y,
- SyntheticGestureTarget* target,
- const base::TimeTicks& timestamp) {
- mouse_event_ = SyntheticWebMouseEventBuilder::Build(
- blink::WebInputEvent::MouseDown, x, y, 0);
- mouse_event_.clickCount = 1;
- return 0;
-}
-
-void SyntheticMousePointer::Move(int index,
- float x,
- float y,
- SyntheticGestureTarget* target,
- const base::TimeTicks& timestamp) {
- blink::WebMouseEvent::Button button = mouse_event_.button;
- int click_count = mouse_event_.clickCount;
- mouse_event_ = SyntheticWebMouseEventBuilder::Build(
- blink::WebInputEvent::MouseMove, x, y, 0);
- mouse_event_.button = button;
- mouse_event_.clickCount = click_count;
-}
-
-void SyntheticMousePointer::Release(int index,
- SyntheticGestureTarget* target,
- const base::TimeTicks& timestamp) {
- mouse_event_ = SyntheticWebMouseEventBuilder::Build(
- blink::WebInputEvent::MouseUp, mouse_event_.x, mouse_event_.y, 0);
- mouse_event_.clickCount = 1;
-}
-
-SyntheticGestureParams::GestureSourceType SyntheticMousePointer::SourceType()
- const {
- return SyntheticGestureParams::MOUSE_INPUT;
-}
-
-} // namespace content
« no previous file with comments | « content/browser/renderer_host/input/synthetic_mouse_pointer.h ('k') | content/browser/renderer_host/input/synthetic_pointer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698