Share common code between calendar picker and color suggestion picker
authorkeishi@webkit.org <keishi@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Aug 2012 03:34:14 +0000 (03:34 +0000)
committerkeishi@webkit.org <keishi@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Aug 2012 03:34:14 +0000 (03:34 +0000)
commitdaffde7d71053b8b0db8ccfdf15e7a2bb21bc9fc
treeb11d0feaaf4911a30e4278045eed1b21e1efe0c5
parent594d8a4ea1d4907ed400f40b068e05d6c8f057e8
Share common code between calendar picker and color suggestion picker
https://bugs.webkit.org/show_bug.cgi?id=93802

Reviewed by Kent Tamura.

.:

* ManualTests/forms/calendar-picker.html:
* ManualTests/forms/color-suggestion-picker.html:

Source/WebCore:

We want to share common code like utility functions between picker page popups.

No new tests because no behavior change. Covered by existing tests, color-suggestion-picker-appearance.html and calendar-picker-apeparance.html.

* Resources/pagepopups/calendarPicker.js:
(YearMonthController.prototype.attachTo):
(YearMonthController.prototype._showPopup):
* Resources/pagepopups/colorSuggestionPicker.js:
(handleMessage):
(handleArgumentsTimeout):
* Resources/pagepopups/pickerCommon.css: Added.
(body):
* Resources/pagepopups/pickerCommon.js: Added.
(createElement):
(resizeWindow):
(getScrollbarWidth):
* WebCore.gyp/WebCore.gyp: Add actions for pickerCommon.{css,js}
* html/shadow/CalendarPickerElement.cpp:
(WebCore::CalendarPickerElement::writeDocument):

Source/WebKit/chromium:

* src/ColorChooserUIController.cpp:
(WebKit::ColorChooserUIController::writeDocument):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@125641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
ChangeLog
ManualTests/forms/calendar-picker.html
ManualTests/forms/color-suggestion-picker.html
Source/WebCore/ChangeLog
Source/WebCore/Resources/pagepopups/calendarPicker.js
Source/WebCore/Resources/pagepopups/colorSuggestionPicker.js
Source/WebCore/Resources/pagepopups/pickerCommon.css [new file with mode: 0644]
Source/WebCore/Resources/pagepopups/pickerCommon.js [new file with mode: 0644]
Source/WebCore/WebCore.gyp/WebCore.gyp
Source/WebCore/html/shadow/CalendarPickerElement.cpp
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/src/ColorChooserUIController.cpp