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

Issue 421173002: Paste PopupMenu gets cropped by StatusBar (Closed)

Created:
6 years, 4 months ago by kingshuk.j
Modified:
6 years, 4 months ago
Reviewers:
jdduke (slow)
CC:
chromium-reviews, darin-cc_chromium.org, jam, AKVT, AviD, ankit, Cyan, aurimas (slooooooooow), cjhopman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Android] Account for status bar offset when position paste popup The paste PopupMenu was getting clipped by the status bar when the insertion handle was brought close to the status bar. Update the position of the PopupMenu using the height of the status bar. BUG=397915 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287467

Patch Set 1 #

Total comments: 2

Patch Set 2 : Paste PopupMenu is getting cropped #

Total comments: 2

Patch Set 3 : Calculating the statusbarHeight only once #

Total comments: 6

Patch Set 4 : Renamed variables and removed unnecessary code. #

Total comments: 2

Patch Set 5 : Modified line indentations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M AUTHORS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java View 1 2 3 4 3 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
kingshuk.j
@jdduke PTAL
6 years, 4 months ago (2014-07-28 06:57:10 UTC) #1
kingshuk.j
@aurimas, @cjhopman PTAL
6 years, 4 months ago (2014-07-28 07:06:40 UTC) #2
jdduke (slow)
https://codereview.chromium.org/421173002/diff/1/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java File content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java (right): https://codereview.chromium.org/421173002/diff/1/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java#newcode135 content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java:135: int resourceId = mContext.getResources().getIdentifier("status_bar_height", "dimen", "android"); What guarantees do ...
6 years, 4 months ago (2014-07-28 15:46:03 UTC) #3
kingshuk.j
https://codereview.chromium.org/421173002/diff/1/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java File content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java (right): https://codereview.chromium.org/421173002/diff/1/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java#newcode135 content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java:135: int resourceId = mContext.getResources().getIdentifier("status_bar_height", "dimen", "android"); ok, I will ...
6 years, 4 months ago (2014-07-29 11:09:28 UTC) #4
kingshuk.j
@jdduke PTAL
6 years, 4 months ago (2014-07-29 11:25:11 UTC) #5
jdduke (slow)
https://codereview.chromium.org/421173002/diff/20001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java File content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java (right): https://codereview.chromium.org/421173002/diff/20001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java#newcode136 content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java:136: int resourceId = mContext.getResources() Could we cache the status ...
6 years, 4 months ago (2014-07-29 15:37:02 UTC) #6
kingshuk.j
https://codereview.chromium.org/421173002/diff/20001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java File content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java (right): https://codereview.chromium.org/421173002/diff/20001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java#newcode136 content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java:136: int resourceId = mContext.getResources() On 2014/07/29 15:37:02, jdduke wrote: ...
6 years, 4 months ago (2014-07-30 03:39:48 UTC) #7
kingshuk.j
@jdduke PTAL
6 years, 4 months ago (2014-07-30 06:14:32 UTC) #8
jdduke (slow)
In the future, please add a single reviewer, or only the minimal subset necessary for ...
6 years, 4 months ago (2014-07-30 15:24:16 UTC) #9
kingshuk.j
https://codereview.chromium.org/421173002/diff/40001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java File content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java (right): https://codereview.chromium.org/421173002/diff/40001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java#newcode85 content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java:85: mStatusBarHeight = 0; On 2014/07/30 15:24:16, jdduke wrote: > ...
6 years, 4 months ago (2014-07-31 04:40:05 UTC) #10
jdduke (slow)
https://codereview.chromium.org/421173002/diff/60001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java File content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java (right): https://codereview.chromium.org/421173002/diff/60001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java#newcode86 content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java:86: int statusBarHeightResourceId = mContext.getResources() Prefer line breaking on arguments, ...
6 years, 4 months ago (2014-07-31 17:07:39 UTC) #11
jdduke (slow)
On 2014/07/31 17:07:39, jdduke wrote: > mStatusBarHeight = > mContext.getResources().getDimensionPixelSize(statusBarHeightResourceId); Hmm, the formatting there came ...
6 years, 4 months ago (2014-07-31 17:08:27 UTC) #12
kingshuk.j
PTAL https://codereview.chromium.org/421173002/diff/60001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java File content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java (right): https://codereview.chromium.org/421173002/diff/60001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java#newcode86 content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java:86: int statusBarHeightResourceId = mContext.getResources() On 2014/07/31 17:07:39, jdduke ...
6 years, 4 months ago (2014-08-01 07:55:44 UTC) #13
jdduke (slow)
OK, this looks good but please update the description contents per the email I just ...
6 years, 4 months ago (2014-08-01 15:19:19 UTC) #14
kingshuk.j
On 2014/08/01 15:19:19, jdduke wrote: > OK, this looks good but please update the description ...
6 years, 4 months ago (2014-08-03 09:07:44 UTC) #15
jdduke (slow)
lgtm (I tweaked the description, note that the "Description" in Rietveld is what lands with ...
6 years, 4 months ago (2014-08-04 21:16:20 UTC) #16
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 4 months ago (2014-08-04 21:16:25 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kingshuk.j@samsung.com/421173002/80001
6 years, 4 months ago (2014-08-04 21:18:18 UTC) #18
commit-bot: I haz the power
6 years, 4 months ago (2014-08-05 05:46:13 UTC) #19
Message was sent while issue was closed.
Change committed as 287467

Powered by Google App Engine
This is Rietveld 408576698