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

Unified Diff: remoting/android/java/src/org/chromium/chromoting/TouchInputHandlerInterface.java

Issue 2066683003: [Chromoting] Add InputInjector and InputInjectorWrapper for easy unittesting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve review comments Created 4 years, 6 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: remoting/android/java/src/org/chromium/chromoting/TouchInputHandlerInterface.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/TouchInputHandlerInterface.java b/remoting/android/java/src/org/chromium/chromoting/TouchInputHandlerInterface.java
deleted file mode 100644
index 02aa2f6adee614842384acb690bd578c8d492d8d..0000000000000000000000000000000000000000
--- a/remoting/android/java/src/org/chromium/chromoting/TouchInputHandlerInterface.java
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2013 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.
-
-package org.chromium.chromoting;
-
-import org.chromium.chromoting.jni.Client;
-
-/**
- * This interface allows multiple styles of touchscreen UI to be implemented and dynamically
- * switched. The DesktopView passes the low-level touchscreen events and other events via this
- * interface. The implementation recognizes and processes the touchscreen gestures, and then
- * performs actions on the DesktopView (such as panning/zooming the display, injecting input, or
- * showing/hiding UI elements). All methods are called on the main UI thread.
- */
-public interface TouchInputHandlerInterface {
- // These constants must match those in the generated struct protocol::MouseEvent_MouseButton.
- int BUTTON_UNDEFINED = 0;
- int BUTTON_LEFT = 1;
- int BUTTON_MIDDLE = 2;
- int BUTTON_RIGHT = 3;
-
- /**
- * Initializes the instance. Implementations can assume this function will be called exactly
- * once after constructor but before other functions.
- */
- void init(Desktop desktop, Client client);
-
- /**
- * Whilst an animation is in progress, this method is called repeatedly until the animation is
- * cancelled. After this method returns, the DesktopView will schedule a repaint.
- */
- void processAnimation();
-}

Powered by Google App Engine
This is Rietveld 408576698