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

Issue 11316153: implement input type=color for android (Closed)

Created:
8 years ago by Miguel Garcia
Modified:
7 years, 2 months ago
CC:
joth, chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jochen+watch_chromium.org, keishi1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Implement input type=color for android Note that the feature is still disabled in WebKit and it will remain so until we finalize the UI. TBR=thakis BUG=135771 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170517

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Total comments: 31

Patch Set 4 : Fix a FindBug error #

Total comments: 37

Patch Set 5 : #

Patch Set 6 : #

Total comments: 24

Patch Set 7 : #

Total comments: 6

Patch Set 8 : #

Total comments: 9

Patch Set 9 : #

Total comments: 24

Patch Set 10 : #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -20 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/TabBase.java View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -17 lines 0 comments Download
chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
chrome/browser/android/resource_id.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
chrome/browser/android/tab_android.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -3 lines 0 comments Download
chrome/browser/content_settings/tab_specific_content_settings.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
chrome/browser/infobars/infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
chrome/browser/infobars/infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/browser/ui/blocked_content/popup_blocked_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +33 lines, -0 lines 0 comments Download
chrome/browser/ui/blocked_content/popup_blocked_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +63 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
Miguel Garcia
https://codereview.chromium.org/11316153/diff/1/ui/android/java/src/org/chromium/ui/ColorPickerDialog.java File ui/android/java/src/org/chromium/ui/ColorPickerDialog.java (right): https://codereview.chromium.org/11316153/diff/1/ui/android/java/src/org/chromium/ui/ColorPickerDialog.java#newcode5 ui/android/java/src/org/chromium/ui/ColorPickerDialog.java:5: package org.chromium.ui; This is an initial UI heavily based ...
8 years ago (2012-11-23 16:57:08 UTC) #1
Peter Beverloo
Hi Miguel, thanks for the patch! I haven't thoroughly reviewed the implementation of the color ...
8 years ago (2012-11-23 17:55:47 UTC) #2
Peter Beverloo
Some minor nits on the title and description: Maybe a description like "Implement a color ...
8 years ago (2012-11-23 17:56:42 UTC) #3
bulach
thanks miguel! this will be a great "demo" on how to implement a feature in ...
8 years ago (2012-11-26 09:05:32 UTC) #4
bulach
cool, just some more comments after a full read.. besides nits, the more important part ...
8 years ago (2012-11-26 11:29:31 UTC) #5
Miguel Garcia
https://codereview.chromium.org/11316153/diff/4001/content/components/web_contents_delegate_android/color_chooser_android.cc File content/components/web_contents_delegate_android/color_chooser_android.cc (right): https://codereview.chromium.org/11316153/diff/4001/content/components/web_contents_delegate_android/color_chooser_android.cc#newcode15 content/components/web_contents_delegate_android/color_chooser_android.cc:15: SkColor initial_color) : On 2012/11/23 17:55:48, Peter Beverloo wrote: ...
8 years ago (2012-11-26 11:35:10 UTC) #6
bulach
https://codereview.chromium.org/11316153/diff/4001/ui/android/java/src/org/chromium/ui/ColorPickerDialog.java File ui/android/java/src/org/chromium/ui/ColorPickerDialog.java (right): https://codereview.chromium.org/11316153/diff/4001/ui/android/java/src/org/chromium/ui/ColorPickerDialog.java#newcode46 ui/android/java/src/org/chromium/ui/ColorPickerDialog.java:46: mListener = listener; On 2012/11/23 17:55:48, Peter Beverloo wrote: ...
8 years ago (2012-11-26 11:39:16 UTC) #7
Miguel Garcia
TODO added, also linking it to the UI bug. I agree it's nice to have ...
8 years ago (2012-11-26 13:25:47 UTC) #8
Miguel Garcia
https://codereview.chromium.org/11316153/diff/3006/content/components/web_contents_delegate_android/web_contents_delegate_android.h File content/components/web_contents_delegate_android/web_contents_delegate_android.h (right): https://codereview.chromium.org/11316153/diff/3006/content/components/web_contents_delegate_android/web_contents_delegate_android.h#newcode59 content/components/web_contents_delegate_android/web_contents_delegate_android.h:59: content::WebContents* web_contents, int color_chooser_id, In the .cc file sometimes ...
8 years ago (2012-11-26 13:25:57 UTC) #9
Miguel Garcia
Thanks for the review! Ready for another go when you have a chance. On 2012/11/26 ...
8 years ago (2012-11-26 18:20:33 UTC) #10
Miguel Garcia
Let me know if there is anything else you need here or if I can ...
8 years ago (2012-11-27 17:25:59 UTC) #11
Peter Beverloo
Three more spacing nits and a reference to comments in PS3. The native part looks ...
8 years ago (2012-11-27 17:37:22 UTC) #12
joth
some drive-by comments. https://codereview.chromium.org/11316153/diff/2003/content/components/web_contents_delegate_android/color_chooser_android.cc File content/components/web_contents_delegate_android/color_chooser_android.cc (right): https://codereview.chromium.org/11316153/diff/2003/content/components/web_contents_delegate_android/color_chooser_android.cc#newcode16 content/components/web_contents_delegate_android/color_chooser_android.cc:16: : ColorChooser::ColorChooser(identifier), nit: wrong indent. 4 ...
8 years ago (2012-11-27 18:44:07 UTC) #13
Miguel Garcia
https://codereview.chromium.org/11316153/diff/4001/content/components/web_contents_delegate_android/color_chooser_android.cc File content/components/web_contents_delegate_android/color_chooser_android.cc (right): https://codereview.chromium.org/11316153/diff/4001/content/components/web_contents_delegate_android/color_chooser_android.cc#newcode33 content/components/web_contents_delegate_android/color_chooser_android.cc:33: void ColorChooserAndroid::End() { On 2012/11/23 17:55:48, Peter Beverloo wrote: ...
8 years ago (2012-11-27 18:44:30 UTC) #14
Miguel Garcia
Kent, if you have a sec would you mind having a look at content/components/web_contents_delegate_android/color_chooser_android.cc ? ...
8 years ago (2012-11-27 18:47:07 UTC) #15
tkent
> In particular the method SetSelectedColor is left unimplemented, I think it is > ok ...
8 years ago (2012-11-28 01:07:13 UTC) #16
tkent
https://codereview.chromium.org/11316153/diff/2004/ui/android/java/src/org/chromium/ui/ColorPickerDialog.java File ui/android/java/src/org/chromium/ui/ColorPickerDialog.java (right): https://codereview.chromium.org/11316153/diff/2004/ui/android/java/src/org/chromium/ui/ColorPickerDialog.java#newcode74 ui/android/java/src/org/chromium/ui/ColorPickerDialog.java:74: center_x = getWidth() / 2; I don't know Java ...
8 years ago (2012-11-28 01:09:45 UTC) #17
Miguel Garcia
https://codereview.chromium.org/11316153/diff/2003/content/components/web_contents_delegate_android/color_chooser_android.cc File content/components/web_contents_delegate_android/color_chooser_android.cc (right): https://codereview.chromium.org/11316153/diff/2003/content/components/web_contents_delegate_android/color_chooser_android.cc#newcode16 content/components/web_contents_delegate_android/color_chooser_android.cc:16: : ColorChooser::ColorChooser(identifier), On 2012/11/27 18:44:07, joth wrote: > nit: ...
8 years ago (2012-11-28 11:35:44 UTC) #18
Miguel Garcia
Adding joth for OWNERS of content/components/web_contents_delegate_android/ and joi for OWNERS of content/public/browser/ On 2012/11/28 11:35:44, ...
8 years ago (2012-11-28 12:10:46 UTC) #19
bulach
lgtm (but not an OWNERS on all files), just one suggestion for the Context parameter ...
8 years ago (2012-11-28 12:13:47 UTC) #20
bulach
https://codereview.chromium.org/11316153/diff/11007/content/components/web_contents_delegate_android/color_chooser_android.cc File content/components/web_contents_delegate_android/color_chooser_android.cc (right): https://codereview.chromium.org/11316153/diff/11007/content/components/web_contents_delegate_android/color_chooser_android.cc#newcode25 content/components/web_contents_delegate_android/color_chooser_android.cc:25: content_view_core->GetJavaObject().obj(), initial_color)); On 2012/11/28 12:13:47, bulach wrote: > looks ...
8 years ago (2012-11-28 14:03:42 UTC) #21
Miguel Garcia
https://codereview.chromium.org/11316153/diff/11007/content/components/web_contents_delegate_android/color_chooser_android.h File content/components/web_contents_delegate_android/color_chooser_android.h (right): https://codereview.chromium.org/11316153/diff/11007/content/components/web_contents_delegate_android/color_chooser_android.h#newcode19 content/components/web_contents_delegate_android/color_chooser_android.h:19: /** On 2012/11/28 12:13:47, bulach wrote: > nit: sorry ...
8 years ago (2012-11-28 17:05:59 UTC) #22
Peter Beverloo
lgtm as well, with a few indentation nits. https://codereview.chromium.org/11316153/diff/7017/content/components/web_contents_delegate_android/java/src/org/chromium/content/components/web_contents_delegate_android/ColorChooserAndroid.java File content/components/web_contents_delegate_android/java/src/org/chromium/content/components/web_contents_delegate_android/ColorChooserAndroid.java (right): https://codereview.chromium.org/11316153/diff/7017/content/components/web_contents_delegate_android/java/src/org/chromium/content/components/web_contents_delegate_android/ColorChooserAndroid.java#newcode26 content/components/web_contents_delegate_android/java/src/org/chromium/content/components/web_contents_delegate_android/ColorChooserAndroid.java:26: new ...
8 years ago (2012-11-28 17:56:58 UTC) #23
Miguel Garcia
Joth, Joi, can you have a look and lgtm if you think we are good? ...
8 years ago (2012-11-29 09:23:49 UTC) #24
Jói
LGTM with Peter's nits addressed. Defer to joth@ for the final review. https://codereview.chromium.org/11316153/diff/7017/content/components/web_contents_delegate_android/color_chooser_android.h File content/components/web_contents_delegate_android/color_chooser_android.h ...
8 years ago (2012-11-29 16:01:32 UTC) #25
joth
nits + 1 minor bug otherwise lgtm, no need to wait on me for another ...
8 years ago (2012-11-29 18:11:14 UTC) #26
Miguel Garcia
https://codereview.chromium.org/11316153/diff/7017/content/components/web_contents_delegate_android/color_chooser_android.cc File content/components/web_contents_delegate_android/color_chooser_android.cc (right): https://codereview.chromium.org/11316153/diff/7017/content/components/web_contents_delegate_android/color_chooser_android.cc#newcode35 content/components/web_contents_delegate_android/color_chooser_android.cc:35: Java_ColorChooserAndroid_closeColorChooser(env, j_color_chooser_.obj()); I think that'd be true if j_color_chooser_ ...
8 years ago (2012-11-30 11:57:22 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miguelg@chromium.org/11316153/5024
8 years ago (2012-11-30 11:59:31 UTC) #28
commit-bot: I haz the power
Presubmit check for 11316153-5024 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-11-30 11:59:40 UTC) #29
Peter Beverloo
Nico: I TBRed you for the single-line file removal in chrome/chrome_browser_ui.gypi.
8 years ago (2012-11-30 12:06:15 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miguelg@chromium.org/11316153/5024
8 years ago (2012-11-30 12:06:36 UTC) #31
Nico
gypi file lgtm
8 years ago (2012-11-30 16:07:07 UTC) #32
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests
8 years ago (2012-11-30 17:16:08 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miguelg@chromium.org/11316153/5024
8 years ago (2012-11-30 17:19:52 UTC) #34
commit-bot: I haz the power
8 years ago (2012-11-30 20:02:01 UTC) #35
Message was sent while issue was closed.
Change committed as 170517

Powered by Google App Engine
This is Rietveld 408576698