Chromium Code Reviews| Index: content/public/android/java/src/org/chromium/content/browser/CursorController.java |
| diff --git a/content/public/android/java/src/org/chromium/content/browser/CursorController.java b/content/public/android/java/src/org/chromium/content/browser/CursorController.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6b9db76b72935c021a6ac7d9abaab68a32264b01 |
| --- /dev/null |
| +++ b/content/public/android/java/src/org/chromium/content/browser/CursorController.java |
| @@ -0,0 +1,41 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
|
bulach
2012/10/05 12:50:59
nit: 2012
Iain Merrick
2012/10/05 19:01:52
Done (and I'll fix other occurrences too)
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +package org.chromium.content.browser; |
| + |
| +import android.view.ViewTreeObserver; |
| + |
| +/** |
| + * A CursorController instance can be used to control a cursor in the text. |
| + */ |
| +interface CursorController extends ViewTreeObserver.OnTouchModeChangeListener { |
| + |
| + /** |
| + * Hide the cursor controller from screen. |
| + */ |
| + public void hide(); |
| + |
| + /** |
| + * @return true if the CursorController is currently visible |
| + */ |
| + public boolean isShowing(); |
| + |
| + /** |
| + * Called when the handle is about to start updating its position. |
| + * @param handle |
| + */ |
| + public void beforeStartUpdatingPosition(HandleView handle); |
| + |
| + /** |
| + * Update the controller's position. |
| + */ |
| + public void updatePosition(HandleView handle, int x, int y); |
| + |
| + /** |
| + * Called when the view is detached from window. Perform house keeping task, such as |
| + * stopping Runnable thread that would otherwise keep a reference on the context, thus |
| + * preventing the activity to be recycled. |
| + */ |
| + public void onDetached(); |
| +} |