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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/PositionObserver.java

Issue 24449007: [Android] Allow text handles to observe position of "parent" view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address tedchoc's comments Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.content.browser;
6
7 /**
8 * Used to register listeners that can be notified of changes to the position of a view.
9 */
10 public interface PositionObserver {
11 public interface Listener {
12 /**
13 * Called during predraw if the position of the underlying view has chan ged.
14 */
15 public void onPositionChanged(int positionX, int positionY);
Ted C 2013/10/14 23:46:44 as a small nit, public isn't needed on any methods
16 }
17
18 /**
19 * @return The current x position of the observed view.
20 */
21 public int getPositionX();
22
23 /**
24 * @return The current y position of the observed view.
25 */
26 public int getPositionY();
27
28 /**
29 * Register a listener to be called when the position of the underlying view changes.
30 */
31 public void addListener(Listener listener);
32
33 /**
34 * Remove a previously installed listener.
35 */
36 public void removeListener(Listener listener);
37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698