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

Issue 24449007: [Android] Allow text handles to observe position of "parent" view (Closed)

Created:
7 years, 2 months ago by cjhopman
Modified:
7 years, 2 months ago
Reviewers:
Ted C, joth
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, jam
Visibility:
Public.

Description

[Android] Allow text handles to observe position of "parent" view This adds the class PositionObserver. This class provides a way to listen for changes to the position of a particular view (and to query that views current position). Then, HandleView is updated to use a PositionObserver to keep its PopupWindow's position up-to-date with the logical "parent" view ( HandleView is logically a child of some other view, but has to use a PopupWindow outside of the logical parent's view hierarchy). This is similar to, and influenced by, Android's Editor.java (https://android.googlesource.com/platform/frameworks/base/+/android-4.3_r3.1/core/java/android/widget/Editor.java). BUG=b/10562149 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=228594

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Rebase #

Patch Set 3 : Refactor to provide testing facilities #

Patch Set 4 : Address comments #

Total comments: 23

Patch Set 5 : Remove refactoring. Should be similar to PS#2 #

Patch Set 6 : Address tedchoc's comments #

Total comments: 3

Patch Set 7 : Address comments #

Messages

Total messages: 10 (0 generated)
cjhopman
joth: *
7 years, 2 months ago (2013-09-26 18:42:48 UTC) #1
joth
I'm not super familiar with this, especially the changes in HandleView.java, so would be good ...
7 years, 2 months ago (2013-09-27 22:23:20 UTC) #2
cjhopman
Added tedchoc@ since he's a bit familiar with this code. "How does this stuff get ...
7 years, 2 months ago (2013-10-04 18:07:29 UTC) #3
cjhopman
Also, this should probably be two changes so feel free to suggest that.
7 years, 2 months ago (2013-10-04 18:08:45 UTC) #4
joth
On 2013/10/04 18:08:45, cjhopman wrote: > Also, this should probably be two changes so feel ...
7 years, 2 months ago (2013-10-08 20:17:31 UTC) #5
Ted C
I'm fine splitting it up, but here are my comments on this (if this needs ...
7 years, 2 months ago (2013-10-10 18:16:32 UTC) #6
cjhopman
Removed the testability refactoring and addressed those comments still relevant. Also, I think it compiles ...
7 years, 2 months ago (2013-10-10 21:35:23 UTC) #7
Ted C
lgtm w/ nits https://chromiumcodereview.appspot.com/24449007/diff/64001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://chromiumcodereview.appspot.com/24449007/diff/64001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode2007 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:2007: mPositionObserver) { these params now fit ...
7 years, 2 months ago (2013-10-14 23:46:44 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cjhopman@chromium.org/24449007/74001
7 years, 2 months ago (2013-10-15 00:04:45 UTC) #9
commit-bot: I haz the power
7 years, 2 months ago (2013-10-15 02:38:11 UTC) #10
Message was sent while issue was closed.
Change committed as 228594

Powered by Google App Engine
This is Rietveld 408576698