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

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

Issue 1474803002: Rename SyntheticPointerGesture to SyntheticPointerAction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « content/browser/renderer_host/input/synthetic_pointer_gesture.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/synthetic_pointer_gesture.cc
diff --git a/content/browser/renderer_host/input/synthetic_pointer_gesture.cc b/content/browser/renderer_host/input/synthetic_pointer_gesture.cc
deleted file mode 100644
index 60b5eefc90796def4b1964042b8c89d0129cc97f..0000000000000000000000000000000000000000
--- a/content/browser/renderer_host/input/synthetic_pointer_gesture.cc
+++ /dev/null
@@ -1,58 +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_pointer_gesture.h"
-
-#include "base/logging.h"
-#include "third_party/WebKit/public/web/WebInputEvent.h"
-#include "ui/events/latency_info.h"
-
-namespace content {
-
-SyntheticPointerGesture::SyntheticPointerGesture(
- SyntheticGestureParams::GestureSourceType gesture_source_type,
- PointerActionType pointer_action_type,
- SyntheticPointer* synthetic_pointer,
- gfx::PointF position,
- int index)
- : gesture_source_type_(gesture_source_type),
- pointer_action_type_(pointer_action_type),
- position_(position),
- index_(index),
- synthetic_pointer_(synthetic_pointer) {}
-
-SyntheticPointerGesture::~SyntheticPointerGesture() {}
-
-SyntheticGesture::Result SyntheticPointerGesture::ForwardInputEvents(
- const base::TimeTicks& timestamp,
- SyntheticGestureTarget* target) {
- if (gesture_source_type_ == SyntheticGestureParams::DEFAULT_INPUT)
- gesture_source_type_ = target->GetDefaultSyntheticGestureSourceType();
-
- DCHECK_NE(gesture_source_type_, SyntheticGestureParams::DEFAULT_INPUT);
-
- ForwardTouchOrMouseInputEvents(timestamp, target);
- return SyntheticGesture::GESTURE_FINISHED;
-}
-
-void SyntheticPointerGesture::ForwardTouchOrMouseInputEvents(
- const base::TimeTicks& timestamp,
- SyntheticGestureTarget* target) {
- switch (pointer_action_type_) {
- case SyntheticGesture::PRESS:
- synthetic_pointer_->Press(position_.x(), position_.y(), target,
- timestamp);
- break;
- case SyntheticGesture::MOVE:
- synthetic_pointer_->Move(index_, position_.x(), position_.y(), target,
- timestamp);
- break;
- case SyntheticGesture::RELEASE:
- synthetic_pointer_->Release(index_, target, timestamp);
- break;
- }
- synthetic_pointer_->DispatchEvent(target, timestamp);
-}
-
-} // namespace content
« no previous file with comments | « content/browser/renderer_host/input/synthetic_pointer_gesture.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698