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

Issue 449033002: Removing unwanted canPaste() api calls and unwanted layout attributes (Closed)

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

Description

Simplify PastePopupMenu delegate interface and layout attributes Remove redundant calls to canPaste() in PastePopupMenu. Inhibit calls to show PastePopupMenu if clipboard is empty. Removed unwanted layout attributes to fix the greying of the PastePopupMenu when diplayed beside the insertion handler. BUG=400705 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288973

Patch Set 1 #

Patch Set 2 : Removed a calculation with final value #

Total comments: 3

Patch Set 3 : Merged changes from patchset for BUG=400705 #

Total comments: 2

Patch Set 4 : Replaced arrays with their singular form #

Total comments: 2

Patch Set 5 : Removed Unnecessary call to updateContent() #

Patch Set 6 : Rebased patch. #

Patch Set 7 : Fixed build error #

Patch Set 8 : Fixed build error #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -54 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 2 chunks +7 lines, -6 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java View 1 2 3 4 5 6 7 7 chunks +19 lines, -48 lines 1 comment Download

Messages

Total messages: 37 (0 generated)
kingshuk.j
@jdduke PTAL
6 years, 4 months ago (2014-08-07 13:51:02 UTC) #1
jdduke (slow)
This looks reasonable, but I have one question. https://codereview.chromium.org/449033002/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/449033002/diff/20001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java#newcode61 content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java:61: android.R.attr.textEditNoPasteWindowLayout, ...
6 years, 4 months ago (2014-08-07 19:25:56 UTC) #2
cjhopman
On 2014/08/07 19:25:56, jdduke wrote: > This looks reasonable, but I have one question. > ...
6 years, 4 months ago (2014-08-07 19:34:20 UTC) #3
jdduke (slow)
https://codereview.chromium.org/449033002/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/449033002/diff/20001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java#newcode61 content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java:61: android.R.attr.textEditNoPasteWindowLayout, On 2014/08/07 19:25:56, jdduke wrote: > It looks ...
6 years, 4 months ago (2014-08-07 19:37:07 UTC) #4
kingshuk.j
https://codereview.chromium.org/449033002/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/449033002/diff/20001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java#newcode61 content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java:61: android.R.attr.textEditNoPasteWindowLayout, On 2014/08/07 19:37:07, jdduke wrote: > On 2014/08/07 ...
6 years, 4 months ago (2014-08-08 02:55:11 UTC) #5
jdduke (slow)
On 2014/08/08 02:55:11, kingshuk.j wrote: > I have raised a bug for this greying of ...
6 years, 4 months ago (2014-08-08 15:01:54 UTC) #6
kingshuk.j
On 2014/08/08 15:01:54, jdduke wrote: > On 2014/08/08 02:55:11, kingshuk.j wrote: > > I have ...
6 years, 4 months ago (2014-08-08 17:54:07 UTC) #7
jdduke (slow)
On 2014/08/08 17:54:07, kingshuk.j wrote: > My understanding is that, android has given different layout ...
6 years, 4 months ago (2014-08-08 18:04:12 UTC) #8
kingshuk.j
On 2014/08/08 18:04:12, jdduke wrote: > On 2014/08/08 17:54:07, kingshuk.j wrote: > > My understanding ...
6 years, 4 months ago (2014-08-10 06:30:37 UTC) #9
jdduke (slow)
https://codereview.chromium.org/449033002/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/449033002/diff/40001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java#newcode61 content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java:61: mPasteViews = new View[POPUP_LAYOUT_ATTRS.length]; These should no longer be ...
6 years, 4 months ago (2014-08-10 19:05:05 UTC) #10
kingshuk.j
jdduke@: PTAL https://codereview.chromium.org/449033002/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/449033002/diff/40001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java#newcode61 content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java:61: mPasteViews = new View[POPUP_LAYOUT_ATTRS.length]; On 2014/08/10 19:05:05, ...
6 years, 4 months ago (2014-08-11 06:29:23 UTC) #11
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 4 months ago (2014-08-11 15:19:26 UTC) #12
jdduke (slow)
The CQ bit was unchecked by jdduke@chromium.org
6 years, 4 months ago (2014-08-11 15:19:34 UTC) #13
jdduke (slow)
https://codereview.chromium.org/449033002/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/449033002/diff/60001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java#newcode132 content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java:132: updateContent(); I don't think we need this call any ...
6 years, 4 months ago (2014-08-11 15:20:05 UTC) #14
kingshuk.j
https://codereview.chromium.org/449033002/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/449033002/diff/60001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java#newcode132 content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java:132: updateContent(); On 2014/08/11 15:20:05, jdduke wrote: > I don't ...
6 years, 4 months ago (2014-08-11 15:34:31 UTC) #15
kingshuk.j
On 2014/08/11 15:34:31, kingshuk.j wrote: > https://codereview.chromium.org/449033002/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): > > ...
6 years, 4 months ago (2014-08-11 15:59:56 UTC) #16
jdduke (slow)
lgtm
6 years, 4 months ago (2014-08-11 19:10:55 UTC) #17
kingshuk.j
The CQ bit was checked by kingshuk.j@samsung.com
6 years, 4 months ago (2014-08-12 03:37:22 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kingshuk.j@samsung.com/449033002/80001
6 years, 4 months ago (2014-08-12 03:38:44 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-12 03:48:04 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-12 03:49:44 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/40349) ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/4685) ios_rel_device ...
6 years, 4 months ago (2014-08-12 03:49:46 UTC) #22
kingshuk.j
The CQ bit was checked by kingshuk.j@samsung.com
6 years, 4 months ago (2014-08-12 05:53:09 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kingshuk.j@samsung.com/449033002/100001
6 years, 4 months ago (2014-08-12 05:55:22 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-12 06:39:42 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-12 07:02:35 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg/builds/5709)
6 years, 4 months ago (2014-08-12 07:02:36 UTC) #27
kingshuk.j
The CQ bit was checked by kingshuk.j@samsung.com
6 years, 4 months ago (2014-08-12 08:26:51 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kingshuk.j@samsung.com/449033002/120001
6 years, 4 months ago (2014-08-12 08:28:24 UTC) #29
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-12 09:14:09 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-12 10:05:44 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg/builds/5742)
6 years, 4 months ago (2014-08-12 10:05:45 UTC) #32
kingshuk.j
The CQ bit was checked by kingshuk.j@samsung.com
6 years, 4 months ago (2014-08-12 10:12:42 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kingshuk.j@samsung.com/449033002/140001
6 years, 4 months ago (2014-08-12 10:14:20 UTC) #34
commit-bot: I haz the power
Change committed as 288973
6 years, 4 months ago (2014-08-12 15:18:11 UTC) #35
jdduke (slow)
https://codereview.chromium.org/449033002/diff/140001/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/449033002/diff/140001/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java#newcode61 content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java:61: mPasteView = null; For future reference, Java objects default ...
6 years, 4 months ago (2014-08-12 15:26:11 UTC) #36
kingshuk.j
6 years, 4 months ago (2014-08-13 04:00:29 UTC) #37
Message was sent while issue was closed.
On 2014/08/12 15:26:11, jdduke wrote:
>
https://codereview.chromium.org/449033002/diff/140001/content/public/android/...
> File
>
content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java
> (right):
> 
>
https://codereview.chromium.org/449033002/diff/140001/content/public/android/...
>
content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java:61:
> mPasteView = null;
> For future reference, Java objects default to null when declared, so this is
> unnecessary.

Thanks for the information.I will follow this in future submissions.

Powered by Google App Engine
This is Rietveld 408576698