Move PagePopupClient helper functions so they can be shared
authorkeishi@webkit.org <keishi@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Jul 2012 02:35:01 +0000 (02:35 +0000)
committerkeishi@webkit.org <keishi@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Jul 2012 02:35:01 +0000 (02:35 +0000)
commit9aa6eb02ff1f5b80445d7c6839b02615ccc67599
tree3c79ee96b82df8ae7509198a695b07f2118264c1
parent8b99d29afc0839f33c2bd49bea3a3bb6f8d44a01
Move PagePopupClient helper functions so they can be shared
https://bugs.webkit.org/show_bug.cgi?id=92096

Reviewed by Kent Tamura.

Move PagePopupClient helper functions to a separate file,
so they can be shared with new PagePopupClients.

No new tests. Covered by fast/forms/date/calendar-picker-appearance.html

* WebCore.gypi: Added PagePopupClient.cpp
* html/shadow/CalendarPickerElement.cpp:
(WebCore::CalendarPickerElement::writeDocument): Modified to use PagePopupClient.
* page/PagePopupClient.cpp: Added.
(WebCore):
(WebCore::PagePopupClient::addJavaScriptString):
(WebCore::PagePopupClient::addProperty):
* page/PagePopupClient.h:
(WebCore::PagePopupClient::addString):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@123568 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/WebCore.gypi
Source/WebCore/html/shadow/CalendarPickerElement.cpp
Source/WebCore/page/PagePopupClient.cpp [new file with mode: 0644]
Source/WebCore/page/PagePopupClient.h