WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 95058
[WK2] Add color picker API support for WebKit2
https://bugs.webkit.org/show_bug.cgi?id=95058
Summary
[WK2] Add color picker API support for WebKit2
KwangYong Choi
Reported
2012-08-27 01:53:18 PDT
Add color picker API support for WebKit2
Attachments
Patch
(42.59 KB, patch)
2012-09-03 05:13 PDT
,
KwangYong Choi
no flags
Details
Formatted Diff
Diff
Patch
(42.58 KB, patch)
2012-09-03 05:27 PDT
,
KwangYong Choi
no flags
Details
Formatted Diff
Diff
Patch
(42.76 KB, patch)
2012-09-03 17:36 PDT
,
KwangYong Choi
no flags
Details
Formatted Diff
Diff
Patch
(42.76 KB, patch)
2012-09-03 23:48 PDT
,
KwangYong Choi
no flags
Details
Formatted Diff
Diff
Patch
(42.93 KB, patch)
2012-09-07 05:49 PDT
,
KwangYong Choi
gyuyoung.kim
: review+
Details
Formatted Diff
Diff
Patch
(42.96 KB, patch)
2012-09-13 19:52 PDT
,
KwangYong Choi
no flags
Details
Formatted Diff
Diff
Patch
(43.14 KB, patch)
2012-09-13 20:14 PDT
,
KwangYong Choi
no flags
Details
Formatted Diff
Diff
Show Obsolete
(6)
View All
Add attachment
proposed patch, testcase, etc.
KwangYong Choi
Comment 1
2012-08-30 05:47:41 PDT
I implemented this feature to
bug 91832
.
KwangYong Choi
Comment 2
2012-09-03 05:13:02 PDT
Created
attachment 161901
[details]
Patch I think, it can be handled separately from
bug 91832
. In this patch, there are two UI client callbacks for show/hide color picker. And one set API for setting selected color.
WebKit Review Bot
Comment 3
2012-09-03 05:16:30 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See
http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
WebKit Review Bot
Comment 4
2012-09-03 05:16:52 PDT
Attachment 161901
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/CMakeLists.txt', u'Source/W..." exit_code: 1 Source/WebKit2/UIProcess/WebColorChooserProxy.h:65: The parameter name "client" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 28 files If any of these errors are false positives, please file a bug against check-webkit-style.
KwangYong Choi
Comment 5
2012-09-03 05:27:55 PDT
Created
attachment 161904
[details]
Patch Fixed style.
Gyuyoung Kim
Comment 6
2012-09-03 06:09:33 PDT
Comment on
attachment 161904
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=161904&action=review
> Source/WebKit2/Shared/APIObject.h:111 > + TypeColorPickerResultListener,
Wrong alphabetical order.
> Source/WebKit2/UIProcess/WebColorChooserProxy.h:65 > + WebColorChooserProxy(Client*);
Missing explicit keyword.
> Source/WebKit2/UIProcess/WebColorPickerResultListenerProxy.h:53 > + WebColorPickerResultListenerProxy(WebPageProxy*);
ditto.
KwangYong Choi
Comment 7
2012-09-03 17:36:05 PDT
Created
attachment 161950
[details]
Patch Fixed coding style and added explicit keyword.
Chris Dumez
Comment 8
2012-09-03 23:15:38 PDT
Comment on
attachment 161950
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=161950&action=review
> Source/WebKit2/UIProcess/API/C/WKColorPickerResultListener.cpp:39 > +void WKColorPickerResultListenerColorSet(WKColorPickerResultListenerRef listenerRef, const WKStringRef color)
WKColorPickerResultListenerColorSet -> WKColorPickerResultListenerSetColor ? We shouldn't use Yoda style here, this isn't EFL :)
KwangYong Choi
Comment 9
2012-09-03 23:48:17 PDT
Created
attachment 161973
[details]
Patch WKColorPickerResultListenerColorSet -> WKColorPickerResultListenerSetColor
Gyuyoung Kim
Comment 10
2012-09-07 04:33:38 PDT
Comment on
attachment 161973
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=161973&action=review
It looks showColorPicker and hideColorPicker are duplicate with
Bug 91832
. Do you explain what is difference between this bug and
Bug 91832
?
> Source/WebKit2/UIProcess/API/C/WKColorPickerResultListener.cpp:35 > +{
Missing #if ENABLE() macro.
KwangYong Choi
Comment 11
2012-09-07 05:19:57 PDT
(In reply to
comment #10
)
> (From update of
attachment 161973
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=161973&action=review
> > It looks showColorPicker and hideColorPicker are duplicate with
Bug 91832
. Do you explain what is difference between this bug and
Bug 91832
?
This patch has only WK2 C API part. I will change
bug 91832
to use this patch. It's EFL API implementation.
> > > Source/WebKit2/UIProcess/API/C/WKColorPickerResultListener.cpp:35 > > +{ > > Missing #if ENABLE() macro.
I think, WKColorPickerResultListenerGetTypeID() should return TypeColorPickerResultListener always even though ENABLE(COLOR_INPUT_TYPE) is not defined. So I'm not using ENABLE() macro. WKColorPickerResultListenerGetTypeID() may return 0 instead of TypeColorPickerResultListener?
KwangYong Choi
Comment 12
2012-09-07 05:49:52 PDT
Created
attachment 162751
[details]
Patch Added #if ENABLE()
Gyuyoung Kim
Comment 13
2012-09-09 23:00:48 PDT
Looks find on my side. Simon, could you take a look this patch ?
Gyuyoung Kim
Comment 14
2012-09-12 01:49:29 PDT
If there is no comment by tomorrow, I'd like to set r+.
WebKit Review Bot
Comment 15
2012-09-13 18:33:36 PDT
Comment on
attachment 162751
[details]
Patch Rejecting
attachment 162751
[details]
from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: hing file Source/WebKit2/win/WebKit2.vcproj patching file Source/WebKit2/win/WebKit2Generated.make patching file Tools/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file Tools/MiniBrowser/mac/BrowserWindowController.m patching file Tools/MiniBrowser/win/BrowserView.cpp patching file Tools/WebKitTestRunner/TestController.cpp Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force', u'--reviewer', u'Gyuyoung K..." exit_code: 1 cwd: /mnt/git/webkit-commit-queue Full output:
http://queues.webkit.org/results/13845413
KwangYong Choi
Comment 16
2012-09-13 19:52:23 PDT
Created
attachment 164032
[details]
Patch Rebased.
Gyuyoung Kim
Comment 17
2012-09-13 19:54:39 PDT
Comment on
attachment 164032
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=164032&action=review
> Source/WebKit2/Shared/API/c/WKBase.h:127 > +typedef const struct OpaqueWKColorPickerResultListener* WKColorPickerResultListenerRef;
Nit: Wrong alphabetical order.
KwangYong Choi
Comment 18
2012-09-13 20:14:30 PDT
Created
attachment 164035
[details]
Patch Fixed alphabetical order.
WebKit Review Bot
Comment 19
2012-09-13 22:08:23 PDT
Comment on
attachment 164035
[details]
Patch Clearing flags on attachment: 164035 Committed
r128553
: <
http://trac.webkit.org/changeset/128553
>
WebKit Review Bot
Comment 20
2012-09-13 22:08:29 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug