Changeset 166890 in webkit
- Timestamp:
- Apr 7, 2014, 4:00:04 PM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 1 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r166889 r166890 1 2014-04-07 Dan Bernstein <mitz@apple.com> 2 3 Add API::InjectedBundle::FormClient 4 https://bugs.webkit.org/show_bug.cgi?id=131317 5 6 Reviewed by Anders Carlsson. 7 8 * WebKit2.xcodeproj/project.pbxproj: Added reference to new file. 9 10 * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp: 11 (WKBundlePageSetFormClient): 12 * WebProcess/InjectedBundle/API/c/WKBundlePageFormClient.h: 13 * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm: 14 (-[WKWebProcessPlugInBrowserContextController _setFormDelegate:]): Changed to define and 15 create a FormClient (which derives from API::InjectedBundle::FormClient and messages a 16 delegate), and set it as the form client. 17 (didFocusTextField): Deleted. 18 (willSubmitForm): Deleted. 19 (setUpFormClient): Deleted. 20 21 * WebProcess/InjectedBundle/APIInjectedBundleFormClient.h: Added. 22 (API::InjectedBundle::FormClient::~FormClient): 23 (API::InjectedBundle::FormClient::didFocusTextField): 24 (API::InjectedBundle::FormClient::textFieldDidBeginEditing): 25 (API::InjectedBundle::FormClient::textFieldDidEndEditing): 26 (API::InjectedBundle::FormClient::textDidChangeInTextField): 27 (API::InjectedBundle::FormClient::textDidChangeInTextArea): 28 (API::InjectedBundle::FormClient::shouldPerformActionInTextField): 29 (API::InjectedBundle::FormClient::willSubmitForm): 30 (API::InjectedBundle::FormClient::willSendSubmitEvent): 31 (API::InjectedBundle::FormClient::didAssociateFormControls): 32 (API::InjectedBundle::FormClient::shouldNotifyOnFormChanges): 33 34 * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp: 35 (WebKit::InjectedBundlePageFormClient::InjectedBundlePageFormClient): Added a constructor 36 from WKBundlePageFormClientBase. 37 (WebKit::toWKInputFieldActionType): Added helper to convert from internal enum to C SPI 38 enum. 39 (WebKit::InjectedBundlePageFormClient::shouldPerformActionInTextField): Use helper. 40 * WebProcess/InjectedBundle/InjectedBundlePageFormClient.h: Added inheritance from 41 API::InjectedBundle::FormClient, marked overrides as such. 42 43 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Removed unused forward 44 declarations. 45 46 * WebProcess/WebCoreSupport/WebEditorClient.cpp: 47 (WebKit::toInputFieldAction): Added helper to convert from C SPI enum to internal enum. 48 (WebKit::WebEditorClient::doTextFieldCommandFromEvent): Use helper. 49 (WebKit::WebEditorClient::textWillBeDeletedInTextField): Ditto. 50 51 * WebProcess/WebPage/WebPage.cpp: 52 (WebKit::WebPage::WebPage): Initialize m_formClient member. 53 (WebKit::WebPage::setInjectedBundleFormClient): Added. Updates m_formClient. 54 (WebKit::WebPage::close): Updated code to clear m_formClient. 55 (WebKit::WebPage::initializeInjectedBundleFormClient): Deleted. 56 * WebProcess/WebPage/WebPage.h: 57 (WebKit::WebPage::injectedBundleFormClient): Updated return type. 58 1 59 2014-04-07 Hyowon Kim <hw1008.kim@samsung.com> 2 60 -
trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
r166886 r166890 666 666 3766F9F1189A1254003CF19B /* libicucore.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BC87DFA91018101400564216 /* libicucore.dylib */; }; 667 667 3769079A18F31CB2001DFF04 /* APIInjectedBundlePageUIClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 3769079818F31CB2001DFF04 /* APIInjectedBundlePageUIClient.h */; }; 668 3769079E18F340A2001DFF04 /* APIInjectedBundleFormClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 3769079C18F340A2001DFF04 /* APIInjectedBundleFormClient.h */; }; 668 669 37694525184FC6B600CDE21F /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCF5068412431861005955AE /* Security.framework */; }; 669 670 377EAD4517E2C51A002D193D /* WKDeclarationSpecifiers.h in Headers */ = {isa = PBXBuildFile; fileRef = 377EAD4417E2C51A002D193D /* WKDeclarationSpecifiers.h */; settings = {ATTRIBUTES = (Public, ); }; }; … … 2485 2486 37608821150414F700FC82C7 /* WKRenderObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKRenderObject.h; sourceTree = "<group>"; }; 2486 2487 3769079818F31CB2001DFF04 /* APIInjectedBundlePageUIClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = APIInjectedBundlePageUIClient.h; path = API/APIInjectedBundlePageUIClient.h; sourceTree = "<group>"; }; 2488 3769079C18F340A2001DFF04 /* APIInjectedBundleFormClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = APIInjectedBundleFormClient.h; sourceTree = "<group>"; }; 2487 2489 377EAD4417E2C51A002D193D /* WKDeclarationSpecifiers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKDeclarationSpecifiers.h; sourceTree = "<group>"; }; 2488 2490 377EAD4617E2C77B002D193D /* WKUserContentInjectedFrames.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKUserContentInjectedFrames.h; sourceTree = "<group>"; }; … … 5763 5765 BC4BEE96120A091700FBA0C7 /* DOM */, 5764 5766 BC204EE411C83E9C008F3375 /* mac */, 5767 3769079C18F340A2001DFF04 /* APIInjectedBundleFormClient.h */, 5765 5768 3769079818F31CB2001DFF04 /* APIInjectedBundlePageUIClient.h */, 5766 5769 BC204EE011C83E98008F3375 /* InjectedBundle.cpp */, … … 7261 7264 E1AEA22F14687BDB00804569 /* WKFullKeyboardAccessWatcher.h in Headers */, 7262 7265 CDCA85C9132ABA4E00E961DF /* WKFullScreenWindowController.h in Headers */, 7266 3769079E18F340A2001DFF04 /* APIInjectedBundleFormClient.h in Headers */, 7263 7267 1AB8A1F618400B9D00E9AE69 /* WKPageFindMatchesClient.h in Headers */, 7264 7268 BC54CC1212D674EE005C67B0 /* WKGeolocationManager.h in Headers */, -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp
r166879 r166890 34 34 #include "InjectedBundleBackForwardList.h" 35 35 #include "InjectedBundleNodeHandle.h" 36 #include "InjectedBundlePageFormClient.h" 36 37 #include "InjectedBundlePageUIClient.h" 37 38 #include "PageBanner.h" … … 80 81 void WKBundlePageSetFormClient(WKBundlePageRef pageRef, WKBundlePageFormClientBase* wkClient) 81 82 { 82 toImpl(pageRef)-> initializeInjectedBundleFormClient(wkClient);83 toImpl(pageRef)->setInjectedBundleFormClient(std::make_unique<InjectedBundlePageFormClient>(wkClient)); 83 84 } 84 85 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePageFormClient.h
r160104 r166890 28 28 29 29 #include <WebKit2/WKBase.h> 30 #include <WebKit2/WKBundlePageEditorClient.h> 30 31 31 32 typedef void (*WKBundlePageTextFieldDidBeginEditingCallback)(WKBundlePageRef page, WKBundleNodeHandleRef htmlInputElementHandle, WKBundleFrameRef frame, const void* clientInfo); -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm
r166433 r166890 54 54 #import <WebCore/Document.h> 55 55 #import <WebCore/Frame.h> 56 #import <WebCore/HTMLFormElement.h> 57 #import <WebCore/HTMLInputElement.h> 56 58 57 59 using namespace WebCore; … … 268 270 } 269 271 270 static void didFocusTextField(WKBundlePageRef page, WKBundleNodeHandleRef htmlInputElementHandleRef, WKBundleFrameRef frameRef, const void* clientInfo)271 {272 WKWebProcessPlugInBrowserContextController *controller = (WKWebProcessPlugInBrowserContextController *)clientInfo;273 auto formDelegate = controller->_formDelegate.get();274 275 if ([formDelegate respondsToSelector:@selector(_webProcessPlugInBrowserContextController:didFocusTextField:inFrame:)])276 [formDelegate _webProcessPlugInBrowserContextController:controller didFocusTextField:wrapper(*toImpl(htmlInputElementHandleRef)) inFrame:wrapper(*toImpl(frameRef))];277 }278 279 static void willSubmitForm(WKBundlePageRef page, WKBundleNodeHandleRef htmlFormElementHandle, WKBundleFrameRef frame, WKBundleFrameRef sourceFrame, WKDictionaryRef values, WKTypeRef* userData, const void* clientInfo)280 {281 WKWebProcessPlugInBrowserContextController *controller = (WKWebProcessPlugInBrowserContextController *)clientInfo;282 auto formDelegate = controller->_formDelegate.get();283 284 if ([formDelegate respondsToSelector:@selector(_webProcessPlugInBrowserContextController:willSubmitForm:toFrame:fromFrame:withValues:)])285 [formDelegate _webProcessPlugInBrowserContextController:controller willSubmitForm:wrapper(*toImpl(htmlFormElementHandle)) toFrame:wrapper(*toImpl(frame)) fromFrame:wrapper(*toImpl(sourceFrame)) withValues:wrapper(*toImpl(values))];286 }287 288 static void setUpFormClient(WKWebProcessPlugInBrowserContextController *contextController, WebPage& page)289 {290 WKBundlePageFormClientV2 client;291 memset(&client, 0, sizeof(client));292 293 client.base.version = 2;294 client.base.clientInfo = contextController;295 client.didFocusTextField = didFocusTextField;296 client.willSubmitForm = willSubmitForm;297 298 page.initializeInjectedBundleFormClient(&client.base);299 }300 301 272 - (id <WKWebProcessPlugInLoadDelegate>)loadDelegate 302 273 { … … 405 376 _formDelegate = formDelegate; 406 377 378 class FormClient : public API::InjectedBundle::FormClient { 379 public: 380 explicit FormClient(WKWebProcessPlugInBrowserContextController *controller) 381 : m_controller(controller) 382 { 383 } 384 385 virtual ~FormClient() { } 386 387 virtual void didFocusTextField(WebPage*, HTMLInputElement* inputElement, WebFrame* frame) override 388 { 389 auto formDelegate = m_controller->_formDelegate.get(); 390 391 if ([formDelegate respondsToSelector:@selector(_webProcessPlugInBrowserContextController:didFocusTextField:inFrame:)]) 392 [formDelegate _webProcessPlugInBrowserContextController:m_controller didFocusTextField:wrapper(*InjectedBundleNodeHandle::getOrCreate(inputElement).get()) inFrame:wrapper(*frame)]; 393 } 394 395 virtual void willSubmitForm(WebPage*, HTMLFormElement* formElement, WebFrame* frame, WebFrame* sourceFrame, const Vector<std::pair<WTF::String, WTF::String>>& values, RefPtr<API::Object>& userData) override 396 { 397 auto formDelegate = m_controller->_formDelegate.get(); 398 399 if ([formDelegate respondsToSelector:@selector(_webProcessPlugInBrowserContextController:willSubmitForm:toFrame:fromFrame:withValues:)]) { 400 auto valueMap = adoptNS([[NSMutableDictionary alloc] initWithCapacity:values.size()]); 401 for (const auto& pair : values) 402 [valueMap setObject:pair.second forKey:pair.first]; 403 404 [formDelegate _webProcessPlugInBrowserContextController:m_controller willSubmitForm:wrapper(*InjectedBundleNodeHandle::getOrCreate(formElement).get()) toFrame:wrapper(*frame) fromFrame:wrapper(*sourceFrame) withValues:valueMap.get()]; 405 } 406 } 407 408 private: 409 WKWebProcessPlugInBrowserContextController *m_controller; 410 }; 411 407 412 if (formDelegate) 408 setUpFormClient(self, *_page);413 _page->setInjectedBundleFormClient(std::make_unique<FormClient>(self)); 409 414 else 410 _page-> initializeInjectedBundleFormClient(nullptr);415 _page->setInjectedBundleFormClient(nullptr); 411 416 } 412 417 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp
r160608 r166890 39 39 40 40 namespace WebKit { 41 42 InjectedBundlePageFormClient::InjectedBundlePageFormClient(const WKBundlePageFormClientBase* client) 43 { 44 initialize(client); 45 } 41 46 42 47 void InjectedBundlePageFormClient::didFocusTextField(WebPage* page, HTMLInputElement* inputElement, WebFrame* frame) … … 85 90 } 86 91 87 bool InjectedBundlePageFormClient::shouldPerformActionInTextField(WebPage* page, HTMLInputElement* inputElement, WKInputFieldActionType actionType, WebFrame* frame) 92 static WKInputFieldActionType toWKInputFieldActionType(API::InjectedBundle::FormClient::InputFieldAction action) 93 { 94 switch (action) { 95 case API::InjectedBundle::FormClient::InputFieldAction::MoveUp: 96 return WKInputFieldActionTypeMoveUp; 97 case API::InjectedBundle::FormClient::InputFieldAction::MoveDown: 98 return WKInputFieldActionTypeMoveDown; 99 case API::InjectedBundle::FormClient::InputFieldAction::Cancel: 100 return WKInputFieldActionTypeCancel; 101 case API::InjectedBundle::FormClient::InputFieldAction::InsertTab: 102 return WKInputFieldActionTypeInsertTab; 103 case API::InjectedBundle::FormClient::InputFieldAction::InsertBacktab: 104 return WKInputFieldActionTypeInsertBacktab; 105 case API::InjectedBundle::FormClient::InputFieldAction::InsertNewline: 106 return WKInputFieldActionTypeInsertNewline; 107 case API::InjectedBundle::FormClient::InputFieldAction::InsertDelete: 108 return WKInputFieldActionTypeInsertDelete; 109 } 110 111 ASSERT_NOT_REACHED(); 112 return WKInputFieldActionTypeCancel; 113 } 114 115 bool InjectedBundlePageFormClient::shouldPerformActionInTextField(WebPage* page, HTMLInputElement* inputElement, API::InjectedBundle::FormClient::InputFieldAction actionType, WebFrame* frame) 88 116 { 89 117 if (!m_client.shouldPerformActionInTextField) … … 91 119 92 120 RefPtr<InjectedBundleNodeHandle> nodeHandle = InjectedBundleNodeHandle::getOrCreate(inputElement); 93 return m_client.shouldPerformActionInTextField(toAPI(page), toAPI(nodeHandle.get()), actionType, toAPI(frame), m_client.base.clientInfo);121 return m_client.shouldPerformActionInTextField(toAPI(page), toAPI(nodeHandle.get()), toWKInputFieldActionType(actionType), toAPI(frame), m_client.base.clientInfo); 94 122 } 95 123 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageFormClient.h
r159994 r166890 28 28 29 29 #include "APIClient.h" 30 #include "WKBundlePage.h" 31 #include <algorithm> 32 #include <wtf/Forward.h> 33 #include <wtf/Vector.h> 30 #include "APIInjectedBundleFormClient.h" 31 #include "WKBundlePageFormClient.h" 34 32 35 33 namespace API { 36 class Object;37 34 38 35 template<> struct ClientTraits<WKBundlePageFormClientBase> { … … 41 38 } 42 39 43 namespace WebCore {44 class Element;45 class HTMLFormElement;46 class HTMLInputElement;47 class HTMLTextAreaElement;48 }49 50 40 namespace WebKit { 51 41 52 class I mmutableDictionary;53 class WebFrame; 54 class WebPage;42 class InjectedBundlePageFormClient : public API::Client<WKBundlePageFormClientBase>, public API::InjectedBundle::FormClient { 43 public: 44 explicit InjectedBundlePageFormClient(const WKBundlePageFormClientBase*); 55 45 56 class InjectedBundlePageFormClient : public API::Client<WKBundlePageFormClientBase> { 57 public: 58 void didFocusTextField(WebPage*, WebCore::HTMLInputElement*, WebFrame*); 59 void textFieldDidBeginEditing(WebPage*, WebCore::HTMLInputElement*, WebFrame*); 60 void textFieldDidEndEditing(WebPage*, WebCore::HTMLInputElement*, WebFrame*); 61 void textDidChangeInTextField(WebPage*, WebCore::HTMLInputElement*, WebFrame*); 62 void textDidChangeInTextArea(WebPage*, WebCore::HTMLTextAreaElement*, WebFrame*); 63 bool shouldPerformActionInTextField(WebPage*, WebCore::HTMLInputElement*, WKInputFieldActionType, WebFrame*); 64 void willSubmitForm(WebPage*, WebCore::HTMLFormElement*, WebFrame*, WebFrame* sourceFrame, const Vector<std::pair<String, String>>&, RefPtr<API::Object>& userData); 65 void willSendSubmitEvent(WebPage*, WebCore::HTMLFormElement*, WebFrame*, WebFrame* sourceFrame, const Vector<std::pair<String, String>>&); 66 void didAssociateFormControls(WebPage*, const Vector<RefPtr<WebCore::Element>>&); 67 bool shouldNotifyOnFormChanges(WebPage*); 46 virtual void didFocusTextField(WebPage*, WebCore::HTMLInputElement*, WebFrame*) override; 47 virtual void textFieldDidBeginEditing(WebPage*, WebCore::HTMLInputElement*, WebFrame*) override; 48 virtual void textFieldDidEndEditing(WebPage*, WebCore::HTMLInputElement*, WebFrame*) override; 49 virtual void textDidChangeInTextField(WebPage*, WebCore::HTMLInputElement*, WebFrame*) override; 50 virtual void textDidChangeInTextArea(WebPage*, WebCore::HTMLTextAreaElement*, WebFrame*) override; 51 virtual bool shouldPerformActionInTextField(WebPage*, WebCore::HTMLInputElement*, InputFieldAction, WebFrame*) override; 52 virtual void willSubmitForm(WebPage*, WebCore::HTMLFormElement*, WebFrame*, WebFrame* sourceFrame, const Vector<std::pair<String, String>>&, RefPtr<API::Object>& userData) override; 53 virtual void willSendSubmitEvent(WebPage*, WebCore::HTMLFormElement*, WebFrame*, WebFrame* sourceFrame, const Vector<std::pair<String, String>>&) override; 54 virtual void didAssociateFormControls(WebPage*, const Vector<RefPtr<WebCore::Element>>&) override; 55 virtual bool shouldNotifyOnFormChanges(WebPage*) override; 68 56 }; 69 57 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageUIClient.h
r166879 r166890 42 42 } 43 43 44 namespace WebCore {45 class GraphicsContext;46 class HitTestResult;47 class IntRect;48 }49 50 44 namespace WebKit { 51 52 class WebFrame;53 class WebPage;54 class WebSecurityOrigin;55 45 56 46 class InjectedBundlePageUIClient : public API::Client<WKBundlePageUIClientBase>, public API::InjectedBundle::PageUIClient { -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp
r166818 r166890 362 362 } 363 363 364 static API::InjectedBundle::FormClient::InputFieldAction toInputFieldAction(WKInputFieldActionType action) 365 { 366 switch (action) { 367 case WKInputFieldActionTypeMoveUp: 368 return API::InjectedBundle::FormClient::InputFieldAction::MoveUp; 369 case WKInputFieldActionTypeMoveDown: 370 return API::InjectedBundle::FormClient::InputFieldAction::MoveDown; 371 case WKInputFieldActionTypeCancel: 372 return API::InjectedBundle::FormClient::InputFieldAction::Cancel; 373 case WKInputFieldActionTypeInsertTab: 374 return API::InjectedBundle::FormClient::InputFieldAction::InsertTab; 375 case WKInputFieldActionTypeInsertNewline: 376 return API::InjectedBundle::FormClient::InputFieldAction::InsertNewline; 377 case WKInputFieldActionTypeInsertDelete: 378 return API::InjectedBundle::FormClient::InputFieldAction::InsertDelete; 379 case WKInputFieldActionTypeInsertBacktab: 380 return API::InjectedBundle::FormClient::InputFieldAction::InsertBacktab; 381 } 382 383 ASSERT_NOT_REACHED(); 384 return API::InjectedBundle::FormClient::InputFieldAction::Cancel; 385 } 386 364 387 bool WebEditorClient::doTextFieldCommandFromEvent(Element* element, KeyboardEvent* event) 365 388 { … … 374 397 ASSERT(webFrame); 375 398 376 return m_page->injectedBundleFormClient().shouldPerformActionInTextField(m_page, toHTMLInputElement(element), actionType, webFrame);399 return m_page->injectedBundleFormClient().shouldPerformActionInTextField(m_page, toHTMLInputElement(element), toInputFieldAction(actionType), webFrame); 377 400 } 378 401 … … 385 408 ASSERT(webFrame); 386 409 387 m_page->injectedBundleFormClient().shouldPerformActionInTextField(m_page, toHTMLInputElement(element), WKInputFieldActionTypeInsertDelete, webFrame);410 m_page->injectedBundleFormClient().shouldPerformActionInTextField(m_page, toHTMLInputElement(element), toInputFieldAction(WKInputFieldActionTypeInsertDelete), webFrame); 388 411 } 389 412 -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r166879 r166890 264 264 , m_setCanStartMediaTimer(RunLoop::main(), this, &WebPage::setCanStartMediaTimerFired) 265 265 , m_sendDidUpdateViewStateTimer(RunLoop::main(), this, &WebPage::didUpdateViewStateTimerFired) 266 , m_formClient(std::make_unique<API::InjectedBundle::FormClient>()) 266 267 , m_uiClient(std::make_unique<API::InjectedBundle::PageUIClient>()) 267 268 , m_findController(this) … … 530 531 } 531 532 532 void WebPage::initializeInjectedBundleFormClient(WKBundlePageFormClientBase* client) 533 { 534 m_formClient.initialize(client); 533 void WebPage::setInjectedBundleFormClient(std::unique_ptr<API::InjectedBundle::FormClient> formClient) 534 { 535 if (!formClient) { 536 m_formClient = std::make_unique<API::InjectedBundle::FormClient>(); 537 return; 538 } 539 540 m_formClient = std::move(formClient); 535 541 } 536 542 … … 880 886 #endif 881 887 m_editorClient.initialize(0); 882 m_formClient .initialize(0);888 m_formClient = std::unique_ptr<API::InjectedBundle::FormClient>(); 883 889 m_loaderClient.initialize(0); 884 890 m_policyClient.initialize(0); -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h
r166881 r166890 27 27 #define WebPage_h 28 28 29 #include "APIInjectedBundleFormClient.h" 29 30 #include "APIInjectedBundlePageUIClient.h" 30 31 #include "APIObject.h" … … 35 36 #include "InjectedBundlePageDiagnosticLoggingClient.h" 36 37 #include "InjectedBundlePageEditorClient.h" 37 #include "InjectedBundlePageFormClient.h"38 38 #include "InjectedBundlePageFullScreenClient.h" 39 39 #include "InjectedBundlePageLoaderClient.h" … … 282 282 #endif 283 283 void initializeInjectedBundleEditorClient(WKBundlePageEditorClientBase*); 284 void initializeInjectedBundleFormClient(WKBundlePageFormClientBase*);284 void setInjectedBundleFormClient(std::unique_ptr<API::InjectedBundle::FormClient>); 285 285 void initializeInjectedBundleLoaderClient(WKBundlePageLoaderClientBase*); 286 286 void initializeInjectedBundlePolicyClient(WKBundlePagePolicyClientBase*); … … 296 296 #endif 297 297 InjectedBundlePageEditorClient& injectedBundleEditorClient() { return m_editorClient; } 298 InjectedBundlePageFormClient& injectedBundleFormClient() { return m_formClient; }298 API::InjectedBundle::FormClient& injectedBundleFormClient() { return *m_formClient.get(); } 299 299 InjectedBundlePageLoaderClient& injectedBundleLoaderClient() { return m_loaderClient; } 300 300 InjectedBundlePagePolicyClient& injectedBundlePolicyClient() { return m_policyClient; } … … 1076 1076 #endif 1077 1077 InjectedBundlePageEditorClient m_editorClient; 1078 InjectedBundlePageFormClientm_formClient;1078 std::unique_ptr<API::InjectedBundle::FormClient> m_formClient; 1079 1079 InjectedBundlePageLoaderClient m_loaderClient; 1080 1080 InjectedBundlePagePolicyClient m_policyClient;
Note:
See TracChangeset
for help on using the changeset viewer.