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

Issue 470193005: Hide PopupZoomer when the container view or window loses focus (Closed)

Created:
6 years, 4 months ago by raghu
Modified:
6 years, 4 months ago
Reviewers:
jdduke (slow), aruslan
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Hide PopupZoomer when the container view or window loses focus Currently there is a method which hides all the popups but call to hide PopupZoomer is missing. Added the call to hide PopupZoomer inside hidePopups and hiding the zoomer when the view loses focus or the window loses focus. Also added unit test code. BUG=405477 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291359

Patch Set 1 #

Patch Set 2 : Inserted line break #

Total comments: 4

Patch Set 3 : Hiding the zoomer even when the window loses focus #

Patch Set 4 : Deleted an empty line #

Total comments: 6

Patch Set 5 : Removed reduntant hide call in OnWindowFocusChanged #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -5 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 4 chunks +8 lines, -3 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java View 1 3 4 3 chunks +30 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
raghu
Hi Jdduke, Can you please review my patch. Please let me know if there is ...
6 years, 4 months ago (2014-08-20 15:31:02 UTC) #1
jdduke (slow)
This seems reasonable, but I'm not sure about the test change. Adding aruslan@ (per git ...
6 years, 4 months ago (2014-08-20 15:47:47 UTC) #2
raghu
Adding aruslan@ PTAL https://codereview.chromium.org/470193005/diff/20001/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://codereview.chromium.org/470193005/diff/20001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode524 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:524: if (mPopupZoomer.isShowing()) { On 2014/08/20 15:47:46, ...
6 years, 4 months ago (2014-08-21 06:23:59 UTC) #3
jdduke (slow)
https://codereview.chromium.org/470193005/diff/60001/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://codereview.chromium.org/470193005/diff/60001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode1645 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1645: mPopupZoomer.hide(false); When is this method called (without onHide also ...
6 years, 4 months ago (2014-08-21 14:46:42 UTC) #4
raghu
https://codereview.chromium.org/470193005/diff/60001/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://codereview.chromium.org/470193005/diff/60001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode1645 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1645: mPopupZoomer.hide(false); On 2014/08/21 14:46:41, jdduke wrote: > When is ...
6 years, 4 months ago (2014-08-21 16:12:32 UTC) #5
jdduke (slow)
lgtm
6 years, 4 months ago (2014-08-21 16:16:29 UTC) #6
raghu
On 2014/08/21 16:16:29, jdduke wrote: > lgtm Thanks. How does the test code look? Should ...
6 years, 4 months ago (2014-08-21 18:43:39 UTC) #7
jdduke (slow)
On 2014/08/21 18:43:39, rvg wrote: > On 2014/08/21 16:16:29, jdduke wrote: > > lgtm > ...
6 years, 4 months ago (2014-08-21 18:47:09 UTC) #8
aruslan
Yes, the patch looks fine. I had only one comment about incorrect OnKeyUp stuff, but ...
6 years, 4 months ago (2014-08-21 19:07:01 UTC) #9
raghu
The CQ bit was checked by r.ghatage@samsung.com
6 years, 4 months ago (2014-08-22 03:10:47 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/r.ghatage@samsung.com/470193005/80001
6 years, 4 months ago (2014-08-22 03:12:19 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-22 04:07:42 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-22 04:10:33 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/8379)
6 years, 4 months ago (2014-08-22 04:10:33 UTC) #14
raghu
The CQ bit was checked by r.ghatage@samsung.com
6 years, 4 months ago (2014-08-22 05:29:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/r.ghatage@samsung.com/470193005/80001
6 years, 4 months ago (2014-08-22 05:31:45 UTC) #16
commit-bot: I haz the power
6 years, 4 months ago (2014-08-22 07:43:35 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 (80001) as 291359

Powered by Google App Engine
This is Rietveld 408576698