Bug 102525 - [Chromium] Remove the dependency of INPUT_TYPE_COLOR on PAGE_POPUP
Summary: [Chromium] Remove the dependency of INPUT_TYPE_COLOR on PAGE_POPUP
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: All Unspecified
: P2 Normal
Assignee: Miguel Garcia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-16 08:54 PST by Miguel Garcia
Modified: 2012-11-19 14:23 PST (History)
5 users (show)

See Also:


Attachments
Patch (20.10 KB, patch)
2012-11-16 08:57 PST, Miguel Garcia
no flags Details | Formatted Diff | Diff
Patch (10.16 KB, patch)
2012-11-19 03:31 PST, Miguel Garcia
no flags Details | Formatted Diff | Diff
Patch (19.06 KB, patch)
2012-11-19 03:37 PST, Miguel Garcia
no flags Details | Formatted Diff | Diff
Patch (19.06 KB, patch)
2012-11-19 04:17 PST, Miguel Garcia
no flags Details | Formatted Diff | Diff
Patch (19.17 KB, patch)
2012-11-19 07:48 PST, Miguel Garcia
no flags Details | Formatted Diff | Diff
Patch (19.18 KB, patch)
2012-11-19 07:50 PST, Miguel Garcia
no flags Details | Formatted Diff | Diff
Patch (19.18 KB, patch)
2012-11-19 07:55 PST, Miguel Garcia
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Garcia 2012-11-16 08:54:14 PST
Remove the dependency of INPUT_TYPE_COLOR on PAGE_POPUP
Comment 1 Miguel Garcia 2012-11-16 08:57:25 PST
Created attachment 174702 [details]
Patch
Comment 2 WebKit Review Bot 2012-11-16 10:52:41 PST
Comment on attachment 174702 [details]
Patch

Attachment 174702 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/14860341
Comment 3 Miguel Garcia 2012-11-19 03:31:49 PST
Created attachment 174938 [details]
Patch
Comment 4 WebKit Review Bot 2012-11-19 03:34:39 PST
Comment on attachment 174938 [details]
Patch

Attachment 174938 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/14911153
Comment 5 Miguel Garcia 2012-11-19 03:37:23 PST
Created attachment 174939 [details]
Patch
Comment 6 Miguel Garcia 2012-11-19 04:17:47 PST
Created attachment 174946 [details]
Patch
Comment 7 Miguel Garcia 2012-11-19 04:21:39 PST
Adding a few folks from the discussion on 

https://bugs.webkit.org/show_bug.cgi?id=102404
Comment 8 Kent Tamura 2012-11-19 06:23:01 PST
Comment on attachment 174946 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=174946&action=review

> Source/WebKit/chromium/src/ChromeClientImpl.cpp:41
> +#if ENABLE(PAGE_POPUP)
> +#include "ColorChooserPopupUIController.h"

nit: I prefer NOT wrapping a header inclusion with #if-#endif.  Other reviewers might have a different preference.

> Source/WebKit/chromium/src/ChromeClientImpl.cpp:692
> +    ColorChooserUIController* controller;
> +#if ENABLE(PAGE_POPUP)
> +    controller = new ColorChooserPopupUIController(this, chooserClient);
> +#else
> +    controller = new ColorChooserUIController(this, chooserClient);

Do not use a raw pointer here.

OwnPtr<ColorChooserUIController> controller;
controller = adoptPtr(new ...);
controller->openUI();
return controller.release();

> Source/WebKit/chromium/src/ColorChooserPopupUIController.cpp:30
> +

nit: blank line is not needed.

> Source/WebKit/chromium/src/ColorChooserPopupUIController.cpp:40
> +

ditto.

> Source/WebKit/chromium/src/ColorChooserPopupUIController.h:29
> +

ditto.

> Source/WebKit/chromium/src/ColorChooserPopupUIController.h:32
> +

ditto.

> Source/WebKit/chromium/src/ColorChooserPopupUIController.h:41
> +namespace WebKit {
> +class ColorChooserPopupUIController : public ColorChooserUIController, public WebCore::PagePopupClient  {

nit: add a blank line before "class"

> Source/WebKit/chromium/src/ColorChooserPopupUIController.h:63
> +    void closePopup();
> +    ChromeClientImpl* m_chromeClient;

nit: add a blank line between functions and data members.

> Source/WebKit/chromium/src/ColorChooserUIController.h:63
> +    OwnPtr<WebColorChooser> m_chooser;
> +private:

nit: add a blank line before "private:".
Comment 9 Miguel Garcia 2012-11-19 07:48:12 PST
Created attachment 174982 [details]
Patch
Comment 10 Miguel Garcia 2012-11-19 07:50:50 PST
Created attachment 174983 [details]
Patch
Comment 11 Miguel Garcia 2012-11-19 07:54:42 PST
Comment on attachment 174946 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=174946&action=review

>> Source/WebKit/chromium/src/ChromeClientImpl.cpp:41
>> +#include "ColorChooserPopupUIController.h"
> 
> nit: I prefer NOT wrapping a header inclusion with #if-#endif.  Other reviewers might have a different preference.

I'd rather leave it as is if you are ok since this file already has #if - #endif for other headers.

>> Source/WebKit/chromium/src/ChromeClientImpl.cpp:692
>> +    controller = new ColorChooserUIController(this, chooserClient);
> 
> Do not use a raw pointer here.
> 
> OwnPtr<ColorChooserUIController> controller;
> controller = adoptPtr(new ...);
> controller->openUI();
> return controller.release();

Done

>> Source/WebKit/chromium/src/ColorChooserPopupUIController.cpp:30
>> +
> 
> nit: blank line is not needed.

Done

>> Source/WebKit/chromium/src/ColorChooserPopupUIController.cpp:40
>> +
> 
> ditto.

Done

>> Source/WebKit/chromium/src/ColorChooserPopupUIController.h:29
>> +
> 
> ditto.

Done

>> Source/WebKit/chromium/src/ColorChooserPopupUIController.h:32
>> +
> 
> ditto.

Done

>> Source/WebKit/chromium/src/ColorChooserPopupUIController.h:41
>> +class ColorChooserPopupUIController : public ColorChooserUIController, public WebCore::PagePopupClient  {
> 
> nit: add a blank line before "class"

Done

>> Source/WebKit/chromium/src/ColorChooserPopupUIController.h:63
>> +    ChromeClientImpl* m_chromeClient;
> 
> nit: add a blank line between functions and data members.

Done

>> Source/WebKit/chromium/src/ColorChooserUIController.h:63
>> +private:
> 
> nit: add a blank line before "private:".

Done
Comment 12 Miguel Garcia 2012-11-19 07:55:23 PST
Created attachment 174986 [details]
Patch
Comment 13 Miguel Garcia 2012-11-19 08:07:01 PST
Thanks for the review Kent! I addressed your comments I think it's ready for another look.
Comment 14 Kent Tamura 2012-11-19 14:04:41 PST
Comment on attachment 174986 [details]
Patch

ok
Comment 15 WebKit Review Bot 2012-11-19 14:23:13 PST
Comment on attachment 174986 [details]
Patch

Clearing flags on attachment: 174986

Committed r135197: <http://trac.webkit.org/changeset/135197>
Comment 16 WebKit Review Bot 2012-11-19 14:23:17 PST
All reviewed patches have been landed.  Closing bug.