"Use Selection for Find" doesn't work in PDF viewed in Safari
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2013-12-05  Anders Carlsson  <andersca@apple.com>
2
3         "Use Selection for Find" doesn't work in PDF viewed in Safari
4         https://bugs.webkit.org/show_bug.cgi?id=125319
5         <rdar://problem/15486983>
6
7         Reviewed by Tim Horton.
8
9         * WebProcess/Plugins/PDF/PDFPlugin.h:
10         * WebProcess/Plugins/PDF/PDFPlugin.mm:
11         (-[WKPDFLayerControllerDelegate writeItemsToPasteboard:withTypes:]):
12         Pass NSGeneralPboard to writeItemsToPasteboard.
13
14         (WebKit::PDFPlugin::handleEditingCommand):
15         Handle takeFindStringFromSelection by getting the current selection string and writing it to the find pasteboard.
16
17         (WebKit::PDFPlugin::isEditingCommandEnabled):
18         Handle takeFindStringFromSelection.
19
20         (WebKit::PDFPlugin::writeItemsToPasteboard):
21         Update this to take a pasteboard name.
22
23 2013-12-05  Anders Carlsson  <andersca@apple.com>
24
25         WebKit2 API should use weak ownership for delegate properties rather than assign
26         https://bugs.webkit.org/show_bug.cgi?id=125316
27         <rdar://problem/15560614>
28
29         Reviewed by Dan Bernstein.
30
31         Use WeakObjCPtr for the delegates.
32
33         * UIProcess/API/Cocoa/WKBrowsingContextController.h:
34         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
35         (didStartProvisionalLoadForFrame):
36         (didReceiveServerRedirectForProvisionalLoadForFrame):
37         (didFailProvisionalLoadWithErrorForFrame):
38         (didCommitLoadForFrame):
39         (didFinishLoadForFrame):
40         (didFailLoadWithErrorForFrame):
41         (didStartProgress):
42         (didChangeProgress):
43         (didFinishProgress):
44         (didChangeBackForwardList):
45         (setUpPagePolicyClient):
46         (-[WKBrowsingContextController loadDelegate]):
47         (-[WKBrowsingContextController setLoadDelegate:]):
48         (-[WKBrowsingContextController policyDelegate]):
49         (-[WKBrowsingContextController setPolicyDelegate:]):
50         (-[WKBrowsingContextController historyDelegate]):
51         (-[WKBrowsingContextController setHistoryDelegate:]):
52         * UIProcess/API/Cocoa/WKBrowsingContextControllerInternal.h:
53         * UIProcess/API/Cocoa/WKConnection.mm:
54         (didReceiveMessage):
55         (didClose):
56         (-[WKConnection delegate]):
57         (-[WKConnection setDelegate:]):
58         * UIProcess/API/Cocoa/WKProcessGroup.mm:
59         (didCreateConnection):
60         (getInjectedBundleInitializationUserData):
61         (didNavigateWithNavigationData):
62         (didPerformClientRedirect):
63         (didPerformServerRedirect):
64         (didUpdateHistoryTitle):
65         (-[WKProcessGroup delegate]):
66         (-[WKProcessGroup setDelegate:]):
67
68 2013-12-05  Anders Carlsson  <andersca@apple.com>
69
70         Tweak WeakObjCPtr
71         https://bugs.webkit.org/show_bug.cgi?id=125311
72
73         Reviewed by Darin Adler.
74
75         Make it possible to use WeakObjCPtr with pointer types such as id. Also,
76         add a getAutoreleased() member that will load the weak pointer and retain + autorelease it.
77
78         * Shared/mac/WeakObjCPtr.h:
79         (WebKit::WeakObjCPtr::WeakObjCPtr):
80         (WebKit::WeakObjCPtr::operator=):
81         (WebKit::WeakObjCPtr::get):
82         (WebKit::WeakObjCPtr::getAutoreleased):
83
84 2013-12-05  Zan Dobersek  <zdobersek@igalia.com>
85
86         [GTK][WK2] Clean up WorkQueueGtk
87         https://bugs.webkit.org/show_bug.cgi?id=125177
88
89         Reviewed by Carlos Garcia Campos.
90
91         Clean up the GTK implementation of the WorkQueue class a bit.
92         - registerSocketEventHandler doesn't take a condition argument anymore -- G_IO_IN was the only condition ever passed into
93         that method so that is now the hard-coded default.
94         - Clean up the declarations of GTK-specific bits in the WorkQueue header file. SocketEventSourceIterator typedef is removed
95         and auto will be used instead.
96         - WorkQueue::dispatchOnTermination and WorkQueue::SocketEventSource::performWorkOnTermination methods were unused and now removed.
97         - WorkQueue::SocketEventSource doesn't expect a GIO condition anymore, and WorkQueue::SocketEventSource::checkCondition is removed.
98         G_IO_IN condition was the only one used is now hard-coded into the check in WorkQueue::SocketEventSource::eventCallback.
99         - Removed an unnecessary non-null assertion for the heap-allocated SocketEventSource.
100         - Removed a technically duplicated assertion that a file descriptor is already present in the event sources map. Moved the
101         assertion before the HashMap::find() call.
102         - Removed two unnecessary assertions that non-null values are being returned by g_idle_source_new() and g_timeout_source_new().
103         Both functions are guaranteed to return non-null values.
104
105         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
106         (CoreIPC::Connection::open):
107         * Platform/WorkQueue.h:
108         * Platform/gtk/WorkQueueGtk.cpp:
109         (WorkQueue::SocketEventSource::SocketEventSource):
110         (WorkQueue::SocketEventSource::eventCallback):
111         (WorkQueue::registerSocketEventHandler):
112         (WorkQueue::unregisterSocketEventHandler):
113         (WorkQueue::dispatch):
114         (WorkQueue::dispatchAfterDelay):
115
116 2013-12-04  Gergo Balogh  <geryxyz@inf.u-szeged.hu>
117
118         Report error when #else is used in message receiver generator's input.
119         https://bugs.webkit.org/show_bug.cgi?id=124147
120
121         Reviewed by Csaba Osztrogonác.
122
123         * Scripts/webkit2/messages_unittest.py:
124         (UnsupportedPrecompilerDirectiveTest):
125         (UnsupportedPrecompilerDirectiveTest.test_error_at_else):
126         (UnsupportedPrecompilerDirectiveTest.test_error_at_elif):
127         * Scripts/webkit2/parser.py:
128         (parse):
129
130 2013-12-04  Sam Weinig  <sam@webkit.org>
131
132         [Cocoa] Make WKConnection work with WKObject wrapping
133         https://bugs.webkit.org/show_bug.cgi?id=125266
134
135         Reviewed by Dan Bernstein.
136
137         * UIProcess/API/Cocoa/WKConnection.mm:
138         (-[WKConnection dealloc]):
139         (didReceiveMessage):
140         (didClose):
141         (setUpClient):
142         (-[WKConnection delegate]):
143         (-[WKConnection setDelegate:]):
144         (-[WKConnection sendMessageWithName:body:]):
145         (-[WKConnection remoteObjectRegistry]):
146         (-[WKConnection API::]):
147         * UIProcess/API/Cocoa/WKConnectionInternal.h:
148         (WebKit::wrapper):
149         * UIProcess/API/Cocoa/WKProcessGroup.mm:
150         (didCreateConnection):
151         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm:
152         (-[WKWebProcessPlugInController _initWithPrincipalClassInstance:bundleRef:]):
153         (-[WKWebProcessPlugInController connection]):
154         (-[WKWebProcessPlugInController _bundleRef]):
155
156 2013-12-04  Anders Carlsson  <andersca@apple.com>
157
158         Add a WeakObjCPtr class
159         https://bugs.webkit.org/show_bug.cgi?id=125267
160
161         Reviewed by Geoffrey Garen.
162
163         WeakObjCPtr is a zeroing weak reference class template that will be used for delegates.
164
165         * Shared/mac/WeakObjCPtr.h: Added.
166         (WebKit::WeakObjCPtr::WeakObjCPtr):
167         (WebKit::WeakObjCPtr::~WeakObjCPtr):
168         (WebKit::WeakObjCPtr::operator=):
169         (WebKit::WeakObjCPtr::get):
170         * WebKit2.xcodeproj/project.pbxproj:
171
172 2013-12-04  Ryuan Choi  <ryuan.choi@samsung.com>
173
174         Unreviewed EFL build fix after r160135
175
176         * CMakeLists.txt: Added rendering/line to include lists.
177
178 2013-12-04  Anders Carlsson  <andersca@apple.com>
179
180         Make the estimatedProgress property observable using KVO
181         https://bugs.webkit.org/show_bug.cgi?id=125259
182
183         Reviewed by Dan Bernstein.
184
185         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
186         * UIProcess/PageLoadState.cpp:
187         (WebKit::PageLoadState::PageLoadState):
188         (WebKit::PageLoadState::reset):
189         (WebKit::PageLoadState::activeURL):
190         (WebKit::PageLoadState::estimatedProgress):
191         (WebKit::PageLoadState::setPendingAPIRequestURL):
192         (WebKit::PageLoadState::clearPendingAPIRequestURL):
193         (WebKit::PageLoadState::didStartProgress):
194         (WebKit::PageLoadState::didChangeProgress):
195         (WebKit::PageLoadState::didFinishProgress):
196         * UIProcess/PageLoadState.h:
197         Move m_estimatedProgress to the page load state and call the observers when it changes.
198
199         * UIProcess/WebPageProxy.cpp:
200         (WebKit::WebPageProxy::WebPageProxy):
201         (WebKit::WebPageProxy::estimatedProgress):
202         (WebKit::WebPageProxy::didStartProgress):
203         (WebKit::WebPageProxy::didChangeProgress):
204         (WebKit::WebPageProxy::didFinishProgress):
205         (WebKit::WebPageProxy::resetState):
206         Call through to m_pageLoadState.
207
208         * UIProcess/WebPageProxy.h:
209
210 2013-12-04  Nick Diego Yamane  <nick.yamane@openbossa.org>
211
212         [WK2] Including SecItemShim.h should be guarded by ENABLE(SEC_ITEM_SHIM)
213         https://bugs.webkit.org/show_bug.cgi?id=125255
214
215         Reviewed by Anders Carlsson.
216
217         * UIProcess/WebProcessProxy.cpp:
218         * WebProcess/WebProcess.cpp:
219
220 2013-12-04  Oliver Hunt  <oliver@apple.com>
221
222         Refactor static getter function prototype to include thisValue in addition to the base object
223         https://bugs.webkit.org/show_bug.cgi?id=124461
224
225         Reviewed by Geoffrey Garen.
226
227         Update the WK2 JSC usage to the new static getter API
228
229         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
230         (WebKit::callMethod):
231         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
232         (WebKit::callNPJSObject):
233         (WebKit::constructWithConstructor):
234         (WebKit::JSNPObject::propertyGetter):
235         (WebKit::JSNPObject::methodGetter):
236         * WebProcess/Plugins/Netscape/JSNPObject.h:
237         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
238         (WebKit::NPRuntimeObjectMap::getOrCreateNPObject):
239         (WebKit::NPRuntimeObjectMap::finalize):
240         * WebProcess/WebPage/WebFrame.cpp:
241         (WebKit::WebFrame::frameForContext):
242         (WebKit::WebFrame::counterValue):
243
244 2013-12-04  Anders Carlsson  <andersca@apple.com>
245
246         Add a loading property to WKBrowsingContextController
247         https://bugs.webkit.org/show_bug.cgi?id=125256
248
249         Reviewed by Dan Bernstein.
250
251         * UIProcess/API/Cocoa/WKBrowsingContextController.h:
252         Add loading property.
253
254         * UIProcess/API/Cocoa/WKBrowsingContextConteroller.mm:
255         Implement willChangeIsLoading and didChangeIsLoading and call the relevant KVO methods.
256
257         (-[WKBrowsingContextController isLoading]):
258         Call through to the PageLoadState.
259
260         * UIProcess/PageLoadState.cpp:
261         (WebKit::PageLoadState::reset):
262         Use setState.
263
264         (WebKit::PageLoadState::isLoading):
265         Call isLoadingState.
266
267         (WebKit::PageLoadState::didStartProvisionalLoad):
268         Use setState.
269
270         (WebKit::PageLoadState::didFailProvisionalLoad):
271         Use setState.
272
273         (WebKit::PageLoadState::didCommitLoad):
274         Use setState.
275
276         (WebKit::PageLoadState::didFinishLoad):
277         Use setState.
278
279         (WebKit::PageLoadState::didFailLoad):
280         Use setState.
281
282         (WebKit::PageLoadState::isLoadingState):
283         Helper function for determining whether a state is a loading state or not.
284
285         (WebKit::PageLoadState::setState):
286         If setting the state will cause "isLoading" to change, call out to the observers.
287
288         * UIProcess/PageLoadState.h:
289
290 2013-12-04  Nick Diego Yamane  <nick.yamane@openbossa.org>
291
292         [EFL][GTK][WK2] Remove unnecessary reinterpret_casts when setting API clients
293         https://bugs.webkit.org/show_bug.cgi?id=125231
294
295         Reviewed by Anders Carlsson.
296
297         After r159988, WKClients have to be instantiated with a specific
298         version of that client and its Base field has to used when setting it.
299         Eg:
300
301             WKFullScreenClientV0 wkClient = {
302                 {
303                     0, // version
304                     this, // clientInfo
305                 },
306                     willEnterFullScreen,
307                     willExitFullScreen
308             };
309             WKViewSetFullScreenClientGtk(this, &wkClient.base);
310
311         So we don't need the reinterpret_casts introduced in r160075.
312
313         * UIProcess/API/gtk/WebKitFullscreenClient.cpp:
314         (attachFullScreenClientToView): reinterpret_cast<WKFooClientBase*>(&client) -> &client.base
315         * UIProcess/API/gtk/WebKitRequestManagerClient.cpp:
316         (attachRequestManagerClientToContext): Ditto.
317         * UIProcess/API/gtk/WebKitTextChecker.cpp:
318         (WebKitTextChecker::WebKitTextChecker): Ditto.
319         * UIProcess/API/gtk/WebKitWebInspector.cpp:
320         (webkitWebInspectorCreate): Ditto.
321         * UIProcess/efl/BatteryProvider.cpp:
322         (BatteryProvider::BatteryProvider): Ditto.
323         * UIProcess/efl/NetworkInfoProvider.cpp:
324         (NetworkInfoProvider::NetworkInfoProvider): Ditto.
325         * UIProcess/efl/PageUIClientEfl.cpp:
326         (WebKit::PageUIClientEfl::PageUIClientEfl): Ditto.
327         * UIProcess/efl/RequestManagerClientEfl.cpp:
328         (WebKit::RequestManagerClientEfl::RequestManagerClientEfl): Ditto.
329         * UIProcess/efl/TextCheckerClientEfl.cpp:
330         (TextCheckerClientEfl::TextCheckerClientEfl): Ditto.
331         * UIProcess/efl/VibrationClientEfl.cpp:
332         (VibrationClientEfl::VibrationClientEfl): Ditto.
333         * UIProcess/efl/ViewClientEfl.cpp:
334         (WebKit::ViewClientEfl::ViewClientEfl): Ditto.
335
336 2013-12-04  Nick Diego Yamane  <nick.yamane@openbossa.org>
337
338         [GTK][WK2] Fix build after r160104
339         https://bugs.webkit.org/show_bug.cgi?id=125240
340
341         Reviewed by Anders Carlsson.
342
343         Using specific version of API client when instantiating them.
344         Applied that same change to the following files:
345
346         * UIProcess/API/gtk/WebKitContextMenuClient.cpp:
347         * UIProcess/API/gtk/WebKitCookieManager.cpp:
348         * UIProcess/API/gtk/WebKitDownloadClient.cpp:
349         * UIProcess/API/gtk/WebKitFaviconDatabase.cpp:
350         * UIProcess/API/gtk/WebKitFindController.cpp:
351         * UIProcess/API/gtk/WebKitFormClient.cpp:
352         * UIProcess/API/gtk/WebKitGeolocationProvider.cpp:
353         * UIProcess/API/gtk/WebKitInjectedBundleClient.cpp:
354         * UIProcess/API/gtk/WebKitLoaderClient.cpp:
355         * UIProcess/API/gtk/WebKitPolicyClient.cpp:
356         * UIProcess/API/gtk/WebKitUIClient.cpp:
357         * WebProcess/InjectedBundle/API/gtk/WebKitWebExtension.cpp:
358         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
359
360 2013-12-04  Dan Bernstein  <mitz@apple.com>
361
362         Fixed the 32-bit Mac build.
363
364         * Shared/mac/WebCoreArgumentCodersMac.mm:
365         (CoreIPC::::encodePlatformData):
366
367 2013-12-04  Dan Bernstein  <mitz@apple.com>
368
369         [Mac] When NSError user info is missing NSErrorPeerCertificateChainKey, ArgumentCoder should extract it from NSURLErrorFailingURLPeerTrustErrorKey
370         https://bugs.webkit.org/show_bug.cgi?id=125251
371
372         Reviewed by Anders Carlsson.
373
374         * Shared/mac/WebCoreArgumentCodersMac.mm:
375         (CoreIPC::::encodePlatformData): If the user info doesn’t include
376         NSURLErrorFailingURLPeerTrustErrorKey, copy the peer certificate chain from the peer trust
377         under NSURLErrorFailingURLPeerTrustErrorKey. On the decoding side, it will appear under the
378         NSURLErrorFailingURLPeerTrustErrorKey, because a trust object can’t be fully serialized.
379
380 2013-12-04  Dan Bernstein  <mitz@apple.com>
381
382         Replace USE(SECURITY_FRAMEWORK) with finer-grained defines
383         https://bugs.webkit.org/show_bug.cgi?id=125242
384
385         Reviewed by Sam Weinig.
386
387         * Configurations/WebKit2.xcconfig: Removed “-framework Security” from the linker flags, now
388         that it’s included in the target’s Link Binary with Libraries build phase.
389         * NetworkProcess/NetworkProcess.cpp:
390         (WebKit::NetworkProcess::initializeConnection): Changed to use ENABLE(SEC_ITEM_SHIM).
391         * NetworkProcess/mac/NetworkProcessMac.mm:
392         (WebKit::NetworkProcess::platformInitializeNetworkProcess): Ditto.
393         * Shared/Authentication/AuthenticationManager.cpp: Changed to use HAVE(SEC_IDENTITY).
394         * Shared/Authentication/mac/AuthenticationManager.mac.mm: Ditto.
395         * Shared/cf/ArgumentCodersCF.cpp:
396         (CoreIPC::typeFromCFTypeRef): Removed use of USE(SECURITY_FRAMEWORK) since all CF platforms
397         use it. Added HAVE(SEC_KEYCHAIN) where needed.
398         (CoreIPC::encode): Ditto.
399         (CoreIPC::decode): Ditto.
400         * Shared/cf/ArgumentCodersCF.h: Ditto.
401         * Shared/mac/SecItemShim.cpp: Chanegd to use ENABLE(SEC_ITEM_SHIM).
402         * Shared/mac/SecItemShim.h: Ditto.
403         * Shared/mac/SecItemShim.messages.in: Ditto.
404         * UIProcess/Network/NetworkProcessProxy.cpp:
405         (WebKit::NetworkProcessProxy::connectionWillOpen): Ditto.
406         * UIProcess/WebProcessProxy.cpp:
407         (WebKit::WebProcessProxy::connectionWillOpen): Ditto.
408         * UIProcess/mac/SecItemShimProxy.cpp: Ditto.
409         * UIProcess/mac/SecItemShimProxy.h: Ditto,
410         * UIProcess/mac/SecItemShimProxy.messages.in: Ditto.
411         * WebKit2.xcodeproj/project.pbxproj: Link Security.framework unconditionally.
412         * WebProcess/WebProcess.cpp:
413         (WebKit::WebProcess::initializeConnection): Changed to use ENABLE(SEC_ITEM_SHIM).
414         * WebProcess/mac/WebProcessMac.mm:
415         (WebKit::WebProcess::platformInitializeProcess): Ditto.
416         * config.h: Defined ENABLE_SEC_ITEM_SHIM.
417
418 2013-12-04  Csaba Osztrogonác  <ossy@webkit.org>
419
420         [EFL][WK2] Buildfix after r160104
421         https://bugs.webkit.org/show_bug.cgi?id=125233
422
423         Reviewed by Anders Carlsson.
424
425         * UIProcess/API/efl/ewk_cookie_manager.cpp:
426         (EwkCookieManager::EwkCookieManager):
427         * UIProcess/API/efl/ewk_favicon_database.cpp:
428         (EwkFaviconDatabase::EwkFaviconDatabase):
429         * UIProcess/efl/ContextHistoryClientEfl.cpp:
430         (WebKit::ContextHistoryClientEfl::ContextHistoryClientEfl):
431         * UIProcess/efl/ContextMenuClientEfl.cpp:
432         (ContextMenuClientEfl::ContextMenuClientEfl):
433         * UIProcess/efl/DownloadManagerEfl.cpp:
434         (WebKit::DownloadManagerEfl::DownloadManagerEfl):
435         * UIProcess/efl/FindClientEfl.cpp:
436         (WebKit::FindClientEfl::FindClientEfl):
437         * UIProcess/efl/FormClientEfl.cpp:
438         (WebKit::FormClientEfl::FormClientEfl):
439         * UIProcess/efl/PageLoadClientEfl.cpp:
440         (WebKit::PageLoadClientEfl::PageLoadClientEfl):
441         * UIProcess/efl/PagePolicyClientEfl.cpp:
442         (WebKit::PagePolicyClientEfl::PagePolicyClientEfl):
443         * UIProcess/efl/PageUIClientEfl.cpp:
444         (WebKit::PageUIClientEfl::PageUIClientEfl):
445
446 2013-12-03  Anders Carlsson  <andersca@apple.com>
447
448         Deprecate all unversioned client structs in favor of having explicit versioned structs
449         https://bugs.webkit.org/show_bug.cgi?id=125203
450
451         Reviewed by Dan Bernstein.
452
453         Deprecate all the "current version" enums and unversioned client structs.
454
455         * Shared/API/c/WKConnectionRef.cpp:
456         (WKConnectionSetConnectionClient):
457         * Shared/API/c/WKConnectionRef.h:
458         * UIProcess/API/C/WKContext.cpp:
459         (WKContextSetClient):
460         (WKContextSetInjectedBundleClient):
461         (WKContextSetHistoryClient):
462         (WKContextSetDownloadClient):
463         (WKContextSetConnectionClient):
464         * UIProcess/API/C/WKContext.h:
465         * UIProcess/API/C/WKContextConnectionClient.h:
466         * UIProcess/API/C/WKContextDownloadClient.h:
467         * UIProcess/API/C/WKContextHistoryClient.h:
468         * UIProcess/API/C/WKContextInjectedBundleClient.h:
469         * UIProcess/API/C/WKCookieManager.cpp:
470         (WKCookieManagerSetClient):
471         * UIProcess/API/C/WKCookieManager.h:
472         * UIProcess/API/C/WKDatabaseManager.cpp:
473         (WKDatabaseManagerSetClient):
474         * UIProcess/API/C/WKDatabaseManager.h:
475         * UIProcess/API/C/WKGeolocationManager.cpp:
476         (WKGeolocationManagerSetProvider):
477         * UIProcess/API/C/WKGeolocationManager.h:
478         * UIProcess/API/C/WKIconDatabase.cpp:
479         (WKIconDatabaseSetIconDatabaseClient):
480         * UIProcess/API/C/WKIconDatabase.h:
481         * UIProcess/API/C/WKOriginDataManager.cpp:
482         (WKOriginDataManagerSetChangeClient):
483         * UIProcess/API/C/WKOriginDataManager.h:
484         * UIProcess/API/C/WKPage.cpp:
485         (WKPageSetPageContextMenuClient):
486         (WKPageSetPageFindClient):
487         (WKPageSetPageFindMatchesClient):
488         (WKPageSetPageFormClient):
489         (WKPageSetPageLoaderClient):
490         (WKPageSetPagePolicyClient):
491         (WKPageSetPageUIClient):
492         * UIProcess/API/C/WKPage.h:
493         * UIProcess/API/C/WKPageContextMenuClient.h:
494         * UIProcess/API/C/WKPageFindClient.h:
495         * UIProcess/API/C/WKPageFindMatchesClient.h:
496         * UIProcess/API/C/WKPageFormClient.h:
497         * UIProcess/API/C/WKPageLoaderClient.h:
498         * UIProcess/API/C/WKPagePolicyClient.h:
499         * UIProcess/API/C/WKPageUIClient.h:
500         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
501         (setUpPagePolicyClient):
502         * UIProcess/API/Cocoa/WKConnection.mm:
503         (setUpClient):
504         * UIProcess/API/Cocoa/WKProcessGroup.mm:
505         (setUpConnectionClient):
506         (setUpInectedBundleClient):
507         (setUpHistoryClient):
508         * UIProcess/WebInspectorProxy.cpp:
509         (WebKit::WebInspectorProxy::createInspectorPage):
510         * UIProcess/WebUIClient.cpp:
511         (WebKit::WebUIClient::createNewPage):
512         (WebKit::WebUIClient::mouseDidMoveOverElement):
513         * UIProcess/mac/WebInspectorProxyMac.mm:
514         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
515         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
516         (WKBundleSetClient):
517         * WebProcess/InjectedBundle/API/c/WKBundle.h:
518         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
519         (WKBundlePageSetContextMenuClient):
520         (WKBundlePageSetEditorClient):
521         (WKBundlePageSetFormClient):
522         (WKBundlePageSetPageLoaderClient):
523         (WKBundlePageSetResourceLoadClient):
524         (WKBundlePageSetPolicyClient):
525         (WKBundlePageSetUIClient):
526         (WKBundlePageSetFullScreenClient):
527         (WKBundlePageSetDiagnosticLoggingClient):
528         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
529         * WebProcess/InjectedBundle/API/c/WKBundlePageBanner.h:
530         * WebProcess/InjectedBundle/API/c/WKBundlePageContextMenuClient.h:
531         * WebProcess/InjectedBundle/API/c/WKBundlePageDiagnosticLoggingClient.h:
532         * WebProcess/InjectedBundle/API/c/WKBundlePageEditorClient.h:
533         * WebProcess/InjectedBundle/API/c/WKBundlePageFormClient.h:
534         * WebProcess/InjectedBundle/API/c/WKBundlePageFullScreenClient.h:
535         * WebProcess/InjectedBundle/API/c/WKBundlePageLoaderClient.h:
536         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
537         (WKBundlePageOverlayCreate):
538         (WKBundlePageOverlaySetAccessibilityClient):
539         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:
540         * WebProcess/InjectedBundle/API/c/WKBundlePagePolicyClient.h:
541         * WebProcess/InjectedBundle/API/c/WKBundlePageResourceLoadClient.h:
542         * WebProcess/InjectedBundle/API/c/WKBundlePageUIClient.h:
543         * WebProcess/InjectedBundle/API/c/mac/WKBundlePageBannerMac.h:
544         * WebProcess/InjectedBundle/API/c/mac/WKBundlePageBannerMac.mm:
545         (WKBundlePageBannerCreateBannerWithCALayer):
546         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm:
547         (setUpBundleClient):
548
549 2013-12-04  Tamas Gergely  <tgergely.u-szeged@partner.samsung.com>
550
551         Fix build warnings in DownloadAuthenticationClient.cpp
552         https://bugs.webkit.org/show_bug.cgi?id=124920
553
554         Reviewed by Alexey Proskuryakov.
555
556         Fix unused parameter warnings in DownloadAuthenticationClient.cpp
557
558         * Shared/Downloads/DownloadAuthenticationClient.cpp:
559         (WebKit::DownloadAuthenticationClient::receivedCredential):
560         (WebKit::DownloadAuthenticationClient::receivedRequestToContinueWithoutCredential):
561         (WebKit::DownloadAuthenticationClient::receivedCancellation):
562
563 2013-12-03  Joseph Pecoraro  <pecoraro@apple.com>
564
565         Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
566         https://bugs.webkit.org/show_bug.cgi?id=124613
567
568         Reviewed by Timothy Hatcher.
569
570         * WebProcess/WebCoreSupport/WebInspectorClient.h:
571         * WebProcess/WebPage/WebInspector.cpp:
572         Updated includes.
573
574         * WebProcess/WebPage/WebPage.cpp:
575         (WebKit::WebPage::WebPage):
576         * WebProcess/com.apple.WebProcess.sb.in:
577         Allow the WebProcess to access the "com.apple.webinspector" named
578         XPC service to expose its WebCore::Page's to remote debuggers.
579
580 2013-12-04  David Farler  <dfarler@apple.com>
581
582         Use All-iOS target when building WK2 on iOS
583         <rdar://problem/15574494>
584
585         Reviewed by David Kilzer.
586
587         * Makefile:
588         Add -target All-iOS to OTHER_OPTIONS if iphoneos or iphonesimulator
589         is in the SDKROOT make option.
590
591 2013-12-04  Nick Diego Yamane  <nick.yamane@openbossa.org>
592
593         [EFL][WK2] Fix build after API::Client changes
594         https://bugs.webkit.org/show_bug.cgi?id=125206
595
596         Reviewed by Csaba Osztrogonác.
597
598         * CMakeLists.txt:
599         * GNUmakefile.list.am:
600         * Shared/API/c/WKDeclarationSpecifiers.h:
601         * UIProcess/API/C/CoordinatedGraphics/WKView.cpp:
602         (WKViewSetViewClient):
603         * UIProcess/API/C/CoordinatedGraphics/WKView.h:
604         * UIProcess/API/C/WKBatteryManager.cpp:
605         (WKBatteryManagerSetProvider):
606         * UIProcess/API/C/WKBatteryManager.h:
607         * UIProcess/API/C/WKNetworkInfoManager.cpp:
608         (WKNetworkInfoManagerSetProvider):
609         * UIProcess/API/C/WKNetworkInfoManager.h:
610         * UIProcess/API/C/WKTextChecker.cpp:
611         (WKTextCheckerSetClient):
612         * UIProcess/API/C/WKTextChecker.h:
613         * UIProcess/API/C/WKVibration.cpp:
614         (WKVibrationSetProvider):
615         * UIProcess/API/C/WKVibration.h:
616         * UIProcess/API/C/efl/WKPageEfl.cpp:
617         (WKPageSetUIPopupMenuClient):
618         * UIProcess/API/C/efl/WKPageEfl.h:
619         * UIProcess/API/C/gtk/WKFullScreenClientGtk.cpp:
620         (WKViewSetFullScreenClientGtk):
621         * UIProcess/API/C/gtk/WKFullScreenClientGtk.h:
622         * UIProcess/API/C/gtk/WKInspectorClientGtk.cpp:
623         (WKInspectorSetInspectorClientGtk):
624         * UIProcess/API/C/gtk/WKInspectorClientGtk.h:
625         * UIProcess/API/C/soup/WKSoupRequestManager.cpp:
626         (WKSoupRequestManagerSetClient):
627         * UIProcess/API/C/soup/WKSoupRequestManager.h:
628         * UIProcess/API/gtk/WebKitFullscreenClient.cpp:
629         (attachFullScreenClientToView):
630         * UIProcess/API/gtk/WebKitRequestManagerClient.cpp:
631         (attachRequestManagerClientToContext):
632         * UIProcess/API/gtk/WebKitTextChecker.cpp:
633         (WebKitTextChecker::WebKitTextChecker):
634         * UIProcess/API/gtk/WebKitWebInspector.cpp:
635         (webkitWebInspectorCreate):
636         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
637         (webkitWebViewBaseInitializeFullScreenClient):
638         * UIProcess/API/gtk/WebKitWebViewBasePrivate.h:
639         * UIProcess/CoordinatedGraphics/WebView.cpp:
640         (WebKit::WebView::initializeClient):
641         * UIProcess/CoordinatedGraphics/WebView.h:
642         * UIProcess/CoordinatedGraphics/WebViewClient.cpp:
643         (WebKit::WebViewClient::viewNeedsDisplay):
644         (WebKit::WebViewClient::didChangeContentsSize):
645         (WebKit::WebViewClient::webProcessCrashed):
646         (WebKit::WebViewClient::webProcessDidRelaunch):
647         (WebKit::WebViewClient::didChangeContentsPosition):
648         (WebKit::WebViewClient::didRenderFrame):
649         (WebKit::WebViewClient::didCompletePageTransition):
650         (WebKit::WebViewClient::didChangeViewportAttributes):
651         (WebKit::WebViewClient::didChangeTooltip):
652         (WebKit::WebViewClient::didFindZoomableArea):
653         (WebKit::WebViewClient::doneWithTouchEvent):
654         * UIProcess/CoordinatedGraphics/WebViewClient.h:
655         * UIProcess/WebBatteryManagerProxy.cpp:
656         (WebKit::WebBatteryManagerProxy::initializeProvider):
657         * UIProcess/WebBatteryManagerProxy.h:
658         * UIProcess/WebBatteryProvider.cpp:
659         (WebKit::WebBatteryProvider::startUpdating):
660         (WebKit::WebBatteryProvider::stopUpdating):
661         * UIProcess/WebBatteryProvider.h:
662         * UIProcess/WebInspectorProxy.h:
663         * UIProcess/WebNetworkInfoManagerProxy.cpp:
664         (WebKit::WebNetworkInfoManagerProxy::initializeProvider):
665         * UIProcess/WebNetworkInfoManagerProxy.h:
666         * UIProcess/WebNetworkInfoProvider.cpp:
667         (WebKit::WebNetworkInfoProvider::startUpdating):
668         (WebKit::WebNetworkInfoProvider::stopUpdating):
669         (WebKit::WebNetworkInfoProvider::bandwidth):
670         (WebKit::WebNetworkInfoProvider::isMetered):
671         * UIProcess/WebNetworkInfoProvider.h:
672         * UIProcess/WebPageProxy.h:
673         * UIProcess/WebTextChecker.cpp:
674         (WebKit::WebTextChecker::setClient):
675         * UIProcess/WebTextChecker.h:
676         * UIProcess/WebTextCheckerClient.cpp:
677         (WebKit::WebTextCheckerClient::continuousSpellCheckingAllowed):
678         (WebKit::WebTextCheckerClient::continuousSpellCheckingEnabled):
679         (WebKit::WebTextCheckerClient::setContinuousSpellCheckingEnabled):
680         (WebKit::WebTextCheckerClient::grammarCheckingEnabled):
681         (WebKit::WebTextCheckerClient::setGrammarCheckingEnabled):
682         (WebKit::WebTextCheckerClient::uniqueSpellDocumentTag):
683         (WebKit::WebTextCheckerClient::closeSpellDocumentWithTag):
684         (WebKit::WebTextCheckerClient::checkSpellingOfString):
685         (WebKit::WebTextCheckerClient::checkGrammarOfString):
686         (WebKit::WebTextCheckerClient::spellingUIIsShowing):
687         (WebKit::WebTextCheckerClient::toggleSpellingUIIsShowing):
688         (WebKit::WebTextCheckerClient::updateSpellingUIWithMisspelledWord):
689         (WebKit::WebTextCheckerClient::updateSpellingUIWithGrammarString):
690         (WebKit::WebTextCheckerClient::guessesForWord):
691         (WebKit::WebTextCheckerClient::learnWord):
692         (WebKit::WebTextCheckerClient::ignoreWord):
693         * UIProcess/WebTextCheckerClient.h:
694         * UIProcess/WebVibrationProvider.cpp:
695         (WebKit::WebVibrationProvider::vibrate):
696         (WebKit::WebVibrationProvider::cancelVibration):
697         * UIProcess/WebVibrationProvider.h:
698         * UIProcess/WebVibrationProxy.cpp:
699         (WebKit::WebVibrationProxy::initializeProvider):
700         * UIProcess/WebVibrationProxy.h:
701         * UIProcess/efl/BatteryProvider.cpp:
702         (BatteryProvider::BatteryProvider):
703         * UIProcess/efl/NetworkInfoProvider.cpp:
704         (NetworkInfoProvider::NetworkInfoProvider):
705         * UIProcess/efl/PageUIClientEfl.cpp:
706         (WebKit::PageUIClientEfl::PageUIClientEfl):
707         * UIProcess/efl/RequestManagerClientEfl.cpp:
708         (WebKit::RequestManagerClientEfl::RequestManagerClientEfl):
709         * UIProcess/efl/TextCheckerClientEfl.cpp:
710         (TextCheckerClientEfl::TextCheckerClientEfl):
711         * UIProcess/efl/VibrationClientEfl.cpp:
712         (VibrationClientEfl::VibrationClientEfl):
713         * UIProcess/efl/ViewClientEfl.cpp:
714         (WebKit::ViewClientEfl::ViewClientEfl):
715         * UIProcess/efl/WebPageProxyEfl.cpp:
716         (WebKit::WebPageProxy::initializeUIPopupMenuClient):
717         * UIProcess/efl/WebUIPopupMenuClient.cpp:
718         (WebUIPopupMenuClient::showPopupMenu):
719         (WebUIPopupMenuClient::hidePopupMenu):
720         * UIProcess/efl/WebUIPopupMenuClient.h:
721         * UIProcess/gtk/WebFullScreenClientGtk.cpp:
722         (WebKit::WebFullScreenClientGtk::willEnterFullScreen):
723         (WebKit::WebFullScreenClientGtk::willExitFullScreen):
724         * UIProcess/gtk/WebFullScreenClientGtk.h:
725         * UIProcess/gtk/WebInspectorClientGtk.cpp:
726         (WebKit::WebInspectorClientGtk::openWindow):
727         (WebKit::WebInspectorClientGtk::didClose):
728         (WebKit::WebInspectorClientGtk::bringToFront):
729         (WebKit::WebInspectorClientGtk::inspectedURLChanged):
730         (WebKit::WebInspectorClientGtk::attach):
731         (WebKit::WebInspectorClientGtk::detach):
732         (WebKit::WebInspectorClientGtk::didChangeAttachedHeight):
733         * UIProcess/gtk/WebInspectorClientGtk.h:
734         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
735         (WebKit::WebInspectorProxy::initializeInspectorClientGtk):
736         * UIProcess/soup/WebSoupRequestManagerClient.cpp:
737         (WebKit::WebSoupRequestManagerClient::didReceiveURIRequest):
738         (WebKit::WebSoupRequestManagerClient::didFailToLoadURIRequest):
739         * UIProcess/soup/WebSoupRequestManagerClient.h:
740         * UIProcess/soup/WebSoupRequestManagerProxy.cpp:
741         (WebKit::WebSoupRequestManagerProxy::initializeClient):
742         * UIProcess/soup/WebSoupRequestManagerProxy.h:
743
744 2013-12-03  Simon Fraser  <simon.fraser@apple.com>
745
746         WKContentView should just use InitializeWebKit2()
747         https://bugs.webkit.org/show_bug.cgi?id=125209
748
749         Reviewed by Benjamin Poulain.
750         
751         Rather than calling an motley selection of init fuctions,
752         WKContentView should use the one true init function, InitializeWebKit2().
753
754         * Shared/WebKit2Initialize.cpp: On iOS, we need to call InitWebCoreThreadSystemInterface().
755         (WebKit::InitializeWebKit2):
756         * UIProcess/API/ios/WKContentView.mm: Remove various unused #imports.
757         (-[WKContentView _commonInitializationWithContextRef:pageGroupRef:relatedToPage:]):
758
759 2013-12-03  Anders Carlsson  <andersca@apple.com>
760
761         PageOverlayClientImpl should be a proper API::Client
762         https://bugs.webkit.org/show_bug.cgi?id=125199
763
764         Reviewed by Tim Horton.
765
766         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
767         (PageOverlayClientImpl::PageOverlayClientImpl):
768         (PageOverlayClientImpl::setAccessibilityClient):
769         (PageOverlayClientImpl::willMoveToWebPage):
770         (PageOverlayClientImpl::didMoveToWebPage):
771         (PageOverlayClientImpl::drawRect):
772         (PageOverlayClientImpl::mouseEvent):
773         (PageOverlayClientImpl::copyAccessibilityAttributeValue):
774         (PageOverlayClientImpl::copyAccessibilityAttributeNames):
775         (WKBundlePageOverlayCreate):
776         (WKBundlePageOverlaySetAccessibilityClient):
777
778 2013-12-03  Anders Carlsson  <andersca@apple.com>
779
780         Initialize the PageBannerClientImpl API::Client
781         https://bugs.webkit.org/show_bug.cgi?id=125198
782
783         Reviewed by Tim Horton.
784
785         * WebProcess/InjectedBundle/API/c/mac/WKBundlePageBannerMac.mm:
786         (PageBannerClientImpl::PageBannerClientImpl):
787
788 2013-12-03  Tim Horton  <timothy_horton@apple.com>
789
790         Remote Layer Tree: Force repaint
791         https://bugs.webkit.org/show_bug.cgi?id=125189
792         <rdar://problem/15541789>
793
794         Reviewed by Anders Carlsson.
795
796         * WebProcess/WebPage/mac/RemoteLayerTreeContext.h:
797         * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
798         (WebKit::RemoteLayerTreeContext::forceRepaint):
799         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
800         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
801         (WebKit::RemoteLayerTreeDrawingArea::forceRepaint):
802         Implement WebProcess-synchronous force repaint.
803         We don't need the async variant because it is only needed
804         to synchronize with the WebProcess-side threaded scrolling
805         tree, which is not a component of the remote layer tree model.
806         The UI process will not handle the callback until after
807         RemoteLayerTreeHost::commit is complete, ensuring that the commit
808         is actually done.
809
810 2013-12-03  Simon Fraser  <simon.fraser@apple.com>
811
812         Remove some iOS-related documentScale code
813         https://bugs.webkit.org/show_bug.cgi?id=125194
814
815         Reviewed by Enrica Casucci.
816         
817         Upstream bits of removal of Frame::documentScale on iOS.
818
819         * WebProcess/WebPage/WebPage.cpp:
820         (WebKit::WebPage::updatePreferences): Whitespace.
821         * WebProcess/WebPage/ios/WebPageIOS.mm:
822         (WebKit::WebPage::didFinishZooming): Don't call setDocumentScale().
823         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h: Remove minimumDocumentScale().
824         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm: Ditto.
825         (WebKit::RemoteLayerTreeDrawingArea::RemoteLayerTreeDrawingArea): We delegate page scaling on iOS.
826         (WebKit::RemoteLayerTreeDrawingArea::setDeviceScaleFactor):
827
828 2013-12-03  Anders Carlsson  <andersca@apple.com>
829
830         PageBannerClientImpl should be an API::Client
831         https://bugs.webkit.org/show_bug.cgi?id=125190
832
833         Reviewed by Tim Horton.
834
835         * WebProcess/InjectedBundle/API/c/mac/WKBundlePageBannerMac.mm:
836         (PageBannerClientImpl::PageBannerClientImpl):
837         (PageBannerClientImpl::~PageBannerClientImpl):
838         (WKBundlePageBannerCreateBannerWithCALayer):
839
840 2013-12-03  Dan Bernstein  <mitz@apple.com>
841
842         [Cocoa] Give two load delegate methods more conventional names
843         https://bugs.webkit.org/show_bug.cgi?id=125183
844
845         Reviewed by Anders Carlsson.
846
847         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
848         (didFailProvisionalLoadWithErrorForFrame): Updated for rename.
849         (didFailLoadWithErrorForFrame): Ditto.
850         * UIProcess/API/Cocoa/WKBrowsingContextLoadDelegate.h: Renamed
851         -browsingContextControllerDidFailProvisionalLoad:withError: to
852         -browsingContextController:didFailProvisionalLoadWithError: and
853         -browsingContextControllerDidFailLoad:withError: to
854         -browsingContextController:didFailLoadWithError:.
855
856 2013-12-03  Anders Carlsson  <andersca@apple.com>
857
858         Deprecate WKNotificationProvider
859         https://bugs.webkit.org/show_bug.cgi?id=125178
860
861         Reviewed by Sam Weinig.
862
863         * Shared/API/c/WKDeclarationSpecifiers.h:
864         Add WK_DEPRECATED and WK_ENUM_DEPRECATED macros so we can things as deprecated.
865
866         * UIProcess/API/C/WKNotificationManager.cpp:
867         (WKNotificationManagerSetProvider):
868         * UIProcess/API/C/WKNotificationManager.h:
869         WKNotificationManagerSetProvider now takes a WKNotificationProviderBase.
870
871         * UIProcess/API/C/WKNotificationProvider.h:
872         Deprecate WKNotificationProvider and kWKNotificationProviderCurrentVersion.
873
874 2013-12-03  Brady Eidson  <beidson@apple.com>
875
876         Indexed Database work should be done on a non-main queue
877         https://bugs.webkit.org/show_bug.cgi?id=125127
878
879         Reviewed by Darin Adler.
880
881         Add a non-main WorkQueue to the DatabaseProcess:
882         * DatabaseProcess/DatabaseProcess.cpp:
883         (WebKit::DatabaseProcess::DatabaseProcess):
884         (WebKit::DatabaseProcess::queue):
885         * DatabaseProcess/DatabaseProcess.h:
886
887         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
888         (WebKit::UniqueIDBDatabase::UniqueIDBDatabase):
889         (WebKit::UniqueIDBDatabase::enqueueDatabaseQueueRequest): Add an AsyncRequest to the deque then schedule performing
890           the requests on the background WorkQueue.
891         (WebKit::UniqueIDBDatabase::processDatabaseRequestQueue): Processes all enqueued database requests.
892         (WebKit::UniqueIDBDatabase::getOrEstablishIDBDatabaseMetadata): Renamed from getIDBDatabaseMetadata().
893         (WebKit::UniqueIDBDatabase::getOrEstablishIDBDatabaseMetadataInternal): For doing i/o on a background queue/thread.
894         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:
895
896         Add a creator that takes the abort handler as an argument, and rename requestedCompleted()
897         to completeRequest(). This makes more sense in more situations:
898         * Shared/AsyncRequest.cpp:
899         (WebKit::AsyncRequest::AsyncRequest):
900         (WebKit::AsyncRequest::setAbortHandler):
901         * Shared/AsyncRequest.h:
902         (WebKit::AsyncRequest::completeRequest):
903
904         Update for the AsyncRequest rename:
905         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
906         (WebKit::WebIDBServerConnection::didGetOrEstablishIDBDatabaseMetadata):
907
908         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
909         (WebKit::DatabaseProcessIDBConnection::getOrEstablishIDBDatabaseMetadata):
910
911 2013-12-03  Tim Horton  <timothy_horton@apple.com>
912
913         Remove TiledCoreAnimationDrawingArea(Proxy)IOS
914         https://bugs.webkit.org/show_bug.cgi?id=125176
915
916         Reviewed by Simon Fraser.
917
918         Remove unused code.
919
920         * UIProcess/API/ios/WKContentView.mm:
921         * UIProcess/ios/TiledCoreAnimationDrawingAreaProxyIOS.h: Removed.
922         * UIProcess/ios/TiledCoreAnimationDrawingAreaProxyIOS.mm: Removed.
923         * Shared/DrawingAreaInfo.h:
924         * WebProcess/WebPage/DrawingArea.cpp:
925         (WebKit::DrawingArea::create):
926         * WebProcess/WebPage/ios/TiledCoreAnimationDrawingAreaIOS.h: Removed.
927         * WebProcess/WebPage/ios/TiledCoreAnimationDrawingAreaIOS.mm: Removed.
928
929 2013-12-03  Anders Carlsson  <andersca@apple.com>
930
931         Remove old WebKit::APIClient cruft
932         https://bugs.webkit.org/show_bug.cgi?id=125173
933
934         Reviewed by Antti Koivisto.
935
936         * Shared/APIClient.h:
937         * Shared/APIClientTraits.cpp: Removed.
938         * Shared/APIClientTraits.h: Removed.
939         * WebKit2.xcodeproj/project.pbxproj:
940         * WebProcess/Plugins/PDF/PDFPlugin.mm:
941
942 2013-12-03  Enrica Casucci  <enrica@apple.com>
943
944         Build fix for iOS.
945
946         Reviewed by Tim Horton.
947
948         * Shared/WebCoreArgumentCoders.cpp: Added missing header.
949
950 2013-12-03  Tamas Gergely  <tgergely.u-szeged@partner.samsung.com>
951
952         Remove WTF:: prefix from types in messages.in files.
953         https://bugs.webkit.org/show_bug.cgi?id=124578
954
955         Reviewed by Anders Carlsson.
956
957         The WTF:: prefixes are removed from the messages.in files, and the
958         messages.py now handles unprefixed non-template WTF classes (only
959         the WTF::String class is used currently). Tests are also updated.
960
961         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in:
962         * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
963         * NetworkProcess/NetworkProcess.messages.in:
964         * PluginProcess/PluginControllerProxy.messages.in:
965         * PluginProcess/PluginProcess.messages.in:
966         * Scripts/webkit2/messages.py:
967         (forward_declarations_and_headers):
968         (class_template_headers):
969         (argument_coder_headers_for_type):
970         * Scripts/webkit2/messages_unittest.py:
971         (std):
972         * Shared/Network/CustomProtocols/CustomProtocolManager.messages.in:
973         * UIProcess/Downloads/DownloadProxy.messages.in:
974         * UIProcess/Plugins/PluginProcessProxy.messages.in:
975         * UIProcess/Storage/StorageManager.messages.in:
976         * UIProcess/WebContext.messages.in:
977         * UIProcess/WebCookieManagerProxy.messages.in:
978         * UIProcess/WebDatabaseManagerProxy.messages.in:
979         * UIProcess/WebIconDatabase.messages.in:
980         * UIProcess/WebInspectorProxy.messages.in:
981         * UIProcess/WebMediaCacheManagerProxy.messages.in:
982         * UIProcess/WebPageProxy.messages.in:
983         * UIProcess/WebProcessProxy.messages.in:
984         * WebProcess/Cookies/WebCookieManager.messages.in:
985         * WebProcess/Geolocation/WebGeolocationManager.messages.in:
986         * WebProcess/MediaCache/WebMediaCacheManager.messages.in:
987         * WebProcess/Notifications/WebNotificationManager.messages.in:
988         * WebProcess/Plugins/PluginProcessConnection.messages.in:
989         * WebProcess/Plugins/PluginProxy.messages.in:
990         * WebProcess/Storage/StorageAreaMap.messages.in:
991         * WebProcess/WebCoreSupport/WebDatabaseManager.messages.in:
992         * WebProcess/WebPage/WebInspector.messages.in:
993         * WebProcess/WebPage/WebPage.messages.in:
994         * WebProcess/WebProcess.messages.in:
995         * WebProcess/soup/WebSoupRequestManager.messages.in:
996
997 2013-12-03  Anders Carlsson  <andersca@apple.com>
998
999         Tweak build fixes.
1000
1001         * Shared/APIClient.h:
1002
1003 2013-12-03  Laszlo Vidacs  <lac@inf.u-szeged.hu>
1004
1005         Fix EFL build error in WK2 (159965)
1006         https://bugs.webkit.org/show_bug.cgi?id=125153
1007
1008         Reviewed by Darin Adler.
1009
1010         * Shared/APIClient.h:
1011
1012 2013-12-03  Seokju Kwon  <seokju@webkit.org>
1013
1014         Debug build fix : Add '<algorithm>' for 'std::is_sorted' after r159965.
1015         https://bugs.webkit.org/show_bug.cgi?id=125140
1016
1017         Reviewed by Csaba Osztrogonác.
1018
1019         * Shared/APIClient.h:
1020
1021 2013-12-03  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
1022
1023         Fix EFL build with INPUT_TYPE_COLOR disabled.
1024         https://bugs.webkit.org/show_bug.cgi?id=125065
1025
1026         Reviewed by Zoltan Herczeg.
1027
1028         * UIProcess/API/efl/ewk_color_picker.cpp:
1029
1030 2013-12-03  Dariusz Frankiewicz  <d.frankiewic@samsung.com>
1031
1032         Add spatial navigation API in EFL port
1033         https://bugs.webkit.org/show_bug.cgi?id=125002
1034
1035         Reviewed by Gyuyoung Kim.
1036
1037         API enables capability of turning on and off spatial navigation
1038         and check is state.
1039         Spatial navigation is the ability to navigate between focusable
1040         elements by keyboard.
1041
1042         * UIProcess/API/efl/ewk_settings.cpp:
1043         (ewk_settings_spatial_navigation_enabled_set):
1044         (ewk_settings_spatial_navigation_enabled_get):
1045         * UIProcess/API/efl/ewk_settings.h:
1046         * UIProcess/API/efl/tests/test_ewk2_settings.cpp:
1047         (TEST_F):
1048
1049 2013-12-02  Zan Dobersek  <zdobersek@igalia.com>
1050
1051         Build fixes for GCC-using ports after r159965 and later
1052         https://bugs.webkit.org/show_bug.cgi?id=125136
1053
1054         GCC doesn't process API::ClientTraits template instantiations unless they're done
1055         inside the API namespace.
1056
1057         * Shared/WebConnectionClient.h:
1058         * UIProcess/Notifications/WebNotificationProvider.h:
1059         * UIProcess/WebContextClient.h:
1060         * UIProcess/WebContextConnectionClient.h:
1061         * UIProcess/WebContextInjectedBundleClient.h:
1062         * UIProcess/WebCookieManagerProxyClient.h:
1063         * UIProcess/WebDatabaseManagerProxyClient.h:
1064         * UIProcess/WebDownloadClient.h:
1065         * UIProcess/WebFindClient.h:
1066         * UIProcess/WebFormClient.h:
1067         * UIProcess/WebGeolocationProvider.h:
1068         * UIProcess/WebHistoryClient.h:
1069         * UIProcess/WebIconDatabaseClient.h:
1070         * UIProcess/WebLoaderClient.h:
1071         * UIProcess/WebOriginDataManagerProxyChangeClient.h:
1072         * UIProcess/WebPageContextMenuClient.h:
1073         * UIProcess/WebPolicyClient.h:
1074         * UIProcess/WebUIClient.h:
1075         * WebProcess/InjectedBundle/InjectedBundleClient.h:
1076         * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.h:
1077         * WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.h:
1078         * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.h:
1079         * WebProcess/InjectedBundle/InjectedBundlePageFormClient.h:
1080         * WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.h:
1081         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
1082         * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.h:
1083         * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.h:
1084         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
1085
1086 2013-12-02  Dan Bernstein  <mitz@apple.com>
1087
1088         Build fix.
1089
1090         * UIProcess/API/ios/WKGeolocationProviderIOS.mm:
1091         (-[WKGeolocationProviderIOS initWithContext:]):
1092
1093 2013-12-02  Martin Hock  <mhock@apple.com>
1094
1095         Add ability to iterate over API::Array
1096         https://bugs.webkit.org/show_bug.cgi?id=124533
1097
1098         Reviewed by Sam Weinig.
1099
1100         * GNUmakefile.list.am:
1101         * Shared/APIArray.h:
1102         * Shared/FilterIterator.h:
1103         * Shared/IteratorPair.h:
1104         * WebKit2.xcodeproj/project.pbxproj:
1105         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1106         (WebKit::toStringVector):
1107         * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
1108         (WebKit::InjectedBundlePageEditorClient::getPasteboardDataForRange):
1109
1110 2013-12-02  Dan Bernstein  <mitz@apple.com>
1111
1112         [Cocoa] WebProtectionSpace has a generic wrapper
1113         https://bugs.webkit.org/show_bug.cgi?id=125125
1114
1115         Reviewed by Anders Carlsson.
1116
1117         Added WKNSURLProtectionSpace.
1118
1119         * Shared/Cocoa/APIObject.mm:
1120         (API::Object::newObject): Allocate a WKNSURLProtectionSpace if the object is a
1121         WebProtectionSpace.
1122         * Shared/Cocoa/WKNSURLProtectionSpace.h: Added.
1123         (WebKit::wrapper): Added. Returns a WebProtecitonSpace’s wrapper as an NSURLProtectionSpace.
1124         * Shared/Cocoa/WKNSURLProtectionSpace.mm: Added.
1125         (-[WKNSURLProtectionSpace copyWithZone:]): Retains self.
1126         * UIProcess/Authentication/WebProtectionSpace.h:
1127         (WebKit::WebProtectionSpace::protectionSpace): Added an accessor for the
1128         WebCore::ProtectionSpace.
1129         * WebKit2.xcodeproj/project.pbxproj: Added references to new files.
1130
1131 2013-12-02  Anders Carlsson  <andersca@apple.com>
1132
1133         Replace uses of WebKit::APIClient with API::Client
1134         https://bugs.webkit.org/show_bug.cgi?id=125129
1135
1136         Reviewed by Andreas Kling.
1137
1138         * Shared/API/c/WKConnectionRef.cpp:
1139         (WKConnectionSetConnectionClient):
1140         * Shared/WebConnection.cpp:
1141         (WebKit::WebConnection::initializeConnectionClient):
1142         * Shared/WebConnection.h:
1143         * Shared/WebConnectionClient.cpp:
1144         (WebKit::WebConnectionClient::didReceiveMessage):
1145         (WebKit::WebConnectionClient::didClose):
1146         * Shared/WebConnectionClient.h:
1147         * UIProcess/API/C/WKContext.cpp:
1148         (WKContextSetClient):
1149         (WKContextSetInjectedBundleClient):
1150         (WKContextSetHistoryClient):
1151         (WKContextSetDownloadClient):
1152         (WKContextSetConnectionClient):
1153         * UIProcess/API/C/WKCookieManager.cpp:
1154         (WKCookieManagerSetClient):
1155         * UIProcess/API/C/WKDatabaseManager.cpp:
1156         (WKDatabaseManagerSetClient):
1157         * UIProcess/API/C/WKGeolocationManager.cpp:
1158         (WKGeolocationManagerSetProvider):
1159         * UIProcess/API/C/WKIconDatabase.cpp:
1160         (WKIconDatabaseSetIconDatabaseClient):
1161         * UIProcess/API/C/WKNotificationManager.cpp:
1162         (WKNotificationManagerSetProvider):
1163         * UIProcess/API/C/WKOriginDataManager.cpp:
1164         (WKOriginDataManagerSetChangeClient):
1165         * UIProcess/API/C/WKPage.cpp:
1166         (WKPageSetPageContextMenuClient):
1167         (WKPageSetPageFindClient):
1168         (WKPageSetPageFindMatchesClient):
1169         (WKPageSetPageFormClient):
1170         (WKPageSetPagePolicyClient):
1171         (WKPageSetPageUIClient):
1172         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
1173         (setUpPagePolicyClient):
1174         * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
1175         (WebKit::WebNotificationManagerProxy::initializeProvider):
1176         * UIProcess/Notifications/WebNotificationManagerProxy.h:
1177         * UIProcess/Notifications/WebNotificationProvider.cpp:
1178         (WebKit::WebNotificationProvider::show):
1179         (WebKit::WebNotificationProvider::cancel):
1180         (WebKit::WebNotificationProvider::didDestroyNotification):
1181         (WebKit::WebNotificationProvider::clearNotifications):
1182         (WebKit::WebNotificationProvider::addNotificationManager):
1183         (WebKit::WebNotificationProvider::removeNotificationManager):
1184         (WebKit::WebNotificationProvider::notificationPermissions):
1185         * UIProcess/Notifications/WebNotificationProvider.h:
1186         * UIProcess/WebContext.cpp:
1187         (WebKit::WebContext::initializeClient):
1188         (WebKit::WebContext::initializeInjectedBundleClient):
1189         (WebKit::WebContext::initializeConnectionClient):
1190         (WebKit::WebContext::initializeHistoryClient):
1191         (WebKit::WebContext::initializeDownloadClient):
1192         * UIProcess/WebContext.h:
1193         * UIProcess/WebContextClient.cpp:
1194         (WebKit::WebContextClient::plugInAutoStartOriginHashesChanged):
1195         (WebKit::WebContextClient::networkProcessDidCrash):
1196         (WebKit::WebContextClient::plugInInformationBecameAvailable):
1197         * UIProcess/WebContextClient.h:
1198         * UIProcess/WebContextConnectionClient.cpp:
1199         (WebKit::WebContextConnectionClient::didCreateConnection):
1200         * UIProcess/WebContextConnectionClient.h:
1201         * UIProcess/WebContextInjectedBundleClient.cpp:
1202         (WebKit::WebContextInjectedBundleClient::didReceiveMessageFromInjectedBundle):
1203         (WebKit::WebContextInjectedBundleClient::didReceiveSynchronousMessageFromInjectedBundle):
1204         (WebKit::WebContextInjectedBundleClient::getInjectedBundleInitializationUserData):
1205         * UIProcess/WebContextInjectedBundleClient.h:
1206         * UIProcess/WebCookieManagerProxy.cpp:
1207         (WebKit::WebCookieManagerProxy::initializeClient):
1208         * UIProcess/WebCookieManagerProxy.h:
1209         * UIProcess/WebCookieManagerProxyClient.cpp:
1210         (WebKit::WebCookieManagerProxyClient::cookiesDidChange):
1211         * UIProcess/WebCookieManagerProxyClient.h:
1212         * UIProcess/WebDatabaseManagerProxy.cpp:
1213         (WebKit::WebDatabaseManagerProxy::initializeClient):
1214         * UIProcess/WebDatabaseManagerProxy.h:
1215         * UIProcess/WebDatabaseManagerProxyClient.cpp:
1216         (WebKit::WebDatabaseManagerProxyClient::didModifyOrigin):
1217         (WebKit::WebDatabaseManagerProxyClient::didModifyDatabase):
1218         * UIProcess/WebDatabaseManagerProxyClient.h:
1219         * UIProcess/WebDownloadClient.cpp:
1220         (WebKit::WebDownloadClient::didStart):
1221         (WebKit::WebDownloadClient::didReceiveAuthenticationChallenge):
1222         (WebKit::WebDownloadClient::didReceiveResponse):
1223         (WebKit::WebDownloadClient::didReceiveData):
1224         (WebKit::WebDownloadClient::shouldDecodeSourceDataOfMIMEType):
1225         (WebKit::WebDownloadClient::decideDestinationWithSuggestedFilename):
1226         (WebKit::WebDownloadClient::didCreateDestination):
1227         (WebKit::WebDownloadClient::didFinish):
1228         (WebKit::WebDownloadClient::didFail):
1229         (WebKit::WebDownloadClient::didCancel):
1230         (WebKit::WebDownloadClient::processDidCrash):
1231         * UIProcess/WebDownloadClient.h:
1232         * UIProcess/WebFindClient.cpp:
1233         (WebKit::WebFindClient::didFindString):
1234         (WebKit::WebFindClient::didFailToFindString):
1235         (WebKit::WebFindClient::didCountStringMatches):
1236         (WebKit::WebFindMatchesClient::didFindStringMatches):
1237         (WebKit::WebFindMatchesClient::didGetImageForMatchResult):
1238         * UIProcess/WebFindClient.h:
1239         * UIProcess/WebFormClient.cpp:
1240         (WebKit::WebFormClient::willSubmitForm):
1241         * UIProcess/WebFormClient.h:
1242         * UIProcess/WebGeolocationManagerProxy.cpp:
1243         (WebKit::WebGeolocationManagerProxy::initializeProvider):
1244         * UIProcess/WebGeolocationManagerProxy.h:
1245         * UIProcess/WebGeolocationProvider.cpp:
1246         (WebKit::WebGeolocationProvider::startUpdating):
1247         (WebKit::WebGeolocationProvider::stopUpdating):
1248         (WebKit::WebGeolocationProvider::setEnableHighAccuracy):
1249         * UIProcess/WebGeolocationProvider.h:
1250         * UIProcess/WebHistoryClient.cpp:
1251         (WebKit::WebHistoryClient::didNavigateWithNavigationData):
1252         (WebKit::WebHistoryClient::didPerformClientRedirect):
1253         (WebKit::WebHistoryClient::didPerformServerRedirect):
1254         (WebKit::WebHistoryClient::didUpdateHistoryTitle):
1255         (WebKit::WebHistoryClient::populateVisitedLinks):
1256         * UIProcess/WebHistoryClient.h:
1257         * UIProcess/WebIconDatabase.cpp:
1258         (WebKit::WebIconDatabase::initializeIconDatabaseClient):
1259         * UIProcess/WebIconDatabase.h:
1260         * UIProcess/WebIconDatabaseClient.cpp:
1261         (WebKit::WebIconDatabaseClient::didChangeIconForPageURL):
1262         (WebKit::WebIconDatabaseClient::didRemoveAllIcons):
1263         (WebKit::WebIconDatabaseClient::iconDataReadyForPageURL):
1264         * UIProcess/WebIconDatabaseClient.h:
1265         * UIProcess/WebInspectorProxy.cpp:
1266         (WebKit::WebInspectorProxy::createInspectorPage):
1267         * UIProcess/WebLoaderClient.h:
1268         * UIProcess/WebOriginDataManagerProxy.cpp:
1269         (WebKit::WebOriginDataManagerProxy::setChangeClient):
1270         * UIProcess/WebOriginDataManagerProxy.h:
1271         * UIProcess/WebOriginDataManagerProxyChangeClient.cpp:
1272         (WebKit::WebOriginDataManagerProxyChangeClient::didChange):
1273         * UIProcess/WebOriginDataManagerProxyChangeClient.h:
1274         * UIProcess/WebPageContextMenuClient.cpp:
1275         (WebKit::WebPageContextMenuClient::getContextMenuFromProposedMenu):
1276         (WebKit::WebPageContextMenuClient::customContextMenuItemSelected):
1277         (WebKit::WebPageContextMenuClient::contextMenuDismissed):
1278         (WebKit::WebPageContextMenuClient::showContextMenu):
1279         (WebKit::WebPageContextMenuClient::hideContextMenu):
1280         * UIProcess/WebPageContextMenuClient.h:
1281         * UIProcess/WebPageProxy.cpp:
1282         (WebKit::WebPageProxy::initializePolicyClient):
1283         (WebKit::WebPageProxy::initializeFormClient):
1284         (WebKit::WebPageProxy::initializeUIClient):
1285         (WebKit::WebPageProxy::initializeFindClient):
1286         (WebKit::WebPageProxy::initializeFindMatchesClient):
1287         (WebKit::WebPageProxy::initializeContextMenuClient):
1288         * UIProcess/WebPageProxy.h:
1289         * UIProcess/WebPolicyClient.cpp:
1290         (WebKit::WebPolicyClient::decidePolicyForNavigationAction):
1291         (WebKit::WebPolicyClient::decidePolicyForNewWindowAction):
1292         (WebKit::WebPolicyClient::decidePolicyForResponse):
1293         (WebKit::WebPolicyClient::unableToImplementPolicy):
1294         * UIProcess/WebPolicyClient.h:
1295         * UIProcess/WebUIClient.cpp:
1296         (WebKit::WebUIClient::createNewPage):
1297         (WebKit::WebUIClient::showPage):
1298         (WebKit::WebUIClient::close):
1299         (WebKit::WebUIClient::takeFocus):
1300         (WebKit::WebUIClient::focus):
1301         (WebKit::WebUIClient::unfocus):
1302         (WebKit::WebUIClient::runJavaScriptAlert):
1303         (WebKit::WebUIClient::runJavaScriptConfirm):
1304         (WebKit::WebUIClient::runJavaScriptPrompt):
1305         (WebKit::WebUIClient::setStatusText):
1306         (WebKit::WebUIClient::mouseDidMoveOverElement):
1307         (WebKit::WebUIClient::unavailablePluginButtonClicked):
1308         (WebKit::WebUIClient::didNotHandleKeyEvent):
1309         (WebKit::WebUIClient::didNotHandleWheelEvent):
1310         (WebKit::WebUIClient::toolbarsAreVisible):
1311         (WebKit::WebUIClient::setToolbarsAreVisible):
1312         (WebKit::WebUIClient::menuBarIsVisible):
1313         (WebKit::WebUIClient::setMenuBarIsVisible):
1314         (WebKit::WebUIClient::statusBarIsVisible):
1315         (WebKit::WebUIClient::setStatusBarIsVisible):
1316         (WebKit::WebUIClient::isResizable):
1317         (WebKit::WebUIClient::setIsResizable):
1318         (WebKit::WebUIClient::setWindowFrame):
1319         (WebKit::WebUIClient::windowFrame):
1320         (WebKit::WebUIClient::runBeforeUnloadConfirmPanel):
1321         (WebKit::WebUIClient::didDraw):
1322         (WebKit::WebUIClient::pageDidScroll):
1323         (WebKit::WebUIClient::exceededDatabaseQuota):
1324         (WebKit::WebUIClient::runOpenPanel):
1325         (WebKit::WebUIClient::decidePolicyForGeolocationPermissionRequest):
1326         (WebKit::WebUIClient::decidePolicyForNotificationPermissionRequest):
1327         (WebKit::WebUIClient::headerHeight):
1328         (WebKit::WebUIClient::footerHeight):
1329         (WebKit::WebUIClient::drawHeader):
1330         (WebKit::WebUIClient::drawFooter):
1331         (WebKit::WebUIClient::printFrame):
1332         (WebKit::WebUIClient::runModal):
1333         (WebKit::WebUIClient::saveDataToFileInDownloadsFolder):
1334         (WebKit::WebUIClient::shouldInterruptJavaScript):
1335         (WebKit::WebUIClient::showColorPicker):
1336         (WebKit::WebUIClient::hideColorPicker):
1337         * UIProcess/WebUIClient.h:
1338         * UIProcess/mac/WebInspectorProxyMac.mm:
1339         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1340         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
1341         (WKBundleSetClient):
1342         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
1343         (WKBundlePageSetContextMenuClient):
1344         (WKBundlePageSetEditorClient):
1345         (WKBundlePageSetFormClient):
1346         (WKBundlePageSetPageLoaderClient):
1347         (WKBundlePageSetResourceLoadClient):
1348         (WKBundlePageSetPolicyClient):
1349         (WKBundlePageSetUIClient):
1350         (WKBundlePageSetFullScreenClient):
1351         (WKBundlePageSetDiagnosticLoggingClient):
1352         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1353         (WebKit::InjectedBundle::initializeClient):
1354         * WebProcess/InjectedBundle/InjectedBundle.h:
1355         * WebProcess/InjectedBundle/InjectedBundleClient.cpp:
1356         (WebKit::InjectedBundleClient::didCreatePage):
1357         (WebKit::InjectedBundleClient::willDestroyPage):
1358         (WebKit::InjectedBundleClient::didInitializePageGroup):
1359         (WebKit::InjectedBundleClient::didReceiveMessage):
1360         (WebKit::InjectedBundleClient::didReceiveMessageToPage):
1361         * WebProcess/InjectedBundle/InjectedBundleClient.h:
1362         * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp:
1363         (WebKit::InjectedBundlePageContextMenuClient::getCustomMenuFromDefaultItems):
1364         * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.h:
1365         * WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.cpp:
1366         (WebKit::InjectedBundlePageDiagnosticLoggingClient::logDiagnosticMessage):
1367         * WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.h:
1368         * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
1369         (WebKit::InjectedBundlePageEditorClient::shouldBeginEditing):
1370         (WebKit::InjectedBundlePageEditorClient::shouldEndEditing):
1371         (WebKit::InjectedBundlePageEditorClient::shouldInsertNode):
1372         (WebKit::InjectedBundlePageEditorClient::shouldInsertText):
1373         (WebKit::InjectedBundlePageEditorClient::shouldDeleteRange):
1374         (WebKit::InjectedBundlePageEditorClient::shouldChangeSelectedRange):
1375         (WebKit::InjectedBundlePageEditorClient::shouldApplyStyle):
1376         (WebKit::InjectedBundlePageEditorClient::didBeginEditing):
1377         (WebKit::InjectedBundlePageEditorClient::didEndEditing):
1378         (WebKit::InjectedBundlePageEditorClient::didChange):
1379         (WebKit::InjectedBundlePageEditorClient::didChangeSelection):
1380         (WebKit::InjectedBundlePageEditorClient::willWriteToPasteboard):
1381         (WebKit::InjectedBundlePageEditorClient::getPasteboardDataForRange):
1382         (WebKit::InjectedBundlePageEditorClient::didWriteToPasteboard):
1383         * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.h:
1384         * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
1385         (WebKit::InjectedBundlePageFormClient::didFocusTextField):
1386         (WebKit::InjectedBundlePageFormClient::textFieldDidBeginEditing):
1387         (WebKit::InjectedBundlePageFormClient::textFieldDidEndEditing):
1388         (WebKit::InjectedBundlePageFormClient::textDidChangeInTextField):
1389         (WebKit::InjectedBundlePageFormClient::textDidChangeInTextArea):
1390         (WebKit::InjectedBundlePageFormClient::shouldPerformActionInTextField):
1391         (WebKit::InjectedBundlePageFormClient::willSendSubmitEvent):
1392         (WebKit::InjectedBundlePageFormClient::willSubmitForm):
1393         (WebKit::InjectedBundlePageFormClient::didAssociateFormControls):
1394         (WebKit::InjectedBundlePageFormClient::shouldNotifyOnFormChanges):
1395         * WebProcess/InjectedBundle/InjectedBundlePageFormClient.h:
1396         * WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.h:
1397         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
1398         (WebKit::InjectedBundlePageLoaderClient::willLoadURLRequest):
1399         (WebKit::InjectedBundlePageLoaderClient::willLoadDataRequest):
1400         (WebKit::InjectedBundlePageLoaderClient::shouldGoToBackForwardListItem):
1401         (WebKit::InjectedBundlePageLoaderClient::didStartProvisionalLoadForFrame):
1402         (WebKit::InjectedBundlePageLoaderClient::didReceiveServerRedirectForProvisionalLoadForFrame):
1403         (WebKit::InjectedBundlePageLoaderClient::didFailProvisionalLoadWithErrorForFrame):
1404         (WebKit::InjectedBundlePageLoaderClient::didCommitLoadForFrame):
1405         (WebKit::InjectedBundlePageLoaderClient::didFinishDocumentLoadForFrame):
1406         (WebKit::InjectedBundlePageLoaderClient::didFinishLoadForFrame):
1407         (WebKit::InjectedBundlePageLoaderClient::didFinishProgress):
1408         (WebKit::InjectedBundlePageLoaderClient::didFailLoadWithErrorForFrame):
1409         (WebKit::InjectedBundlePageLoaderClient::didSameDocumentNavigationForFrame):
1410         (WebKit::InjectedBundlePageLoaderClient::didReceiveTitleForFrame):
1411         (WebKit::InjectedBundlePageLoaderClient::didRemoveFrameFromHierarchy):
1412         (WebKit::InjectedBundlePageLoaderClient::didDisplayInsecureContentForFrame):
1413         (WebKit::InjectedBundlePageLoaderClient::didRunInsecureContentForFrame):
1414         (WebKit::InjectedBundlePageLoaderClient::didDetectXSSForFrame):
1415         (WebKit::InjectedBundlePageLoaderClient::didFirstLayoutForFrame):
1416         (WebKit::InjectedBundlePageLoaderClient::didFirstVisuallyNonEmptyLayoutForFrame):
1417         (WebKit::InjectedBundlePageLoaderClient::didLayoutForFrame):
1418         (WebKit::InjectedBundlePageLoaderClient::didLayout):
1419         (WebKit::InjectedBundlePageLoaderClient::didClearWindowObjectForFrame):
1420         (WebKit::InjectedBundlePageLoaderClient::didCancelClientRedirectForFrame):
1421         (WebKit::InjectedBundlePageLoaderClient::willPerformClientRedirectForFrame):
1422         (WebKit::InjectedBundlePageLoaderClient::didHandleOnloadEventsForFrame):
1423         (WebKit::InjectedBundlePageLoaderClient::globalObjectIsAvailableForFrame):
1424         (WebKit::InjectedBundlePageLoaderClient::willDisconnectDOMWindowExtensionFromGlobalObject):
1425         (WebKit::InjectedBundlePageLoaderClient::didReconnectDOMWindowExtensionToGlobalObject):
1426         (WebKit::InjectedBundlePageLoaderClient::willDestroyGlobalObjectForDOMWindowExtension):
1427         (WebKit::InjectedBundlePageLoaderClient::shouldForceUniversalAccessFromLocalURL):
1428         (WebKit::InjectedBundlePageLoaderClient::featuresUsedInPage):
1429         (WebKit::InjectedBundlePageLoaderClient::willDestroyFrame):
1430         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
1431         * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp:
1432         (WebKit::InjectedBundlePagePolicyClient::decidePolicyForNavigationAction):
1433         (WebKit::InjectedBundlePagePolicyClient::decidePolicyForNewWindowAction):
1434         (WebKit::InjectedBundlePagePolicyClient::decidePolicyForResponse):
1435         (WebKit::InjectedBundlePagePolicyClient::unableToImplementPolicy):
1436         * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.h:
1437         * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp:
1438         (WebKit::InjectedBundlePageResourceLoadClient::didInitiateLoadForResource):
1439         (WebKit::InjectedBundlePageResourceLoadClient::willSendRequestForFrame):
1440         (WebKit::InjectedBundlePageResourceLoadClient::didReceiveResponseForResource):
1441         (WebKit::InjectedBundlePageResourceLoadClient::didReceiveContentLengthForResource):
1442         (WebKit::InjectedBundlePageResourceLoadClient::didFinishLoadForResource):
1443         (WebKit::InjectedBundlePageResourceLoadClient::didFailLoadForResource):
1444         (WebKit::InjectedBundlePageResourceLoadClient::shouldCacheResponse):
1445         (WebKit::InjectedBundlePageResourceLoadClient::shouldUseCredentialStorage):
1446         * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.h:
1447         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
1448         (WebKit::InjectedBundlePageUIClient::willAddMessageToConsole):
1449         (WebKit::InjectedBundlePageUIClient::willSetStatusbarText):
1450         (WebKit::InjectedBundlePageUIClient::willRunJavaScriptAlert):
1451         (WebKit::InjectedBundlePageUIClient::willRunJavaScriptConfirm):
1452         (WebKit::InjectedBundlePageUIClient::willRunJavaScriptPrompt):
1453         (WebKit::InjectedBundlePageUIClient::mouseDidMoveOverElement):
1454         (WebKit::InjectedBundlePageUIClient::pageDidScroll):
1455         (WebKit::InjectedBundlePageUIClient::shouldGenerateFileForUpload):
1456         (WebKit::InjectedBundlePageUIClient::generateFileForUpload):
1457         (WebKit::InjectedBundlePageUIClient::statusBarIsVisible):
1458         (WebKit::InjectedBundlePageUIClient::menuBarIsVisible):
1459         (WebKit::InjectedBundlePageUIClient::toolbarsAreVisible):
1460         (WebKit::InjectedBundlePageUIClient::didReachApplicationCacheOriginQuota):
1461         (WebKit::InjectedBundlePageUIClient::didExceedDatabaseQuota):
1462         (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle):
1463         (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle):
1464         (WebKit::InjectedBundlePageUIClient::plugInExtraStyleSheet):
1465         (WebKit::InjectedBundlePageUIClient::plugInExtraScript):
1466         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
1467         * WebProcess/WebPage/WebPage.cpp:
1468         (WebKit::WebPage::initializeInjectedBundleContextMenuClient):
1469         (WebKit::WebPage::initializeInjectedBundleEditorClient):
1470         (WebKit::WebPage::initializeInjectedBundleFormClient):
1471         (WebKit::WebPage::initializeInjectedBundleLoaderClient):
1472         (WebKit::WebPage::initializeInjectedBundlePolicyClient):
1473         (WebKit::WebPage::initializeInjectedBundleResourceLoadClient):
1474         (WebKit::WebPage::initializeInjectedBundleUIClient):
1475         (WebKit::WebPage::initializeInjectedBundleFullScreenClient):
1476         (WebKit::WebPage::initializeInjectedBundleDiagnosticLoggingClient):
1477         * WebProcess/WebPage/WebPage.h:
1478
1479 2013-12-02  Enrica Casucci  <enrica@apple.com>
1480
1481         Merging some more iOS WebKit2 stuff.
1482         https://bugs.webkit.org/show_bug.cgi?id=125119
1483
1484         Reviewed by Tim Horton.
1485
1486         * Shared/EditorState.h:
1487         * Shared/NativeWebKeyboardEvent.h:
1488         * Shared/NativeWebMouseEvent.h:
1489         * Shared/NativeWebTouchEvent.h:
1490         * Shared/mac/RemoteLayerBackingStore.h:
1491         * Shared/mac/RemoteLayerTreePropertyApplier.mm:
1492         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
1493         * UIProcess/PageClient.h:
1494         * UIProcess/ios/TiledCoreAnimationDrawingAreaProxyIOS.mm:
1495         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
1496         * UIProcess/mac/SecItemShimProxy.messages.in:
1497         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
1498         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
1499         * WebProcess/WebPage/WebPage.cpp:
1500         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
1501         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
1502
1503 2013-12-02  Anders Carlsson  <andersca@apple.com>
1504
1505         Add versioned structs for the remaining clients
1506         https://bugs.webkit.org/show_bug.cgi?id=125123
1507
1508         Reviewed by Andreas Kling.
1509
1510         * UIProcess/API/C/WKContext.h:
1511         * UIProcess/API/C/WKContextConnectionClient.h:
1512         * UIProcess/API/C/WKContextDownloadClient.h:
1513         * UIProcess/API/C/WKContextHistoryClient.h:
1514         * UIProcess/API/C/WKContextInjectedBundleClient.h:
1515         * UIProcess/API/C/WKOriginDataManager.h:
1516
1517 2013-12-02  Anders Carlsson  <andersca@apple.com>
1518
1519         Move WKContext clients to separate files
1520         https://bugs.webkit.org/show_bug.cgi?id=125121
1521
1522         Reviewed by Andreas Kling.
1523
1524         * UIProcess/API/C/WKContext.h:
1525         * UIProcess/API/C/WKContextConnectionClient.h: Added.
1526         * UIProcess/API/C/WKContextDownloadClient.h: Added.
1527         * UIProcess/API/C/WKContextHistoryClient.h: Added.
1528         * UIProcess/API/C/WKContextInjectedBundleClient.h: Added.
1529         * WebKit2.xcodeproj/project.pbxproj:
1530
1531 2013-12-02  Sam Weinig  <sam@webkit.org>
1532
1533         WebPageGroups should keep track of what processes they are being used by
1534         https://bugs.webkit.org/show_bug.cgi?id=124556
1535
1536         Reviewed by Anders Carlsson.
1537
1538         * UIProcess/WebContextUserMessageCoders.h:
1539         (WebKit::WebContextUserMessageEncoder::encode):
1540         (WebKit::WebContextUserMessageDecoder::decode):
1541         * UIProcess/WebPageGroup.cpp:
1542         (WebKit::WebPageGroup::addProcess):
1543         (WebKit::WebPageGroup::disconnectProcess):
1544         * UIProcess/WebPageGroup.h:
1545         (WebKit::WebPageGroup::sendToAllProcessesInGroup):
1546         * UIProcess/WebPageProxy.cpp:
1547         (WebKit::WebPageProxy::initializeWebPage):
1548         * UIProcess/WebProcessProxy.cpp:
1549         (WebKit::WebProcessProxy::disconnect):
1550         (WebKit::WebProcessProxy::webPageGroup):
1551         (WebKit::WebProcessProxy::addWebPageGroup):
1552         * UIProcess/WebProcessProxy.h:
1553         * WebProcess/WebProcess.cpp:
1554         (WebKit::WebProcess::webPageGroup):
1555
1556 2013-12-02  Anders Carlsson  <andersca@apple.com>
1557
1558         Add versioned structs for all clients except the ones in WKContext.h
1559         https://bugs.webkit.org/show_bug.cgi?id=125120
1560
1561         Reviewed by Andreas Kling.
1562
1563         * Shared/API/c/WKConnectionRef.h:
1564         * UIProcess/API/C/WKCookieManager.h:
1565         * UIProcess/API/C/WKDatabaseManager.h:
1566         * UIProcess/API/C/WKGeolocationManager.h:
1567         * UIProcess/API/C/WKIconDatabase.h:
1568         * UIProcess/API/C/WKNotificationProvider.h:
1569         * UIProcess/API/C/WKPageContextMenuClient.h:
1570         * UIProcess/API/C/WKPageFindClient.h:
1571         * UIProcess/API/C/WKPageFindMatchesClient.h:
1572         * UIProcess/API/C/WKPageFormClient.h:
1573         * UIProcess/API/C/WKPageLoaderClient.h:
1574         * UIProcess/API/C/WKPagePolicyClient.h:
1575         * UIProcess/API/C/WKPageUIClient.h:
1576         * WebProcess/InjectedBundle/API/c/WKBundle.h:
1577         * WebProcess/InjectedBundle/API/c/WKBundlePageBanner.h:
1578         * WebProcess/InjectedBundle/API/c/WKBundlePageContextMenuClient.h:
1579         * WebProcess/InjectedBundle/API/c/WKBundlePageDiagnosticLoggingClient.h:
1580         * WebProcess/InjectedBundle/API/c/WKBundlePageEditorClient.h:
1581         * WebProcess/InjectedBundle/API/c/WKBundlePageFormClient.h:
1582         * WebProcess/InjectedBundle/API/c/WKBundlePageFullScreenClient.h:
1583         * WebProcess/InjectedBundle/API/c/WKBundlePageLoaderClient.h:
1584         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:
1585         * WebProcess/InjectedBundle/API/c/WKBundlePagePolicyClient.h:
1586         * WebProcess/InjectedBundle/API/c/WKBundlePageResourceLoadClient.h:
1587         * WebProcess/InjectedBundle/API/c/WKBundlePageUIClient.h:
1588
1589 2013-12-02  Anders Carlsson  <andersca@apple.com>
1590
1591         Split bundle page clients out into separate headers
1592         https://bugs.webkit.org/show_bug.cgi?id=125115
1593
1594         Reviewed by Andreas Kling.
1595
1596         * WebKit2.xcodeproj/project.pbxproj:
1597         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
1598         * WebProcess/InjectedBundle/API/c/WKBundlePageContextMenuClient.h: Added.
1599         * WebProcess/InjectedBundle/API/c/WKBundlePageDiagnosticLoggingClient.h: Added.
1600         * WebProcess/InjectedBundle/API/c/WKBundlePageEditorClient.h: Added.
1601         * WebProcess/InjectedBundle/API/c/WKBundlePageFormClient.h: Added.
1602         * WebProcess/InjectedBundle/API/c/WKBundlePageFullScreenClient.h: Added.
1603         * WebProcess/InjectedBundle/API/c/WKBundlePageLoaderClient.h: Added.
1604         * WebProcess/InjectedBundle/API/c/WKBundlePagePolicyClient.h: Added.
1605         * WebProcess/InjectedBundle/API/c/WKBundlePageResourceLoadClient.h: Added.
1606         * WebProcess/InjectedBundle/API/c/WKBundlePageUIClient.h: Added.
1607
1608 2013-12-02  Nick Diego Yamane  <nick.yamane@openbossa.org>
1609
1610         [WK2] Improve readability of 'generate_message_handler' function
1611         https://bugs.webkit.org/show_bug.cgi?id=125085
1612
1613         Reviewed by Sam Weinig.
1614
1615         * Scripts/webkit2/messages.py:
1616         (generate_message_handler):
1617
1618 2013-12-02  Tim Horton  <timothy_horton@apple.com>
1619
1620         Remote Layer Tree: Support cloning layers
1621         https://bugs.webkit.org/show_bug.cgi?id=124874
1622         <rdar://problem/15349468>
1623
1624         Reviewed by Simon Fraser.
1625
1626         We use PlatformCALayer::clone for CSS reflections, so implement it.
1627
1628         Also, since many reflections testcases also use masks,
1629         working on this revealed that masks weren't working, because
1630         we weren't flushing mask layers.
1631
1632         * Shared/mac/RemoteLayerTreePropertyApplier.mm:
1633         (WebKit::RemoteLayerTreePropertyApplier::applyPropertiesToLayer):
1634         * Shared/mac/RemoteLayerTreeTransaction.mm:
1635         (WebKit::RemoteLayerTreeTransaction::LayerProperties::LayerProperties):
1636         (WebKit::RemoteLayerTreeTransaction::LayerProperties::encode):
1637         (WebKit::RemoteLayerTreeTransaction::LayerProperties::decode):
1638         Rename maskLayer->maskLayerID since it's a LayerID.
1639
1640         * UIProcess/mac/RemoteLayerTreeHost.mm:
1641         (WebKit::RemoteLayerTreeHost::commit):
1642         Don't try to look up the layer if it's null.
1643
1644         * Shared/mac/RemoteLayerTreeTransaction.h:
1645         (WebKit::RemoteLayerTreeTransaction::LayerProperties::notePropertiesChanged):
1646         * Shared/mac/RemoteLayerTreeTransaction.mm:
1647         (WebKit::RemoteLayerTreeTransaction::LayerProperties::LayerProperties):
1648         Keep track of all properties that have ever been changed on a layer.
1649
1650         * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
1651         (PlatformCALayerRemote::create):
1652         (PlatformCALayerRemote::PlatformCALayerRemote):
1653         (PlatformCALayerRemote::clone):
1654         Copy all of the layer properties from the original to the clone,
1655         and mark all properties that have ever been modified as
1656         needing to be flushed to the UI process.
1657
1658         (PlatformCALayerRemote::recursiveBuildTransaction):
1659         Flush our mask layer, if we have one.
1660
1661         (PlatformCALayerRemote::setMask):
1662         * WebProcess/WebPage/mac/PlatformCALayerRemote.h:
1663         Store the mask layer we're given. Our owning GraphicsLayer will
1664         hold on to it for us.
1665
1666 2013-12-02  Anders Carlsson  <andersca@apple.com>
1667
1668         WKPageLoaderClient should be versioned
1669         https://bugs.webkit.org/show_bug.cgi?id=125104
1670
1671         Reviewed by Sam Weinig.
1672
1673         Add multiple versions of the WKPageLoaderClient struct. In a subsequent patch,
1674         WKPageLoaderClient and kWKPageLoaderClientCurrentVersion will be deprecated. Instead,
1675         users of the API are supposed to explicitly choose a version and a versioned struct.
1676
1677         * Shared/APIClient.h:
1678         Add a new API::Client class with a new ClientTraits template that uses std::tuple for versions.
1679
1680         * Shared/APIClientTraits.cpp:
1681         * Shared/APIClientTraits.h:
1682         Remove WKPageLoaderClient interface sizes.
1683
1684         * UIProcess/API/C/WKPage.cpp:
1685         (WKPageSetPageLoaderClient):
1686         Add an explicit cast to WKPageLoaderClientBase. In an upcoming patch, WKPageSetPageLoaderClient
1687         will be changed to take a WKPageLoaderClientBase instead.
1688
1689         * UIProcess/API/C/WKPageLoaderClient.h:
1690         Add new versions.
1691
1692         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
1693         (setUpPageLoaderClient):
1694         Use an explicit version.
1695
1696         * UIProcess/WebLoaderClient.cpp:
1697         (WebKit::WebLoaderClient::didStartProvisionalLoadForFrame):
1698         (WebKit::WebLoaderClient::didReceiveServerRedirectForProvisionalLoadForFrame):
1699         (WebKit::WebLoaderClient::didFailProvisionalLoadWithErrorForFrame):
1700         (WebKit::WebLoaderClient::didCommitLoadForFrame):
1701         (WebKit::WebLoaderClient::didFinishDocumentLoadForFrame):
1702         (WebKit::WebLoaderClient::didFinishLoadForFrame):
1703         (WebKit::WebLoaderClient::didFailLoadWithErrorForFrame):
1704         (WebKit::WebLoaderClient::didSameDocumentNavigationForFrame):
1705         (WebKit::WebLoaderClient::didReceiveTitleForFrame):
1706         (WebKit::WebLoaderClient::didFirstLayoutForFrame):
1707         (WebKit::WebLoaderClient::didFirstVisuallyNonEmptyLayoutForFrame):
1708         (WebKit::WebLoaderClient::didLayout):
1709         (WebKit::WebLoaderClient::didRemoveFrameFromHierarchy):
1710         (WebKit::WebLoaderClient::didDisplayInsecureContentForFrame):
1711         (WebKit::WebLoaderClient::didRunInsecureContentForFrame):
1712         (WebKit::WebLoaderClient::didDetectXSSForFrame):
1713         (WebKit::WebLoaderClient::canAuthenticateAgainstProtectionSpaceInFrame):
1714         (WebKit::WebLoaderClient::didReceiveAuthenticationChallengeInFrame):
1715         (WebKit::WebLoaderClient::didStartProgress):
1716         (WebKit::WebLoaderClient::didChangeProgress):
1717         (WebKit::WebLoaderClient::didFinishProgress):
1718         (WebKit::WebLoaderClient::processDidBecomeUnresponsive):
1719         (WebKit::WebLoaderClient::interactionOccurredWhileProcessUnresponsive):
1720         (WebKit::WebLoaderClient::processDidBecomeResponsive):
1721         (WebKit::WebLoaderClient::processDidCrash):
1722         (WebKit::WebLoaderClient::didChangeBackForwardList):
1723         (WebKit::WebLoaderClient::shouldGoToBackForwardListItem):
1724         (WebKit::WebLoaderClient::willGoToBackForwardListItem):
1725         (WebKit::WebLoaderClient::didFailToInitializePlugin):
1726         (WebKit::WebLoaderClient::didBlockInsecurePluginVersion):
1727         (WebKit::WebLoaderClient::pluginLoadPolicy):
1728         Go through client.base everywhere.
1729
1730         * UIProcess/WebLoaderClient.h:
1731         Add API::ClientTraits specialization. Change WebLoaderClient to derive from API::Client<WKPageLoaderClientBase>.
1732
1733         * UIProcess/WebPageProxy.cpp:
1734         (WebKit::WebPageProxy::initializeLoaderClient):
1735         This now takes a WKPageLoaderClientBase*.
1736         
1737 2013-12-02  Beth Dakin  <bdakin@apple.com>
1738
1739         Add a setting to opt into a mode where the background extends and fixed elements 
1740         don't move on rubber-band
1741         https://bugs.webkit.org/show_bug.cgi?id=124745
1742
1743         Reviewed by Tim Horton.
1744
1745         Add SPI to enable the new setting.
1746
1747         * Shared/WebPreferencesStore.h:
1748         * UIProcess/API/C/WKPreferences.cpp:
1749         (WKPreferencesSetBackgroundShouldExtendBeyondPage):
1750         (WKPreferencesGetBackgroundShouldExtendBeyondPage):
1751         * UIProcess/API/C/WKPreferencesPrivate.h:
1752         * WebProcess/WebPage/WebPage.cpp:
1753         (WebKit::WebPage::updatePreferences):
1754
1755 2013-12-02  Tim Horton  <timothy_horton@apple.com>
1756
1757         Remote Layer Tree: Hook up setLayerTreeStateIsFrozen
1758         https://bugs.webkit.org/show_bug.cgi?id=124872
1759
1760         Reviewed by Brent Fulgham.
1761
1762         setLayerTreeStateIsFrozen is the mechanism used to ensure that
1763         layer property changes (including new backing store) aren't committed
1764         while e.g. the page is reconfigured for printing.
1765
1766         * WebProcess/WebPage/mac/RemoteLayerTreeContext.h:
1767         * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
1768         (WebKit::RemoteLayerTreeContext::RemoteLayerTreeContext):
1769         (WebKit::RemoteLayerTreeContext::flushLayers):
1770         (WebKit::RemoteLayerTreeContext::setIsFlushingSuspended):
1771         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
1772         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
1773         (WebKit::RemoteLayerTreeDrawingArea::setLayerTreeStateIsFrozen):
1774
1775 2013-12-02  Tim Horton  <timothy_horton@apple.com>
1776
1777         Remote Layer Tree: Disable direct image compositing
1778         https://bugs.webkit.org/show_bug.cgi?id=124875
1779         <rdar://problem/15446024>
1780
1781         Reviewed by Simon Fraser.
1782
1783         * WebProcess/WebPage/mac/GraphicsLayerCARemote.h:
1784         Image-as-layer-contents is not implemented for the remote layer tree.
1785
1786 2013-12-01  ChangSeok Oh  <changseok.oh@collabora.com>
1787
1788         Unreviewed Gtk port Build fix after r159903
1789
1790         * UIProcess/DrawingAreaProxyImpl.cpp:
1791         (WebKit::DrawingAreaProxyImpl::layerHostingModeDidChange):
1792         (WebKit::DrawingAreaProxyImpl::update):
1793         (WebKit::DrawingAreaProxyImpl::didUpdateBackingStoreState):
1794         (WebKit::DrawingAreaProxyImpl::sendUpdateBackingStoreState):
1795         (WebKit::DrawingAreaProxyImpl::waitForAndDispatchDidUpdateBackingStoreState):
1796         * UIProcess/gtk/WebFullScreenManagerProxyGtk.cpp:
1797         (WebKit::WebFullScreenManagerProxy::invalidate):
1798         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
1799         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1800         * UIProcess/gtk/WebPageProxyGtk.cpp:
1801         (WebKit::WebPageProxy::setAcceleratedCompositingWindowId):
1802
1803 2013-12-01  Sam Weinig  <sam@webkit.org>
1804
1805         Give UserMessageEncoders WebProcessProxy reference (like the decoders already have)
1806         https://bugs.webkit.org/show_bug.cgi?id=125053
1807
1808         Reviewed by Dan Bernstein.
1809
1810         - Give the UserMessageEncoders a process reference.
1811         - Switch UserMessageDecoders to storing a process reference, rather than pointer.
1812
1813         * Shared/UserMessageCoders.h:
1814         * Shared/mac/ObjCObjectGraphCoders.h:
1815         * Shared/mac/ObjCObjectGraphCoders.mm:
1816         * UIProcess/WebConnectionToWebProcess.cpp:
1817         * UIProcess/WebContext.cpp:
1818         * UIProcess/WebContextUserMessageCoders.h:
1819         * UIProcess/WebPageProxy.cpp:
1820         * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
1821
1822 2013-12-01  Sam Weinig  <sam@webkit.org>
1823
1824         [Cocoa] The PageLoadState::Observer is not being set on iOS
1825         https://bugs.webkit.org/show_bug.cgi?id=125051
1826
1827         Reviewed by Dan Bernstein.
1828
1829         * UIProcess/ios/WebPageProxyIOS.mm:
1830         (WebKit::WebPageProxy::platformInitialize):
1831         Add missing call to _finishInitialization.
1832
1833 2013-12-01  Ryuan Choi  <ryuan.choi@samsung.com>
1834
1835         Unreviewed EFL Build fix attempt after r159903
1836
1837         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp:
1838         (WebKit::CoordinatedDrawingAreaProxy::layerHostingModeDidChange):
1839         (WebKit::CoordinatedDrawingAreaProxy::update):
1840         (WebKit::CoordinatedDrawingAreaProxy::didUpdateBackingStoreState):
1841         (WebKit::CoordinatedDrawingAreaProxy::sendUpdateBackingStoreState):
1842         (WebKit::CoordinatedDrawingAreaProxy::waitForAndDispatchDidUpdateBackingStoreState):
1843         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
1844         (WebKit::CoordinatedLayerTreeHostProxy::CoordinatedLayerTreeHostProxy):
1845         (WebKit::CoordinatedLayerTreeHostProxy::~CoordinatedLayerTreeHostProxy):
1846         (WebKit::CoordinatedLayerTreeHostProxy::setVisibleContentsRect):
1847         (WebKit::CoordinatedLayerTreeHostProxy::renderNextFrame):
1848         (WebKit::CoordinatedLayerTreeHostProxy::purgeBackingStores):
1849         (WebKit::CoordinatedLayerTreeHostProxy::commitScrollOffset):
1850         * UIProcess/WebTextChecker.cpp:
1851         (WebKit::WebTextChecker::checkSpelling):
1852         (WebKit::WebTextChecker::changeSpellingToWord):
1853         * UIProcess/WebTextChecker.h:
1854         * UIProcess/WebVibrationProxy.cpp:
1855         (WebKit::WebVibrationProxy::WebVibrationProxy):
1856         (WebKit::WebVibrationProxy::~WebVibrationProxy):
1857         * UIProcess/efl/WebFullScreenManagerProxyEfl.cpp:
1858         (WebKit::WebFullScreenManagerProxy::invalidate):
1859         * UIProcess/efl/WebInspectorProxyEfl.cpp:
1860         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1861         * UIProcess/efl/WebPageProxyEfl.cpp:
1862         (WebKit::WebPageProxy::setThemePath):
1863         (WebKit::WebPageProxy::confirmComposition):
1864         (WebKit::WebPageProxy::setComposition):
1865         (WebKit::WebPageProxy::cancelComposition):
1866
1867 2013-12-01  Sam Weinig  <sam@webkit.org>
1868
1869         Fix the iOS build.
1870
1871         * UIProcess/API/ios/WKContentView.mm:
1872         * UIProcess/API/ios/WKInteractionView.mm:
1873         * UIProcess/ios/WebPageProxyIOS.mm:
1874
1875 2013-12-01  Sam Weinig  <sam@webkit.org>
1876
1877         [CTTE] The WebPageProxy's WebProcessProxy is never null so it should be stored in a Ref
1878         https://bugs.webkit.org/show_bug.cgi?id=125047
1879
1880         Reviewed by Dan Bernstein.
1881
1882         * UIProcess/API/C/WKPage.cpp:
1883         * UIProcess/API/C/mac/WKPagePrivateMac.cpp:
1884         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
1885         * UIProcess/API/mac/WKView.mm:
1886         * UIProcess/Downloads/DownloadProxy.cpp:
1887         * UIProcess/Downloads/DownloadProxy.h:
1888         * UIProcess/Downloads/DownloadProxyMap.cpp:
1889         * UIProcess/Downloads/DownloadProxyMap.h:
1890         * UIProcess/DrawingAreaProxy.cpp:
1891         * UIProcess/GeolocationPermissionRequestManagerProxy.cpp:
1892         * UIProcess/Network/NetworkProcessProxy.cpp:
1893         * UIProcess/Network/NetworkProcessProxy.h:
1894         * UIProcess/Notifications/NotificationPermissionRequestManagerProxy.cpp:
1895         * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
1896         * UIProcess/WebContext.cpp:
1897         * UIProcess/WebContext.h:
1898         * UIProcess/WebEditCommandProxy.cpp:
1899         * UIProcess/WebFrameProxy.cpp:
1900         * UIProcess/WebFullScreenManagerProxy.cpp:
1901         * UIProcess/WebInspectorProxy.cpp:
1902         * UIProcess/WebPageGroup.h:
1903         * UIProcess/WebPageProxy.cpp:
1904         * UIProcess/WebPageProxy.h:
1905         * UIProcess/WebProcessProxy.cpp:
1906         * UIProcess/WebProcessProxy.h:
1907         * UIProcess/cf/WebPageProxyCF.cpp:
1908         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
1909         * UIProcess/mac/RemoteLayerTreeHost.mm:
1910         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
1911         * UIProcess/mac/WebFullScreenManagerProxyMac.mm:
1912         * UIProcess/mac/WebInspectorProxyMac.mm:
1913         * UIProcess/mac/WebPageProxyMac.mm:
1914
1915 2013-12-01  Ryuan Choi  <ryuan.choi@samsung.com>
1916
1917         [EFL][CoordinatedGraphics] Clear m_contentsSize when new contents are loaded
1918         https://bugs.webkit.org/show_bug.cgi?id=125033
1919
1920         Reviewed by Gyuyoung Kim.
1921
1922         m_contentsSize should be cleared when new contents are loaded so that PageViewportController
1923         would take care of newly loaded contents with same size as previous one.
1924         It's because PageViewportController is cleared not to make wrong behaviour
1925         while loading when new contents are committed.
1926
1927         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
1928         (TEST_F):
1929         Improve tests to check contents,size,changed signal when loaded contents having
1930         same size with previous one.
1931         * UIProcess/CoordinatedGraphics/WebView.cpp:
1932         (WebKit::WebView::didCommitLoadForMainFrame): Cleared m_contentsSize.
1933
1934 2013-12-01  Philippe Normand  <pnormand@igalia.com>
1935
1936         Unreviewed GTK build fix after r159896.
1937
1938         * UIProcess/API/gtk/WebKitWebContext.cpp:
1939         (webkitWebContextCreatePageForWebView):
1940         * UIProcess/API/gtk/WebKitWebView.cpp:
1941         (webkitWebViewConstructed):
1942         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
1943         (webkitWebViewBaseUpdatePreferences):
1944
1945 2013-12-01  Ryuan Choi  <ryuan.choi@samsung.com>
1946
1947         Unreviewed build fix after r159896.
1948
1949         * UIProcess/API/efl/ewk_settings.cpp:
1950         (EwkSettings::preferences):
1951         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp:
1952         (WebKit::CoordinatedDrawingAreaProxy::CoordinatedDrawingAreaProxy):
1953         * UIProcess/CoordinatedGraphics/WebView.cpp:
1954         (WebKit::WebView::WebView):
1955
1956 2013-11-30  Sam Weinig  <sam@webkit.org>
1957
1958         [CTTE] The WebPageProxy's WebPageGroup is never null so it should be stored in a Ref
1959         https://bugs.webkit.org/show_bug.cgi?id=125038
1960
1961         Reviewed by Dan Bernstein.
1962
1963         * UIProcess/API/C/WKPage.cpp:
1964         (WKPageGetPageGroup):
1965         * UIProcess/API/C/mac/WKPagePrivateMac.cpp:
1966         (WKPageIsURLKnownHSTSHost):
1967         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
1968         (-[WKBrowsingContextController browsingContextGroup]):
1969         * UIProcess/API/mac/WKView.mm:
1970         (-[WKView _preferencesDidChange]):
1971         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
1972         * UIProcess/WebContext.cpp:
1973         (WebKit::WebContext::WebContext):
1974         (WebKit::WebContext::createWebPage):
1975         * UIProcess/WebContext.h:
1976         * UIProcess/WebInspectorProxy.cpp:
1977         (WebKit::WebInspectorPageGroups::inspectorLevel):
1978         (WebKit::WebInspectorPageGroups::isInspectorPageGroup):
1979         (WebKit::WebInspectorPageGroups::inspectorPageGroupLevel):
1980         (WebKit::WebInspectorProxy::isInspectorPage):
1981         * UIProcess/WebInspectorProxy.h:
1982         * UIProcess/WebPageGroup.cpp:
1983         (WebKit::WebPageGroup::createNonNull):
1984         * UIProcess/WebPageGroup.h:
1985         * UIProcess/WebPageProxy.cpp:
1986         (WebKit::WebPageProxy::create):
1987         (WebKit::WebPageProxy::WebPageProxy):
1988         (WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle):
1989         (WebKit::WebPageProxy::preferencesDidChange):
1990         * UIProcess/WebPageProxy.h:
1991         (WebKit::WebPageProxy::pageGroup):
1992         * UIProcess/WebProcessProxy.cpp:
1993         (WebKit::WebProcessProxy::createWebPage):
1994         * UIProcess/WebProcessProxy.h:
1995         * UIProcess/mac/WebInspectorProxyMac.mm:
1996         (WebKit::WebInspectorProxy::createInspectorWindow):
1997         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1998         (WebKit::WebInspectorProxy::windowFrameDidChange):
1999         * UIProcess/mac/WebProcessProxyMac.mm:
2000         (WebKit::WebProcessProxy::pageIsProcessSuppressible):
2001
2002 2013-11-30  Dan Bernstein  <mitz@apple.com>
2003
2004         Added a version of +[NSURL _web_URLWithWTFString:relativeToURL:] that doesn’t take a base URL and switched all callers to it.
2005         https://bugs.webkit.org/show_bug.cgi?id=125040
2006
2007         Reviewed by Sam Weinig.
2008
2009         * Shared/Cocoa/WKNSURLExtras.h: Declared new method.
2010         * Shared/Cocoa/WKNSURLExtras.mm:
2011         (urlWithWTFString): Added helper function.
2012         (+[NSURL _web_URLWithWTFString:]): Added.
2013         (+[NSURL _web_URLWithWTFString:relativeToURL:]): Changed to use helper function.
2014         * UIProcess/API/Cocoa/WKBackForwardListItem.mm:
2015         (-[WKBackForwardListItem URL]): Changed to call new method.
2016         (-[WKBackForwardListItem originalURL]): Ditto.
2017         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
2018         (-[WKBrowsingContextController activeURL]): Ditto.
2019         (-[WKBrowsingContextController provisionalURL]): Ditto.
2020         (-[WKBrowsingContextController committedURL]): Ditto.
2021         (-[WKBrowsingContextController unreachableURL]): Ditto.
2022         (setUpPagePolicyClient): Ditto.
2023         * UIProcess/API/Cocoa/WKNavigationData.mm:
2024         (-[WKNavigationData destinationURL]): Ditto.
2025
2026 2013-11-30  Dan Bernstein  <mitz@apple.com>
2027
2028         [Cocoa] Stop using the WKPageRef API in WKBrowsingContextController
2029         https://bugs.webkit.org/show_bug.cgi?id=125036
2030
2031         Reviewed by Sam Weinig.
2032
2033         * Shared/Cocoa/WKNSURLExtras.h: Declared new method.
2034         * Shared/Cocoa/WKNSURLExtras.mm:
2035         (-[NSURL _web_originalDataAsWTFString]): Added. Returns a WTF::String with the receiver’s
2036         bytes.
2037
2038         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
2039         (-[WKBrowsingContextController loadRequest:userData:]):
2040         (-[WKBrowsingContextController loadFileURL:restrictToFilesWithin:userData:]):
2041         (-[WKBrowsingContextController loadHTMLString:baseURL:userData:]):
2042         (-[WKBrowsingContextController loadAlternateHTMLString:baseURL:forUnreachableURL:]):
2043         (-[WKBrowsingContextController loadData:MIMEType:textEncodingName:baseURL:userData:]):
2044         (-[WKBrowsingContextController stopLoading]):
2045         (-[WKBrowsingContextController reload]):
2046         (-[WKBrowsingContextController reloadFromOrigin]):
2047         (-[WKBrowsingContextController goForward]):
2048         (-[WKBrowsingContextController canGoForward]):
2049         (-[WKBrowsingContextController goBack]):
2050         (-[WKBrowsingContextController canGoBack]):
2051         (-[WKBrowsingContextController activeURL]):
2052         (-[WKBrowsingContextController provisionalURL]):
2053         (-[WKBrowsingContextController committedURL]):
2054         (-[WKBrowsingContextController title]):
2055         (-[WKBrowsingContextController textZoom]):
2056         (-[WKBrowsingContextController setTextZoom:]):
2057         (-[WKBrowsingContextController pageZoom]):
2058         (-[WKBrowsingContextController setPageZoom:]):
2059         (setUpPageLoaderClient):
2060         (setUpPagePolicyClient):
2061         (-[WKBrowsingContextController setLoadDelegate:]):
2062         (-[WKBrowsingContextController setPolicyDelegate:]):
2063         (-[WKBrowsingContextController _pageRef]):
2064         (-[WKBrowsingContextController setPaginationMode:]):
2065         (-[WKBrowsingContextController paginationMode]):
2066         (-[WKBrowsingContextController setPaginationBehavesLikeColumns:]):
2067         (-[WKBrowsingContextController paginationBehavesLikeColumns]):
2068         (-[WKBrowsingContextController setPageLength:]):
2069         (-[WKBrowsingContextController pageLength]):
2070         (-[WKBrowsingContextController setGapBetweenPages:]):
2071         (-[WKBrowsingContextController gapBetweenPages]):
2072         (-[WKBrowsingContextController pageCount]):
2073
2074 2013-11-30  Commit Queue  <commit-queue@webkit.org>
2075
2076         Unreviewed, rolling out r159865.
2077         http://trac.webkit.org/changeset/159865
2078         https://bugs.webkit.org/show_bug.cgi?id=125037
2079
2080         the position of mouse events are wrong at MiniBrowser/efl
2081         (Requested by ryuan on #webkit).
2082
2083         * UIProcess/API/efl/EwkView.cpp:
2084         (EwkView::displayTimerFired):
2085         (EwkView::createGLSurface):
2086         (EwkView::handleEvasObjectCalculate):
2087
2088 2013-11-30  Sam Weinig  <sam@webkit.org>
2089
2090         [CTTE] The WebPageProxy's WebBackForwardList is never null so it should be stored in a Ref
2091         https://bugs.webkit.org/show_bug.cgi?id=125035
2092
2093         Reviewed by Dan Bernstein.
2094
2095         * UIProcess/API/C/WKPage.cpp:
2096         (WKPageGetBackForwardList):
2097         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
2098         (-[WKBrowsingContextController backForwardList]): Remove null check.
2099         * UIProcess/WebBackForwardList.cpp:
2100         (WebKit::WebBackForwardList::WebBackForwardList):
2101         (WebKit::WebBackForwardList::currentItem): Constify.
2102         (WebKit::WebBackForwardList::backItem): Constify.
2103         (WebKit::WebBackForwardList::forwardItem): Constify.
2104         (WebKit::WebBackForwardList::itemAtIndex): Constify.
2105         * UIProcess/WebBackForwardList.h:
2106         (WebKit::WebBackForwardList::create):
2107         * UIProcess/WebPageProxy.cpp:
2108         (WebKit::WebPageProxy::WebPageProxy):
2109         * UIProcess/WebPageProxy.h:
2110         (WebKit::WebPageProxy::backForwardList):
2111
2112 2013-11-30  Zan Dobersek  <zdobersek@igalia.com>
2113
2114         Unreviewed GTK build fix after r159889.
2115
2116         * UIProcess/gtk/WebPageProxyGtk.cpp:
2117         (WebKit::WebPageProxy::viewWidget): Adjust the static cast of the PageClient reference to PageClientImpl.
2118
2119 2013-11-30  Sam Weinig  <sam@webkit.org>
2120
2121         [CTTE] WebPageProxy should store the PageClient as a reference
2122         https://bugs.webkit.org/show_bug.cgi?id=125030
2123
2124         Reviewed by Dan Bernstein.
2125
2126         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
2127         (webkitWebViewBaseCreateWebPage):
2128         * UIProcess/API/ios/WKContentView.mm:
2129         (-[WKContentView _commonInitializationWithContextRef:pageGroupRef:relatedToPage:]):
2130         * UIProcess/API/mac/WKView.mm:
2131         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
2132         * UIProcess/CoordinatedGraphics/WebPageProxyCoordinatedGraphics.cpp:
2133         (WebKit::WebPageProxy::didFindZoomableArea):
2134         * UIProcess/CoordinatedGraphics/WebView.cpp:
2135         (WebKit::WebView::WebView):
2136         * UIProcess/WebContext.cpp:
2137         (WebKit::WebContext::createWebPage):
2138         * UIProcess/WebContext.h:
2139         * UIProcess/WebPageProxy.cpp:
2140         (WebKit::WebPageProxy::create):
2141         (WebKit::WebPageProxy::WebPageProxy):
2142         (WebKit::WebPageProxy::reattachToWebProcess):
2143         (WebKit::WebPageProxy::initializeWebPage):
2144         (WebKit::WebPageProxy::close):
2145         (WebKit::WebPageProxy::setViewNeedsDisplay):
2146         (WebKit::WebPageProxy::displayView):
2147         (WebKit::WebPageProxy::canScrollView):
2148         (WebKit::WebPageProxy::scrollView):
2149         (WebKit::WebPageProxy::updateViewState):
2150         (WebKit::WebPageProxy::viewStateDidChange):
2151         (WebKit::WebPageProxy::viewSize):
2152         (WebKit::WebPageProxy::startDrag):
2153         (WebKit::WebPageProxy::handleTouchEvent):
2154         (WebKit::WebPageProxy::preferencesDidChange):
2155         (WebKit::WebPageProxy::didCommitLoadForFrame):
2156         (WebKit::WebPageProxy::closePage):
2157         (WebKit::WebPageProxy::setWindowFrame):
2158         (WebKit::WebPageProxy::getWindowFrame):
2159         (WebKit::WebPageProxy::screenToWindow):
2160         (WebKit::WebPageProxy::windowToScreen):
2161         (WebKit::WebPageProxy::pageDidRequestScroll):
2162         (WebKit::WebPageProxy::pageTransitionViewportReady):
2163         (WebKit::WebPageProxy::didRenderFrame):
2164         (WebKit::WebPageProxy::didChangeViewportProperties):
2165         (WebKit::WebPageProxy::handleDownloadRequest):
2166         (WebKit::WebPageProxy::didChangeContentSize):
2167         (WebKit::WebPageProxy::showColorPicker):
2168         (WebKit::WebPageProxy::editorStateChanged):
2169         (WebKit::WebPageProxy::canUndoRedo):
2170         (WebKit::WebPageProxy::executeUndoRedo):
2171         (WebKit::WebPageProxy::clearAllEditCommands):
2172         (WebKit::WebPageProxy::setFindIndicator):
2173         (WebKit::WebPageProxy::showPopupMenu):
2174         (WebKit::WebPageProxy::internalShowContextMenu):
2175         (WebKit::WebPageProxy::registerEditCommand):
2176         (WebKit::WebPageProxy::setToolTip):
2177         (WebKit::WebPageProxy::setCursor):
2178         (WebKit::WebPageProxy::setCursorHiddenUntilMouseMoves):
2179         (WebKit::WebPageProxy::didReceiveEvent):
2180         (WebKit::WebPageProxy::processDidCrash):
2181         (WebKit::WebPageProxy::resetStateAfterProcessExited):
2182         (WebKit::WebPageProxy::initializeCreationParameters):
2183         (WebKit::WebPageProxy::enterAcceleratedCompositingMode):
2184         (WebKit::WebPageProxy::exitAcceleratedCompositingMode):
2185         (WebKit::WebPageProxy::updateAcceleratedCompositingMode):
2186         (WebKit::WebPageProxy::requestGeolocationPermissionForFrame):
2187         (WebKit::WebPageProxy::recommendedScrollbarStyleDidChange):
2188         (WebKit::WebPageProxy::updateBackingStoreDiscardableState):
2189         (WebKit::WebPageProxy::showCorrectionPanel):
2190         (WebKit::WebPageProxy::dismissCorrectionPanel):
2191         (WebKit::WebPageProxy::dismissCorrectionPanelSoon):
2192         (WebKit::WebPageProxy::recordAutocorrectionResponse):
2193         (WebKit::WebPageProxy::showDictationAlternativeUI):
2194         (WebKit::WebPageProxy::removeDictationAlternatives):
2195         (WebKit::WebPageProxy::dictationAlternatives):
2196         * UIProcess/WebPageProxy.h:
2197         * UIProcess/WebProcessProxy.cpp:
2198         (WebKit::WebProcessProxy::createWebPage):
2199         * UIProcess/WebProcessProxy.h:
2200         * UIProcess/gtk/WebPageProxyGtk.cpp:
2201         (WebKit::WebPageProxy::getEditorCommandsForKeyEvent):
2202         * UIProcess/ios/WebPageProxyIOS.mm:
2203         (WebKit::WebPageProxy::interpretKeyEvent):
2204         (WebKit::WebPageProxy::mainDocumentDidReceiveMobileDocType):
2205         (WebKit::WebPageProxy::didGetTapHighlightGeometries):
2206         (WebKit::WebPageProxy::didChangeViewportArguments):
2207         (WebKit::WebPageProxy::startAssistingNode):
2208         (WebKit::WebPageProxy::stopAssistingNode):
2209         (WebKit::WebPageProxy::setAcceleratedCompositingRootLayer):
2210         * UIProcess/mac/WebPageProxyMac.mm:
2211         (WebKit::WebPageProxy::windowAndViewFramesChanged):
2212         (WebKit::WebPageProxy::insertDictatedText):
2213         (WebKit::WebPageProxy::setDragImage):
2214         (WebKit::WebPageProxy::setPromisedData):
2215         (WebKit::WebPageProxy::interpretQueuedKeyEvent):
2216         (WebKit::WebPageProxy::didPerformDictionaryLookup):
2217         (WebKit::WebPageProxy::registerWebProcessAccessibilityToken):
2218         (WebKit::WebPageProxy::makeFirstResponder):
2219         (WebKit::WebPageProxy::colorSpace):
2220         (WebKit::WebPageProxy::pluginFocusOrWindowFocusChanged):
2221         (WebKit::WebPageProxy::setPluginComplexTextInputState):
2222         (WebKit::WebPageProxy::executeSavedCommandBySelector):
2223         (WebKit::WebPageProxy::wkView):
2224         (WebKit::WebPageProxy::intrinsicContentSizeDidChange):
2225         (WebKit::WebPageProxy::setAcceleratedCompositingRootLayer):
2226
2227 2013-11-30  Sam Weinig  <sam@webkit.org>
2228
2229         [RTTE] The PermissionRequestManagerProxies should use WebPageProxy references.
2230         https://bugs.webkit.org/show_bug.cgi?id=125029
2231
2232         Reviewed by Dan Bernstein.
2233
2234         * UIProcess/GeolocationPermissionRequestManagerProxy.cpp:
2235         (WebKit::GeolocationPermissionRequestManagerProxy::GeolocationPermissionRequestManagerProxy):
2236         (WebKit::GeolocationPermissionRequestManagerProxy::invalidateRequests):
2237         (WebKit::GeolocationPermissionRequestManagerProxy::didReceiveGeolocationPermissionDecision):
2238         * UIProcess/GeolocationPermissionRequestManagerProxy.h:
2239         * UIProcess/Notifications/NotificationPermissionRequestManagerProxy.cpp:
2240         (WebKit::NotificationPermissionRequestManagerProxy::NotificationPermissionRequestManagerProxy):
2241         (WebKit::NotificationPermissionRequestManagerProxy::invalidateRequests):
2242         (WebKit::NotificationPermissionRequestManagerProxy::didReceiveNotificationPermissionDecision):
2243         * UIProcess/Notifications/NotificationPermissionRequestManagerProxy.h:
2244         * UIProcess/WebPageProxy.cpp:
2245         (WebKit::WebPageProxy::WebPageProxy):
2246         Do some additional modernization while we are here.
2247
2248 2013-11-30  Dan Bernstein  <mitz@apple.com>
2249
2250         <rdar://problem/15560240> ResourceError encoding drops NSURL-valued keys in the NSError’s userInfo, including NSErrorFailingURLKey
2251         https://bugs.webkit.org/show_bug.cgi?id=125016
2252
2253         Reviewed by Anders “happy name day” Carlsson.
2254
2255         * Shared/mac/WebCoreArgumentCodersMac.mm:
2256         (CoreIPC::::encodePlatformData): Encode all string- and URL-valued keys as a dictionary.
2257         (CoreIPC::::decodePlatformData): Decode user info as a dictionary.
2258
2259 2013-11-29  Zan Dobersek  <zdobersek@igalia.com>
2260
2261         Unreviewed build fix for EFL and GTK WK2 builds.
2262
2263         * Scripts/generate-forwarding-headers.pl: Add Cocoa to the list of platform prefixes.
2264
2265 2013-11-29  Tibor Meszaros  <mtibor@inf.u-szeged.hu>
2266
2267         Fix build warnings in WebKit2
2268         https://bugs.webkit.org/show_bug.cgi?id=125012
2269
2270         Reviewed by Anders Carlsson.
2271
2272         fix unused parameter warnings in the following files:
2273
2274         * Platform/gtk/WorkQueueGtk.cpp:
2275         (WorkQueue::SocketEventSource::eventCallback):
2276         * Shared/API/c/WKDeprecatedFunctions.cpp:
2277         (WKArrayIsMutable):
2278         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2279         (WebKit::WebChromeClient::unavailablePluginButtonClicked):
2280         (WebKit::WebChromeClient::didAddHeaderLayer):
2281         (WebKit::WebChromeClient::didAddFooterLayer):
2282         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2283         (WebKit::WebFrameLoaderClient::createJavaAppletWidget):
2284
2285 2013-11-29  Sam Weinig  <sam@webkit.org>
2286
2287         [Cocoa] Add a little template magic to the inline API::Object storage to remove the need for all the reinterpret_casts
2288         https://bugs.webkit.org/show_bug.cgi?id=125024
2289
2290         Reviewed by Dan Bernstein.
2291
2292         Introduce API::ObjectStorage which wraps std::aligned_storage and adds some convenience functions
2293         to reinterpret the data as the corresponding type. Deploy it everywhere we were previously using 
2294         std::aligned_storage.
2295
2296         * Shared/Cocoa/WKNSArray.mm:
2297         * Shared/Cocoa/WKNSDictionary.mm:
2298         * Shared/Cocoa/WKObject.h:
2299         * UIProcess/API/Cocoa/WKBackForwardList.mm:
2300         * UIProcess/API/Cocoa/WKBackForwardListItem.mm:
2301         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
2302         * UIProcess/API/Cocoa/WKBrowsingContextGroup.mm:
2303         * UIProcess/API/Cocoa/WKNavigationData.mm:
2304         * UIProcess/API/Cocoa/WKProcessGroup.mm:
2305
2306 2013-11-29  Sam Weinig  <sam@webkit.org>
2307
2308         Fix crashing API tests.
2309
2310         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
2311         (-[WKBrowsingContextController dealloc]):
2312
2313 2013-11-29  Sam Weinig  <sam@webkit.org>
2314
2315         Fix some style boo-boos.
2316
2317         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
2318         (-[WKBrowsingContextController loadDelegate]):
2319         (-[WKBrowsingContextController setLoadDelegate:]):
2320         (-[WKBrowsingContextController policyDelegate]):
2321         (-[WKBrowsingContextController setPolicyDelegate:]):
2322
2323 2013-11-29  Sam Weinig  <sam@webkit.org>
2324
2325         Fix the iOS build.
2326
2327         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
2328         (-[WKBrowsingContextController loadDelegate]):
2329         (-[WKBrowsingContextController policyDelegate]):
2330         (-[WKBrowsingContextController setPolicyDelegate:]):
2331
2332 2013-11-29  Sam Weinig  <sam@webkit.org>
2333
2334         [Cocoa] Make WKBrowsingContextController work with WKObject wrapping
2335         https://bugs.webkit.org/show_bug.cgi?id=125022
2336
2337         Reviewed by Dan Bernstein.
2338
2339         * Shared/Cocoa/APIObject.mm:
2340         (API::Object::newObject):
2341         
2342         * Shared/mac/ObjCObjectGraphCoders.mm:
2343         Add support for WKProcessGroup.
2344
2345         (WebKit::WebContextObjCObjectGraphDecoderImpl::decode):
2346         Replace call to _browsingContextControllerForPageRef: with wrapper.
2347
2348         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
2349         Convert from wrapping the C-SPI type to storing the bits of the wrapped object inline.
2350
2351         (-[WKBrowsingContextController dealloc]):
2352         Add explicit destructor call.
2353
2354         (-[WKBrowsingContextController setLoadDelegate:]):
2355         (-[WKBrowsingContextController setPolicyDelegate:]):
2356         Lazily set up the load and policy clients only once a delegate has been set to allow
2357         continued use of the C-SPI clients for WebKitTestRunner.
2358
2359         (-[WKBrowsingContextController _finishInitialization]):
2360         Move remaining work that was done in the initialize (setting up the observer) here,
2361         and have the WebPageProxy call it.
2362
2363         * UIProcess/API/Cocoa/WKBrowsingContextControllerInternal.h:
2364         (WebKit::wrapper):
2365         Add wrapper() helper and declare conformance to the WKObject protocol. Remove no longer used
2366         _initWithPageRef: and _browsingContextControllerForPageRef: helpers.
2367
2368         * UIProcess/API/Cocoa/WKProcessGroup.mm:
2369         (didNavigateWithNavigationData):
2370         (didPerformClientRedirect):
2371         (didPerformServerRedirect):
2372         (didUpdateHistoryTitle):
2373         Switch to using wrapper().
2374
2375         * UIProcess/API/ios/WKContentView.mm:
2376         * UIProcess/API/mac/WKView.mm:
2377         Stop caching the WKBrowsingContextController, as it no long makes sense since it is the same object
2378         as the WebPageProxy.
2379
2380         * UIProcess/mac/WebPageProxyMac.mm:
2381         (WebKit::WebPageProxy::platformInitialize):
2382         Inform the wrapper that it is safe to finish initialization.
2383
2384 2013-11-29  Dan Bernstein  <mitz@apple.com>
2385
2386         [Cocoa] Add a way to recover from load errors
2387         https://bugs.webkit.org/show_bug.cgi?id=125020
2388
2389         Reviewed by Sam Weinig.
2390
2391         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
2392         (createErrorWithRecoveryAttempter): Added this helper function. It creates an NSError from
2393         the given error, adding two keys to the user info dictionary: the context controller under
2394         the recovery attempter key, and the frame under a private key.
2395         (didFailProvisionalLoadWithErrorForFrame): Changed to use createErrorWithRecoveryAttempter.
2396         (didFailLoadWithErrorForFrame): Ditto.
2397         (-[WKBrowsingContextController attemptRecoveryFromError:]): Implemented this
2398         WKErrorRecoveryAttempting protocol method by loading the failing URL from the error into the
2399         frame from the error.
2400
2401         * UIProcess/API/Cocoa/WKErrorRecoveryAttempting.h: Added. Defines a protocol for attempting
2402         recovery from errors and declares the error user info dictionary key under which an object
2403         conforming to this protocol may be stored.
2404         * UIProcess/API/Cocoa/WKErrorRecoveryAttempting.m: Added. Defines
2405         WKRecoveryAttempterErrorKey.
2406
2407         * UIProcess/WebFrameProxy.cpp:
2408         (WebKit::WebFrameProxy::loadURL): Added. Sends the LoadURLInFrame message to the page.
2409         * UIProcess/WebFrameProxy.h:
2410
2411         * WebKit2.xcodeproj/project.pbxproj: Added references to new files.
2412
2413         * WebProcess/WebPage/WebPage.cpp:
2414         (WebKit::WebPage::loadURLInFrame): Added. Loads the URL in the given frame.
2415         * WebProcess/WebPage/WebPage.h:
2416         * WebProcess/WebPage/WebPage.messages.in: Added LoadURLInFrame.
2417
2418 2013-11-29  Dan Bernstein  <mitz@apple.com>
2419
2420         [Cocoa] Expose loadAlternateHTMLString via the API
2421         https://bugs.webkit.org/show_bug.cgi?id=125019
2422
2423         Reviewed by Sam Weinig.
2424
2425         * UIProcess/API/Cocoa/WKBrowsingContextController.h: Declared new method.
2426         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
2427         (-[WKBrowsingContextController loadAlternateHTMLString:baseURL:forUnreachableURL:]): Added.
2428         Calls WebPageProxy::loadAlternateHTMLString.
2429
2430 2013-11-29  Sam Weinig  <sam@webkit.org>
2431
2432         Move API files shared between Mac and iOS to the Cocoa directory
2433         https://bugs.webkit.org/show_bug.cgi?id=125017
2434
2435         Reviewed by Dan Bernstein.
2436
2437         * UIProcess/API/Cocoa/WKBrowsingContextController.h: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.h.
2438         * UIProcess/API/Cocoa/WKBrowsingContextController.mm: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.mm.
2439         * UIProcess/API/Cocoa/WKBrowsingContextControllerInternal.h: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextControllerInternal.h.
2440         * UIProcess/API/Cocoa/WKBrowsingContextControllerPrivate.h: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextControllerPrivate.h.
2441         * UIProcess/API/Cocoa/WKBrowsingContextGroup.h: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextGroup.h.
2442         * UIProcess/API/Cocoa/WKBrowsingContextGroup.mm: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextGroup.mm.
2443         * UIProcess/API/Cocoa/WKBrowsingContextGroupInternal.h: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextGroupInternal.h.
2444         * UIProcess/API/Cocoa/WKBrowsingContextGroupPrivate.h: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextGroupPrivate.h.
2445         * UIProcess/API/Cocoa/WKBrowsingContextLoadDelegate.h: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextLoadDelegate.h.
2446         * UIProcess/API/Cocoa/WKBrowsingContextPolicyDelegate.h: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextPolicyDelegate.h.
2447         * UIProcess/API/Cocoa/WKConnection.h: Copied from Source/WebKit2/UIProcess/API/mac/WKConnection.h.
2448         * UIProcess/API/Cocoa/WKConnection.mm: Copied from Source/WebKit2/UIProcess/API/mac/WKConnection.mm.
2449         * UIProcess/API/Cocoa/WKConnectionInternal.h: Copied from Source/WebKit2/UIProcess/API/mac/WKConnectionInternal.h.
2450         * UIProcess/API/Cocoa/WKProcessGroup.h: Copied from Source/WebKit2/UIProcess/API/mac/WKProcessGroup.h.
2451         * UIProcess/API/Cocoa/WKProcessGroup.mm: Copied from Source/WebKit2/UIProcess/API/mac/WKProcessGroup.mm.
2452         * UIProcess/API/Cocoa/WKProcessGroupInternal.h: Copied from Source/WebKit2/UIProcess/API/mac/WKProcessGroupInternal.h.
2453         * UIProcess/API/Cocoa/WKProcessGroupPrivate.h: Copied from Source/WebKit2/UIProcess/API/mac/WKProcessGroupPrivate.h.
2454         * UIProcess/API/Cocoa/WKTypeRefWrapper.h: Copied from Source/WebKit2/UIProcess/API/mac/WKTypeRefWrapper.h.
2455         * UIProcess/API/Cocoa/WKTypeRefWrapper.mm: Copied from Source/WebKit2/UIProcess/API/mac/WKTypeRefWrapper.mm.
2456         * UIProcess/API/Cocoa/WKView.h: Copied from Source/WebKit2/UIProcess/API/mac/WKView.h.
2457         * UIProcess/API/Cocoa/WKViewPrivate.h: Copied from Source/WebKit2/UIProcess/API/mac/WKViewPrivate.h.
2458         * UIProcess/API/Cocoa/WebKit2.h: Copied from Source/WebKit2/UIProcess/API/mac/WebKit2.h.
2459         * UIProcess/API/mac/WKBrowsingContextController.h: Removed.
2460         * UIProcess/API/mac/WKBrowsingContextController.mm: Removed.
2461         * UIProcess/API/mac/WKBrowsingContextControllerInternal.h: Removed.
2462         * UIProcess/API/mac/WKBrowsingContextControllerPrivate.h: Removed.
2463         * UIProcess/API/mac/WKBrowsingContextGroup.h: Removed.
2464         * UIProcess/API/mac/WKBrowsingContextGroup.mm: Removed.
2465         * UIProcess/API/mac/WKBrowsingContextGroupInternal.h: Removed.
2466         * UIProcess/API/mac/WKBrowsingContextGroupPrivate.h: Removed.
2467         * UIProcess/API/mac/WKBrowsingContextLoadDelegate.h: Removed.
2468         * UIProcess/API/mac/WKBrowsingContextPolicyDelegate.h: Removed.
2469         * UIProcess/API/mac/WKConnection.h: Removed.
2470         * UIProcess/API/mac/WKConnection.mm: Removed.
2471         * UIProcess/API/mac/WKConnectionInternal.h: Removed.
2472         * UIProcess/API/mac/WKProcessGroup.h: Removed.
2473         * UIProcess/API/mac/WKProcessGroup.mm: Removed.
2474         * UIProcess/API/mac/WKProcessGroupInternal.h: Removed.
2475         * UIProcess/API/mac/WKProcessGroupPrivate.h: Removed.
2476         * UIProcess/API/mac/WKTypeRefWrapper.h: Removed.
2477         * UIProcess/API/mac/WKTypeRefWrapper.mm: Removed.
2478         * UIProcess/API/mac/WKView.h: Removed.
2479         * UIProcess/API/mac/WKViewPrivate.h: Removed.
2480         * UIProcess/API/mac/WebKit2.h: Removed.
2481         * WebKit2.xcodeproj/project.pbxproj:
2482
2483 2013-11-29  Hunseop Jeong  <hs85.jeong@samsung.com>
2484
2485         [EFL] viewport must be same with the size of webview
2486         https://bugs.webkit.org/show_bug.cgi?id=124965
2487
2488         Reviewed by Gyuyoung Kim.
2489
2490         Currently, size of the viewport is larger than size of webview.
2491         Changed the size of viewport with size of webview, because viewport is translated by wrong calculation.
2492
2493         * UIProcess/API/efl/EwkView.cpp:
2494         (EwkView::displayTimerFired): Changed to use the (0,0). 
2495         (EwkView::createGLSurface): Modified to use the viewSize instead of the boundsEnd.
2496         (EwkView::handleEvasObjectCalculate): Removed the WKViewSetUserViewportTranslation.
2497
2498 2013-11-28  Eunmi Lee  <eunmi15.lee@samsung.com>
2499
2500         [CoordinatedGraphics][WK2] Correct wrong usage of m_contentPosition variable in the WebView.
2501         https://bugs.webkit.org/show_bug.cgi?id=118548
2502
2503         Reviewed by Noam Rosenthal.
2504
2505         CoordinatedGraphics uses its own scaling logic - contents scaling - and
2506         WebView of CoordinatedGraphics maintains contents position by scaling
2507         with contents scaling factor.
2508         However transformToScene() and updateViewportSize() of WebView regard
2509         the contents position as a non-scaled value, so it should be fixed.
2510
2511         * UIProcess/CoordinatedGraphics/WebView.cpp:
2512         (WebKit::WebView::transformToScene):
2513         (WebKit::WebView::updateViewportSize):
2514
2515 2013-11-28  Ryuan Choi  <ryuan.choi@samsung.com>
2516
2517         [EFL] PageViewportController does not need to be unique_ptr instance
2518         https://bugs.webkit.org/show_bug.cgi?id=124993
2519
2520         Reviewed by Gyuyoung Kim.
2521
2522         PageViewportController and PageViewportControllerEfl have same life cycle
2523         with EwkView. So, we don't need to make them as unique_ptr instance.
2524
2525         * UIProcess/API/efl/EwkView.cpp:
2526         (EwkView::EwkView):
2527         (EwkView::handleEvasObjectCalculate):
2528         (EwkView::scrollBy):
2529         * UIProcess/API/efl/EwkView.h:
2530         (EwkView::pageViewportController):
2531         * UIProcess/efl/PageLoadClientEfl.cpp:
2532         (WebKit::PageLoadClientEfl::didCommitLoadForFrame):
2533         * UIProcess/efl/ViewClientEfl.cpp:
2534         (WebKit::ViewClientEfl::didChangeContentsSize):
2535         (WebKit::ViewClientEfl::didChangeContentsPosition):
2536         (WebKit::ViewClientEfl::didRenderFrame):
2537         (WebKit::ViewClientEfl::didCompletePageTransition):
2538         (WebKit::ViewClientEfl::didChangeViewportAttributes):
2539
2540 2013-11-28  Nick Diego Yamane  <nick.yamane@openbossa.org>
2541
2542         [GTK] Build fix after r159859
2543         https://bugs.webkit.org/show_bug.cgi?id=124992
2544
2545         Reviewed by Gyuyoung Kim.
2546
2547         * UIProcess/API/gtk/PageClientImpl.cpp:
2548         (WebKit::PageClientImpl::didCommitLoadForMainFrame): Added.
2549         * UIProcess/API/gtk/PageClientImpl.h:
2550
2551 2013-11-28  Jinwoo Song  <jinwoo7.song@samsung.com>
2552
2553         [EFL] Build fix after r159859
2554         https://bugs.webkit.org/show_bug.cgi?id=124991
2555
2556         Reviewed by Gyuyoung Kim.
2557
2558         Redefined newly added pure virtual function in PageClient class after r159859.
2559
2560         * UIProcess/CoordinatedGraphics/WebView.cpp:
2561         (WebKit::WebView::didCommitLoadForMainFrame):
2562         * UIProcess/CoordinatedGraphics/WebView.h:
2563
2564 2013-11-27  Sam Weinig  <sam@webkit.org>
2565
2566         Perform some spring cleaning to WKContentView and WKView
2567         https://bugs.webkit.org/show_bug.cgi?id=124961
2568
2569         Reviewed by Dan Bernstein.
2570
2571         - Store the PageClientImpl in a std::unique_ptr.
2572         - Remove the WKBrowsingContextController internal load delegate. Replace its use with
2573           a new PageClient function, didCommitLoadForMainFrame.
2574         - Fix typo in the WKContentViewDelegate. contentViewdidCommitLoadForMainFrame -> contentViewDidCommitLoadForMainFrame.
2575         - Add initializers for WKContentView and WKView that take WKContextRefs and WKPageGroupRefs to match the Mac WKView.
2576           These are needed for WebKitTestRunner.
2577         - Require a WKProcessGroup (or WKContextRef) and a WKBrowsingContextGroup (or WKPageGroupRef).
2578         - Stop caching the WKProcessGroup and WKBrowsingContextGroup on the WKContentView.
2579         - Remove incorrect implementations of initWithCoder.
2580         - Make WKContentView lazily create its WKBrowsingContextController wrapper.
2581
2582         * UIProcess/API/ios/PageClientImplIOS.h:
2583         * UIProcess/API/ios/PageClientImplIOS.mm:
2584         (WebKit::PageClientImpl::PageClientImpl):
2585         (WebKit::PageClientImpl::didCommitLoadForMainFrame):
2586         (WebKit::PageClientImpl::mainDocumentDidReceiveMobileDocType):
2587         * UIProcess/API/ios/WKContentView.h:
2588         * UIProcess/API/ios/WKContentView.mm:
2589         (-[WKContentView initWithCoder:]):
2590         (-[WKContentView initWithFrame:processGroup:browsingContextGroup:]):
2591         (-[WKContentView browsingContextController]):
2592         (-[WKContentView _commonInitializationWithContextRef:pageGroupRef:relatedToPage:]):
2593         (-[WKContentView _didCommitLoadForMainFrame]):
2594         (-[WKContentView _didReceiveMobileDocTypeForMainFrame]):
2595         (-[WKContentView _didChangeViewportArguments:WebCore::]):
2596         (-[WKContentView _decidePolicyForGeolocationRequestFromOrigin:frame:request:]):
2597         (-[WKContentView _pageRef]):
2598         (-[WKContentView initWithFrame:contextRef:pageGroupRef:]):
2599         (-[WKContentView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
2600         * UIProcess/API/ios/WKContentViewInternal.h:
2601         * UIProcess/API/ios/WKContentViewPrivate.h: Added.
2602         * UIProcess/API/ios/WKView.mm:
2603         (-[WKView initWithFrame:processGroup:browsingContextGroup:]):
2604         (-[WKView initWithFrame:processGroup:browsingContextGroup:relatedToView:]):
2605         (-[WKView contentViewDidCommitLoadForMainFrame:]):
2606         (-[WKView _commonInitializationWithContextRef:pageGroupRef:relatedToPage:]):
2607         (-[WKView pageRef]):
2608         (-[WKView initWithFrame:contextRef:pageGroupRef:]):
2609         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
2610         * UIProcess/API/mac/PageClientImpl.h:
2611         * UIProcess/API/mac/PageClientImpl.mm:
2612         (WebKit::PageClientImpl::didCommitLoadForMainFrame):
2613         * UIProcess/API/mac/WKBrowsingContextController.mm:
2614         (didCommitLoadForFrame):
2615         * UIProcess/API/mac/WKBrowsingContextControllerInternal.h:
2616         * UIProcess/API/mac/WKViewPrivate.h:
2617         * UIProcess/PageClient.h:
2618         * UIProcess/WebPageProxy.cpp:
2619         (WebKit::WebPageProxy::didCommitLoadForFrame):
2620
2621 2013-11-28  Éva Balázsfalvi  <balazsfalvi.eva@stud.u-szeged.hu>
2622
2623         Buildfix after r159824 for GCC 4.6
2624         https://bugs.webkit.org/show_bug.cgi?id=124968
2625
2626         Reviewed by Csaba Osztrogonác.
2627
2628         Added explicit "friend class", because GCC 4.6 doesn't support extended friend declaration (c++11)
2629
2630         * Shared/APIObject.h:
2631
2632 2013-11-28  Antti Koivisto  <antti@apple.com>
2633
2634         Remove feature: CSS variables
2635         https://bugs.webkit.org/show_bug.cgi?id=114119
2636
2637         Reviewed by Andreas Kling.
2638
2639         * Configurations/FeatureDefines.xcconfig:
2640
2641 2013-11-27  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
2642
2643         [GTK] Support custom types for drag and drop data
2644         https://bugs.webkit.org/show_bug.cgi?id=124659
2645
2646         Reviewed by Martin Robinson.
2647
2648         * Shared/gtk/ArgumentCodersGtk.cpp:
2649         (CoreIPC::encodeDataObject): encode the unknown types data.
2650         (CoreIPC::decodeDataObject): decode the unknown types data.
2651
2652 2013-11-27  Sam Weinig  <sam@webkit.org>
2653
2654         Give the PageClient a chance to handle geolocation permission requests if the UIClient doesn't handle it
2655         https://bugs.webkit.org/show_bug.cgi?id=124955
2656
2657         Reviewed by Dan Bernstein.
2658
2659         Use the new PageClient function to remove the need for WKContentView to take over the WKPageUIClient.
2660
2661         * UIProcess/API/ios/PageClientImplIOS.h:
2662         * UIProcess/API/ios/PageClientImplIOS.mm:
2663         (WebKit::PageClientImpl::decidePolicyForGeolocationPermissionRequest):
2664         * UIProcess/API/ios/WKContentView.mm:
2665         (-[WKContentView _decidePolicyForGeolocationRequestFromOrigin:frame:request:]):
2666         (-[WKContentView _commonInitWithProcessGroup:browsingContextGroup:]):
2667         * UIProcess/API/ios/WKContentViewInternal.h:
2668         * UIProcess/PageClient.h:
2669         (WebKit::PageClient::decidePolicyForGeolocationPermissionRequest):
2670         * UIProcess/WebPageProxy.cpp:
2671         (WebKit::WebPageProxy::requestGeolocationPermissionForFrame):
2672
2673 2013-11-27  Sam Weinig  <sam@webkit.org>
2674
2675         Fix the iOS build.
2676
2677         * UIProcess/API/ios/WKGeolocationProviderIOS.mm:
2678         * UIProcess/API/ios/WKGeolocationProviderIOSObjCSecurityOrigin.mm:
2679
2680 2013-11-27  Sam Weinig  <sam@webkit.org>
2681
2682         Add accessors for the WKProcessGroup and WKBrowsingContextGroup on the WKBrowsingContextController
2683         https://bugs.webkit.org/show_bug.cgi?id=124953
2684
2685         Reviewed by Dan Bernstein.
2686
2687         * UIProcess/API/mac/WKBrowsingContextController.h:
2688         * UIProcess/API/mac/WKBrowsingContextController.mm:
2689         (-[WKBrowsingContextController processGroup]):
2690         (-[WKBrowsingContextController browsingContextGroup]):
2691         Add accessors.
2692
2693 2013-11-27  Sam Weinig  <sam@webkit.org>
2694
2695         Make WKProcessGroup work with WKObject wrapping
2696         https://bugs.webkit.org/show_bug.cgi?id=124952
2697
2698         Reviewed by Dan Bernstein.
2699
2700         * Shared/Cocoa/APIObject.mm:
2701         (API::Object::newObject):
2702         Add support for WKProcessGroup.
2703
2704         * UIProcess/API/mac/WKProcessGroup.mm:
2705         (-[WKProcessGroup initWithInjectedBundleURL:]):
2706         (-[WKProcessGroup dealloc]):
2707         (-[WKProcessGroup API::]):
2708         (-[WKProcessGroup _contextRef]):
2709         (-[WKProcessGroup _geolocationProvider]):
2710         Convert from wrapping the C-SPI type to storing the bits of the wrapped object inline
2711
2712         * UIProcess/API/mac/WKProcessGroupInternal.h: Added.
2713         (WebKit::wrapper):
2714         Add wrapper() helper and declare conformance to the WKObject protocol.
2715
2716         * UIProcess/WebContext.cpp:
2717         (WebKit::WebContext::create):
2718         (WebKit::WebContext::WebContext):
2719         * UIProcess/WebContext.h:
2720         Make the WebContext constructor public (for use with Object::constructInWrapper) and remove unused ProcessModel parameter.
2721
2722         * WebKit2.xcodeproj/project.pbxproj:
2723         Add new file.
2724
2725 2013-11-27  Sam Weinig  <sam@webkit.org>
2726
2727         Make WKBrowsingContextGroup work with WKObject wrapping
2728         https://bugs.webkit.org/show_bug.cgi?id=124948
2729
2730         Reviewed by Dan Bernstein.
2731
2732         - Adds mechanism to use the inline data wrapping mechanism when the Objective-C wrapper is created
2733           by the caller (rather than by Object::newObject).
2734         - Adopts the mechanism for WKBrowsingContextGroup.
2735
2736         * Shared/APIObject.h:
2737         (API::Object::constructInWrapper):
2738         Add a helper which does a forwarding placement-new into the API::Object of the passed in wrapper, after which it sets up m_wrapper.
2739
2740         (API::TypedObject::operator new):
2741         Add a operator new to for placement-new. Also make TypedObject friends with Object so that constructInWrapper can call this.
2742
2743         * Shared/Cocoa/APIObject.mm:
2744         (API::Object::newObject):
2745         Add support for WKBrowsingContextGroup.
2746
2747         * UIProcess/API/mac/WKBrowsingContextGroup.mm:
2748         (-[WKBrowsingContextGroup API::]):
2749         (-[WKBrowsingContextGroup dealloc]):
2750         (-[WKBrowsingContextGroup initWithIdentifier:]):
2751         (-[WKBrowsingContextGroup allowsJavaScript]):
2752         (-[WKBrowsingContextGroup setAllowsJavaScript:]):
2753         (-[WKBrowsingContextGroup allowsJavaScriptMarkup]):
2754         (-[WKBrowsingContextGroup setAllowsJavaScriptMarkup:]):
2755         (-[WKBrowsingContextGroup allowsPlugIns]):
2756         (-[WKBrowsingContextGroup setAllowsPlugIns:]):
2757         (-[WKBrowsingContextGroup addUserStyleSheet:baseURL:whitelistedURLPatterns:blacklistedURLPatterns:mainFrameOnly:]):
2758         (-[WKBrowsingContextGroup removeAllUserStyleSheets]):
2759         (-[WKBrowsingContextGroup addUserScript:baseURL:whitelistedURLPatterns:blacklistedURLPatterns:injectionTime:mainFrameOnly:]):
2760         (-[WKBrowsingContextGroup removeAllUserScripts]):
2761         (-[WKBrowsingContextGroup _pageGroupRef]):
2762         Convert from wrapping the C-SPI type to storing the bits of the wrapped object inline (modeled on WKBackForwardList).
2763
2764         * UIProcess/API/mac/WKBrowsingContextGroupInternal.h: Added.
2765         (WebKit::wrapper):
2766         Add wrapper() helper and declare conformance to the WKObject protocol.
2767
2768         * UIProcess/WebPageGroup.cpp:
2769         (WebKit::WebPageGroup::create):
2770         (WebKit::WebPageGroup::WebPageGroup):
2771         * UIProcess/WebPageGroup.h:
2772         Make the WebPageGroup constructor public (for use with Object::constructInWrapper) and move being set in the webPageGroupMap()
2773         to the constructor.
2774
2775         * WebKit2.xcodeproj/project.pbxproj:
2776         Add new file.
2777
2778 2013-11-27  Nick Diego Yamane  <nick.yamane@openbossa.org>
2779
2780         Remove Qt-specific .qrc files
2781         https://bugs.webkit.org/show_bug.cgi?id=124944
2782
2783         Reviewed by Andreas Kling.
2784
2785         * WebKit2.qrc: Removed.
2786
2787 2013-11-27  Zan Dobersek  <zdobersek@igalia.com>
2788
2789         [GTK] Programs/WebKit2APITests/TestWebKitSettings unit test is failing
2790         https://bugs.webkit.org/show_bug.cgi?id=124924
2791
2792         Reviewed by Carlos Garcia Campos.
2793
2794         'Chrome'/'Chromium' substrings were removed from the user agent string in r159572, meaning the unit
2795         test shouldn't check for those two substrings anymore. Instead, 'Safari' (as until now) and 'AppleWebKit'
2796         substrings should be checked for.
2797
2798         * UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
2799         (testWebKitSettingsUserAgent):
2800
2801 2013-11-26  Nick Diego Yamane  <nick.yamane@openbossa.org>
2802
2803         [MediaStream API] HTMLMediaElement should be able to use MediaStream as source
2804         https://bugs.webkit.org/show_bug.cgi?id=121943
2805
2806         Reviewed by Eric Carlson.
2807
2808         Add mediastream module and platform to cmake include directories.
2809
2810         * CMakeLists.txt:
2811
2812 2013-11-26  Dan Bernstein  <mitz@apple.com>
2813
2814         Some WebKit2 headers are not self-contained
2815         https://bugs.webkit.org/show_bug.cgi?id=124884
2816
2817         Reviewed by Anders Carlsson.
2818
2819         * Shared/API/Cocoa/WKRemoteObjectInterface.h: Added import.
2820         * Shared/API/Cocoa/WKRemoteObjectRegistry.h: Ditto.
2821         * Shared/API/c/WKContextMenuItemTypes.h: Added include.
2822         * Shared/API/c/WKFindOptions.h: Ditto.
2823         * Shared/API/c/WKMutableArray.h: Ditto.
2824         * Shared/API/c/WKPageLoadTypes.h: Ditto.
2825         * Shared/API/c/WKPageVisibilityTypes.h: Ditto.
2826
2827         * Shared/API/c/WKPluginInformation.cpp:
2828         (WKPluginInformationBundleIdentifierKey): Made this API function always be defined. When
2829         the Netscape plug-in API is not enabled, it returns 0.
2830         (WKPluginInformationBundleVersionKey): Ditto.
2831         (WKPluginInformationBundleShortVersionKey): Ditto.
2832         (WKPluginInformationPathKey): Ditto.
2833         (WKPluginInformationDisplayNameKey): Ditto.
2834         (WKPluginInformationDefaultLoadPolicyKey): Ditto.
2835         (WKPluginInformationUpdatePastLastBlockedVersionIsKnownAvailableKey): Ditto.
2836         (WKPluginInformationHasSandboxProfileKey): Ditto.
2837         (WKPluginInformationFrameURLKey): Ditto.
2838         (WKPluginInformationMIMETypeKey): Ditto.
2839         (WKPluginInformationPageURLKey): Ditto.
2840         (WKPluginInformationPluginspageAttributeURLKey): Ditto.
2841         (WKPluginInformationPluginURLKey): Ditto.
2842         (WKPlugInInformationReplacementObscuredKey): Ditto.
2843
2844         * Shared/API/c/WKString.h: Added include.
2845         * UIProcess/API/C/WKCredentialTypes.h: Ditto.
2846         * UIProcess/API/C/WKPageContextMenuClient.h: Ditto.
2847         * UIProcess/API/C/WKPageLoaderClient.h: Added includes.
2848         * UIProcess/API/C/WKPagePolicyClient.h: Ditto.
2849         * UIProcess/API/C/WKPageUIClient.h: Ditto.
2850
2851         * UIProcess/API/C/WKPluginSiteDataManager.cpp:
2852         (WKPluginSiteDataManagerGetTypeID): Fixed the !ENABLE(NETSCAPE_PLUGIN_API) build.
2853
2854         * UIProcess/API/C/mac/WKContextPrivateMac.h: Removed use of ENABLE() from this private
2855         header.
2856         * UIProcess/API/C/mac/WKContextPrivateMac.mm:
2857         (WKContextCopyPlugInInfoForBundleIdentifier): Made this API function always be defined.
2858         When the Netscape plug-in API is not enabled, it returns 0.
2859         (WKContextGetInfoForInstalledPlugIns): Made this API function always be defined.
2860
2861         * UIProcess/API/C/mac/WKInspectorPrivateMac.h: Added imports.
2862         * UIProcess/API/C/mac/WKPagePrivateMac.h: Added include.
2863         * UIProcess/API/Cocoa/WKBackForwardListItem.h: Added import.
2864         * UIProcess/API/Cocoa/WKNavigationData.h: Ditto.
2865         * UIProcess/API/cpp/WKRetainPtr.h: Replaced use of WARN_UNUSED_RETURN in this private header
2866         with an equivalent macro defined in the header.
2867
2868         * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h: Added include.
2869         * WebProcess/InjectedBundle/API/c/WKBundleInspector.cpp:
2870         (WKBundleInspectorGetTypeID): Made this API function always be defined. When the Inspector
2871         is not enabled, it returns the Null type.
2872         (WKBundleInspectorShow): Made this API function always be defined.
2873         (WKBundleInspectorClose): Ditto.
2874         (WKBundleInspectorEvaluateScriptForTest): Ditto.
2875         (WKBundleInspectorSetPageProfilingEnabled): Ditto.
2876         * WebProcess/InjectedBundle/API/c/WKBundleInspector.h: Removed use of ENABLE() from this
2877         private header.
2878
2879         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h: Added includes.
2880         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: Added include.
2881
2882         * WebProcess/Plugins/Netscape/mac/WKNPAPIPlugInContainer.mm:
2883         (-[WKNPAPIPlugInContainer openPlugInPreferencePane]): Fixed the !ENABLE(NETSCAPE_PLUGIN_API)
2884         build.
2885
2886         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2887         (WebKit::WebFrameLoaderClient::createJavaAppletWidget): Ditto.
2888
2889         * WebProcess/WebPage/mac/WebInspectorMac.mm: Fixed the !ENABLE(INSPECTOR) build.
2890
2891 2013-11-25  Dan Bernstein  <mitz@apple.com>
2892
2893         [Cocoa] Use class extensions for IPI
2894         https://bugs.webkit.org/show_bug.cgi?id=124870
2895
2896         Reviewed by Sam Weinig.
2897
2898         * UIProcess/API/mac/WKBrowsingContextController.mm: Reordered methods so that the Private
2899         cateogry isn’t stuck between the API methods and the internal methods.
2900         (-[WKBrowsingContextController setPaginationMode:]):
2901         (-[WKBrowsingContextController paginationMode]):
2902         (-[WKBrowsingContextController setPaginationBehavesLikeColumns:]):
2903         (-[WKBrowsingContextController paginationBehavesLikeColumns]):
2904         (-[WKBrowsingContextController setPageLength:]):
2905         (-[WKBrowsingContextController pageLength]):
2906         (-[WKBrowsingContextController setGapBetweenPages:]):
2907         (-[WKBrowsingContextController gapBetweenPages]):
2908         (-[WKBrowsingContextController pageCount]):
2909         (-[WKBrowsingContextController handle]):
2910         * UIProcess/API/mac/WKBrowsingContextControllerInternal.h: Changed Internal category into
2911         a class extension.
2912
2913         * UIProcess/API/mac/WKConnection.mm:
2914         * UIProcess/API/mac/WKConnectionInternal.h: Changed Internal category into a class
2915         extension.
2916
2917         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm:
2918         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInInternal.h: Ditto.
2919
2920 2013-11-25  Dan Bernstein  <mitz@apple.com>
2921
2922         Fixed the iOS build.
2923
2924         * UIProcess/API/mac/WKBrowsingContextController.mm:
2925         (-[WKBrowsingContextController loadDelegateInternal]):
2926         (-[WKBrowsingContextController setLoadDelegateInternal:]):
2927
2928 2013-11-25  Dan Bernstein  <mitz@apple.com>
2929
2930         [Cocoa] Remove some indirection that was only necessary for supporting the legacy Objective-C runtime
2931         https://bugs.webkit.org/show_bug.cgi?id=123065
2932
2933         Reviewed by Sam Weinig.
2934
2935         * UIProcess/API/mac/WKBrowsingContextController.h: Removed _data ivar and
2936         WKBrowsingContextControllerData class declaration.
2937         * UIProcess/API/mac/WKBrowsingContextController.mm:
2938         (-[WKBrowsingContextController dealloc]): Removed
2939         WKBrowsingContextControllerData class and moved ivars directly into
2940         WKBrowsingContextController, declaring them in the @implementation. Removed ivar and
2941         accessors for the delegate properties, letting the compiler synthesize them.
2942         (-[WKBrowsingContextController _pageRef]): Removed indirection via _data.
2943         (-[WKBrowsingContextController loadRequest:userData:]): Removed indirection via -_pageRef.
2944         (-[WKBrowsingContextController loadFileURL:restrictToFilesWithin:userData:]): Ditto.
2945         (-[WKBrowsingContextController loadHTMLString:baseURL:userData:]): Ditto.
2946         (-[WKBrowsingContextController loadData:MIMEType:textEncodingName:baseURL:userData:]): Ditto.
2947         (-[WKBrowsingContextController stopLoading]): Ditto.
2948         (-[WKBrowsingContextController reload]): Ditto.
2949         (-[WKBrowsingContextController reloadFromOrigin]): Ditto.
2950         (-[WKBrowsingContextController goForward]): Ditto.
2951         (-[WKBrowsingContextController canGoForward]): Ditto.
2952         (-[WKBrowsingContextController goBack]): Ditto.
2953         (-[WKBrowsingContextController canGoBack]): Ditto.
2954         (-[WKBrowsingContextController goToBackForwardListItem:]): Ditto.
2955         (-[WKBrowsingContextController backForwardList]): Ditto.
2956         (-[WKBrowsingContextController activeURL]): Ditto.
2957         (-[WKBrowsingContextController provisionalURL]): Ditto.
2958         (-[WKBrowsingContextController committedURL]): Ditto.
2959         (-[WKBrowsingContextController unreachableURL]): Removed idirection via _data.
2960         (-[WKBrowsingContextController estimatedProgress]): Removed indirection via -_pageRef.
2961         (-[WKBrowsingContextController title]): Ditto.
2962         (-[WKBrowsingContextController textZoom]): Ditto.
2963         (-[WKBrowsingContextController setTextZoom:]): Ditto.
2964         (-[WKBrowsingContextController pageZoom]): Ditto.
2965         (-[WKBrowsingContextController setPageZoom:]): Ditto.
2966         (-[WKBrowsingContextController setPaginationMode:]): Ditto.
2967         (-[WKBrowsingContextController paginationMode]): Ditto.
2968         (-[WKBrowsingContextController setPaginationBehavesLikeColumns:]): Ditto.
2969         (-[WKBrowsingContextController paginationBehavesLikeColumns]): Ditto.
2970         (-[WKBrowsingContextController setPageLength:]): Ditto.
2971         (-[WKBrowsingContextController pageLength]): Ditto.
2972         (-[WKBrowsingContextController setGapBetweenPages:]): Ditto.
2973         (-[WKBrowsingContextController gapBetweenPages]): Ditto.
2974         (-[WKBrowsingContextController pageCount]): Ditto.
2975         (-[WKBrowsingContextController handle]): Ditto.
2976         (-[WKBrowsingContextController _initWithPageRef:]): Removed indirection via _data.
2977
2978         * UIProcess/API/mac/WKBrowsingContextGroup.h: Removed _data ivar and
2979         WKBrowsingContextGroupData class declaration.
2980         * UIProcess/API/mac/WKBrowsingContextGroup.mm: Removed WKBrowsingContextGroupData class and
2981         moved _pageGroupRef ivar directly into WKBrowsingContextGroup, declaring it in the
2982         @implementation.
2983         (-[WKBrowsingContextGroup initWithIdentifier:]): Removed indirection via _data.
2984         (-[WKBrowsingContextGroup allowsJavaScript]): Removed indirection via -_pageGroupRef.
2985         (-[WKBrowsingContextGroup setAllowsJavaScript:]): Ditto.
2986         (-[WKBrowsingContextGroup allowsJavaScriptMarkup]): Ditto.
2987         (-[WKBrowsingContextGroup setAllowsJavaScriptMarkup:]): Ditto.
2988         (-[WKBrowsingContextGroup allowsPlugIns]): Ditto.
2989         (-[WKBrowsingContextGroup setAllowsPlugIns:]): Ditto.
2990         (-[WKBrowsingContextGroup addUserStyleSheet:baseURL:whitelistedURLPatterns:blacklistedURLPatterns:mainFrameOnly:]): Ditto.
2991         (-[WKBrowsingContextGroup removeAllUserStyleSheets]): Ditto.
2992         (-[WKBrowsingContextGroup addUserScript:baseURL:whitelistedURLPatterns:blacklistedURLPatterns:injectionTime:mainFrameOnly:]): Ditto.
2993         (-[WKBrowsingContextGroup removeAllUserScripts]): Ditto.
2994         (-[WKBrowsingContextGroup _pageGroupRef]): Removed indirection via _data.
2995
2996         * UIProcess/API/mac/WKConnection.h: Removed _data ivar and WKConnectionData class declaration.
2997         * UIProcess/API/mac/WKConnection.mm: Removed WKConnectionData class and moved _connectionRef
2998         ivar directly into WKConnection, declaring it in the @implementation. Removed ivar and
2999         accessors for the delegate property, letting the compiler synthesize them.
3000         (-[WKConnection dealloc]): Removed indirection via _data.
3001         (-[WKConnection sendMessageWithName:body:]): Ditto.
3002         (-[WKConnection remoteObjectRegistry]): Ditto.
3003         (didReceiveMessage): Ditto.
3004         (-[WKConnection _initWithConnectionRef:]): Ditto.
3005
3006         * UIProcess/API/mac/WKProcessGroup.h: Replaced forward declaration of WKConnection with an
3007         import. Removed _data ivar and WKProcessGroupData class declaration.
3008         * UIProcess/API/mac/WKProcessGroup.mm: Removed WKProcessGroupData class and moved
3009         _contextRef ivar directly into WKProcessGroup, declaring it in the @implementation. Removed
3010         ivar and accessors for the delegate property, letting the compiler synthesize them.
3011         (-[WKProcessGroup initWithInjectedBundleURL:]): Removed indirection via _data.
3012         (-[WKProcessGroup dealloc]): Ditto.
3013         (-[WKProcessGroup _contextRef]): Ditto.
3014         (-[WKProcessGroup _geolocationProvider]): Ditto.
3015
3016 2013-11-25  Commit Queue  <commit-queue@webkit.org>
3017
3018         Unreviewed, rolling out r159740.
3019         http://trac.webkit.org/changeset/159740
3020         https://bugs.webkit.org/show_bug.cgi?id=124859
3021
3022         Crashing xmlhttprequest/access-control-repeated-failed-
3023         preflight-crash.html on Mavericks and Mountain Lion -
3024         ASSERT(m_pageGroup) WebPage.cpp:352 (Requested by dino_ on
3025         #webkit).
3026
3027         * Scripts/webkit2/messages.py:
3028         (struct_or_class):
3029         * Shared/UserMessageCoders.h:
3030         (WebKit::UserMessageEncoder::baseEncode):
3031         * Shared/WebPageCreationParameters.cpp:
3032         (WebKit::WebPageCreationParameters::encode):
3033         (WebKit::WebPageCreationParameters::decode):
3034         * Shared/WebPageCreationParameters.h:
3035         * Shared/mac/ObjCObjectGraphCoders.h:
3036         * Shared/mac/ObjCObjectGraphCoders.mm:
3037         (WebKit::ObjCObjectGraphEncoder::baseEncode):
3038         (WebKit::WebContextObjCObjectGraphEncoderImpl::WebContextObjCObjectGraphEncoderImpl):
3039         (WebKit::WebContextObjCObjectGraphEncoderImpl::encode):
3040         (WebKit::InjectedBundleObjCObjectGraphEncoderImpl::encode):
3041         (WebKit::WebContextObjCObjectGraphEncoder::WebContextObjCObjectGraphEncoder):
3042         (WebKit::WebContextObjCObjectGraphEncoder::encode):
3043         * UIProcess/WebConnectionToWebProcess.cpp:
3044         (WebKit::WebConnectionToWebProcess::encodeMessageBody):
3045         * UIProcess/WebContext.cpp:
3046         (WebKit::WebContext::createNewWebProcess):
3047         (WebKit::WebContext::createWebPage):
3048         (WebKit::WebContext::postMessageToInjectedBundle):
3049         (WebKit::WebContext::didReceiveSyncMessage):
3050         * UIProcess/WebContextUserMessageCoders.h:
3051         (WebKit::WebContextUserMessageEncoder::WebContextUserMessageEncoder):
3052         (WebKit::WebContextUserMessageEncoder::encode):
3053         (WebKit::WebContextUserMessageDecoder::decode):
3054         * UIProcess/WebPageGroup.cpp:
3055         * UIProcess/WebPageGroup.h:
3056         (WebKit::WebPageGroup::sendToAllProcessesInGroup):
3057         * UIProcess/WebPageProxy.cpp:
3058         (WebKit::WebPageProxy::create):
3059         (WebKit::WebPageProxy::WebPageProxy):
3060         (WebKit::WebPageProxy::initializeWebPage):
3061         (WebKit::WebPageProxy::loadURL):
3062         (WebKit::WebPageProxy::loadURLRequest):
3063         (WebKit::WebPageProxy::loadFile):
3064         (WebKit::WebPageProxy::loadData):
3065         (WebKit::WebPageProxy::loadHTMLString):
3066         (WebKit::WebPageProxy::loadAlternateHTMLString):
3067         (WebKit::WebPageProxy::loadPlainTextString):
3068         (WebKit::WebPageProxy::loadWebArchiveData):
3069         (WebKit::WebPageProxy::postMessageToInjectedBundle):
3070         (WebKit::WebPageProxy::initializeCreationParameters):
3071         * UIProcess/WebPageProxy.h:
3072         * UIProcess/WebProcessProxy.cpp:
3073         (WebKit::WebProcessProxy::disconnect):
3074         (WebKit::WebProcessProxy::createWebPage):
3075         * UIProcess/WebProcessProxy.h:
3076         * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
3077         (WebKit::InjectedBundleUserMessageEncoder::encode):
3078         (WebKit::InjectedBundleUserMessageDecoder::decode):
3079         * WebProcess/WebPage/WebPage.cpp:
3080         (WebKit::WebPage::WebPage):
3081         * WebProcess/WebProcess.cpp:
3082         (WebKit::WebProcess::webPageGroup):
3083         * WebProcess/WebProcess.h:
3084         * WebProcess/WebProcess.messages.in:
3085
3086 2013-11-25  Dan Bernstein  <mitz@apple.com>
3087
3088         [Cocoa] Put most of the Cocoa API behind WK_API_ENABLED guards
3089         https://bugs.webkit.org/show_bug.cgi?id=124850
3090
3091         Reviewed by Brady Eidson.
3092
3093         Guarded all Cocoa API headers and implementations with WK_API_ENABLED. Left the WKView class
3094         unguarded, but limited its API.
3095
3096         * Shared/API/Cocoa/WKFoundation.h: Replaced OBJ_VISIBLE with an explicit attribute.
3097         * Shared/API/Cocoa/WKRemoteObjectCoder.mm: Moved #if WK_API_ENABLED before the rest of the
3098         imports.
3099         * Shared/API/Cocoa/WKRemoteObjectInterface.mm: Ditto.
3100         * Shared/API/Cocoa/WKRemoteObjectRegistry.mm: Ditto.
3101         * Shared/API/Cocoa/WKRemoteObjectRegistryPrivate.h: Ditto.
3102         * UIProcess/API/mac/WKBrowsingContextController.h: Guarded all declarations with
3103         WK_API_ENABLED, changed to use WK_API_CLASS instead of WK_EXPORT.
3104         * UIProcess/API/mac/WKBrowsingContextController.mm: Guarded everything with WK_API_ENABLED.
3105         (-[WKBrowsingContextController dealloc]):
3106         (-[WKBrowsingContextController setPolicyDelegate:]):
3107         (-[WKBrowsingContextController backForwardList]):
3108         (didChangeBackForwardList):
3109         (setUpPageLoaderClient):
3110         (setUpPagePolicyClient):
3111         (-[WKBrowsingContextController _initWithPageRef:]):
3112         * UIProcess/API/mac/WKBrowsingContextControllerInternal.h: Ditto.
3113         * UIProcess/API/mac/WKBrowsingContextControllerPrivate.h: Ditto.
3114         * UIProcess/API/mac/WKBrowsingContextGroup.h: Guarded all declarations with WK_API_ENABLED,
3115         chanegd to use WK_API_CLASS instead of WK_EXPORT.
3116         * UIProcess/API/mac/WKBrowsingContextGroup.mm: Removed redundant import, guarded everything
3117         with WK_API_ENABLED.
3118         * UIProcess/API/mac/WKBrowsingContextGroupPrivate.h: Guarded with WK_API_ENABLED.
3119         * UIProcess/API/mac/WKBrowsingContextPolicyDelegate.h: Added necessary import.
3120         * UIProcess/API/mac/WKConnection.h: Guarded all declarations with WK_API_ENABLED, chanegd to
3121         use WK_API_CLASS instead of WK_EXPORT.
3122         * UIProcess/API/mac/WKConnection.mm: Guarded everything with WK_API_ENABLED.
3123         (-[WKConnection remoteObjectRegistry]):
3124         (didReceiveMessage):
3125         * UIProcess/API/mac/WKConnectionInternal.h: Guarded the delcarations with WK_API_ENABLED.
3126         * UIProcess/API/mac/WKProcessGroup.h: Ditto. Also changed to use WK_API_CLASS instead of
3127         WK_EXPORT.
3128         * UIProcess/API/mac/WKProcessGroup.mm: Guarded everything with WK_API_ENABLED.
3129         (-[WKProcessGroup initWithInjectedBundleURL:]):
3130         * UIProcess/API/mac/WKProcessGroupPrivate.h: Guarded the declarations with WK_API_ENABLED.
3131         * UIProcess/API/mac/WKTypeRefWrapper.h: Moved #if WK_API_ENABLED before the rest of the
3132         imports, changed to use WK_API_CLASS instead of WK_EXPORT.
3133         * UIProcess/API/mac/WKTypeRefWrapper.mm: Removed empty line after #import "config.h".
3134         * UIProcess/API/mac/WKView.h: Added #if WK_API_ENABLED around API that uses other Cocoa API
3135         types.
3136         * UIProcess/API/mac/WKView.mm: Added #if WK_API_ENABLED around implementations of methods
3137         that are only declared when the API is enabled.
3138         * UIProcess/API/mac/WKViewInternal.h: Reordered imports.
3139         * UIProcess/mac/WKFullScreenWindowController.mm: Added comment to #endif.
3140         * UIProcess/mac/WebContextMac.mm:
3141         (WebKit::WebContext::platformInitializeWebProcess): Guarded use of
3142         WKBrowsingContextController with WK_API_ENABLED.
3143         (WebKit::WebContext::platformInitializeNetworkProcess): Ditto.
3144         * UIProcess/mac/WebContextMenuProxyMac.mm: Removed newline between imports.
3145         * WebProcess/InjectedBundle/API/mac/WKDOMDocument.h: Moved #if WK_API_ENABLED before the
3146         rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
3147         * WebProcess/InjectedBundle/API/mac/WKDOMDocument.mm: Removed newline after #import
3148         "config.h".
3149         * WebProcess/InjectedBundle/API/mac/WKDOMElement.h: Moved #if WK_API_ENABLED before the
3150         rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
3151         * WebProcess/InjectedBundle/API/mac/WKDOMElement.mm: Removed newline after #import
3152         "config.h".
3153         * WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm: Ditto.
3154         * WebProcess/InjectedBundle/API/mac/WKDOMNode.h: Moved #if WK_API_ENABLED before the
3155         rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
3156         * WebProcess/InjectedBundle/API/mac/WKDOMNode.mm: Removed redundant import.
3157         * WebProcess/InjectedBundle/API/mac/WKDOMRange.h:  Moved #if WK_API_ENABLED before the
3158         rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
3159         * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm: Removed newline and redundant import.
3160         * WebProcess/InjectedBundle/API/mac/WKDOMText.h: Moved #if WK_API_ENABLED before the
3161         rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
3162         * WebProcess/InjectedBundle/API/mac/WKDOMTextIterator.h: Ditto.
3163         * WebProcess/InjectedBundle/API/mac/WKDOMTextIterator.mm: Removed newline after
3164         #import "config.h".
3165         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.h: Moved #if WK_API_ENABLED before
3166         the rest of the imports, and changed to use WK_API_CLASS instead of WK_EXPORT.
3167         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm: Removed newline and redundant
3168         imports.
3169         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.h:  Moved #if
3170         WK_API_ENABLED before the rest of the imports, and changed to use WK_API_CLASS instead of
3171         WK_EXPORT.
3172         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm: Removed
3173         newline after #import "config.h".
3174
3175 2013-11-22  Sam Weinig  <sam@webkit.org>
3176
3177         WebPageGroup's should keep track of what processes they are being used by
3178         https://bugs.webkit.org/show_bug.cgi?id=124556
3179
3180         Reviewed by Dan Bernstein.
3181
3182         * Scripts/webkit2/messages.py:
3183         (struct_or_class):
3184         Mark WebPageGroupData as a struct.
3185
3186         * Shared/UserMessageCoders.h:
3187         * Shared/mac/ObjCObjectGraphCoders.h:
3188         * Shared/mac/ObjCObjectGraphCoders.mm:
3189         * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
3190         * UIProcess/WebConnectionToWebProcess.cpp:
3191         * UIProcess/WebContext.cpp:
3192         * UIProcess/WebContextUserMessageCoders.h:
3193         * UIProcess/WebPageProxy.cpp:
3194         * UIProcess/WebPageProxy.h:
3195         Pass the WebProcess/WebProcessProxy to both encode and decode.
3196
3197         * Shared/WebPageCreationParameters.h:
3198         Pass the page group by ID when creating a page, as it will have had its own
3199         creation message sent already.
3200
3201         * UIProcess/WebPageGroup.cpp:
3202         * UIProcess/WebPageGroup.h:
3203         Keep track of processes.
3204
3205         * UIProcess/WebProcessProxy.cpp:
3206         * UIProcess/WebProcessProxy.h:
3207         Keep track of the page groups used by the process.
3208
3209         * WebProcess/WebPage/WebPage.cpp:
3210         Get the already create page group on creation.
3211
3212         * WebProcess/WebProcess.cpp:
3213         * WebProcess/WebProcess.h:
3214         * WebProcess/WebProcess.messages.in:
3215         Explicitly create page groups in the WebProcess.
3216
3217 2013-11-24  Brady Eidson  <beidson@apple.com>
3218
3219         DatabaseProcess: Add "UniqueIDBDatabase" that multiple WebProcesses can connect to
3220         https://bugs.webkit.org/show_bug.cgi?id=124819
3221
3222         Reviewed by Dan Bernstein.
3223
3224         UniqueIDBDatabase instances are per-DatabaseProcess, so it manages the set of them.
3225         * DatabaseProcess/DatabaseProcess.cpp:
3226         (WebKit::DatabaseProcess::getOrCreateUniqueIDBDatabase):
3227         (WebKit::DatabaseProcess::removeUniqueIDBDatabase):
3228         * DatabaseProcess/DatabaseProcess.h:
3229
3230         * DatabaseProcess/DatabaseToWebProcessConnection.h:
3231
3232         Start forwarding things along to the appropriate UniqueIDBDatabase.
3233         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
3234         (WebKit::DatabaseProcessIDBConnection::~DatabaseProcessIDBConnection):
3235         (WebKit::DatabaseProcessIDBConnection::disconnectedFromWebProcess):
3236         (WebKit::DatabaseProcessIDBConnection::establishConnection):
3237         (WebKit::DatabaseProcessIDBConnection::getOrEstablishIDBDatabaseMetadata):
3238         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
3239
3240         A class that represents a single concrete IDB database that multiple WebProcesses can connect to.
3241         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
3242         (WebKit::UniqueIDBDatabase::UniqueIDBDatabase):
3243         (WebKit::UniqueIDBDatabase::~UniqueIDBDatabase):
3244         (WebKit::UniqueIDBDatabase::registerConnection):
3245         (WebKit::UniqueIDBDatabase::unregisterConnection):
3246         (WebKit::UniqueIDBDatabase::getIDBDatabaseMetadata):
3247         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:
3248         (WebKit::UniqueIDBDatabase::create):
3249         (WebKit::UniqueIDBDatabase::identifier):
3250
3251         A class to help uniquely identify an IDBDatabase that can be expanded as needed.
3252         Importantly, it knows how to be used as a key in a HashMap.
3253         * DatabaseProcess/IndexedDB/UniqueIDBDatabaseIdentifier.cpp: Added.
3254         (WebKit::UniqueIDBDatabaseIdentifier::UniqueIDBDatabaseIdentifier):
3255         (WebKit::UniqueIDBDatabaseIdentifier::isHashTableDeletedValue):
3256         (WebKit::UniqueIDBDatabaseIdentifier::hash):
3257         (WebKit::UniqueIDBDatabaseIdentifier::isNull):
3258         (WebKit::operator==):
3259         * DatabaseProcess/IndexedDB/UniqueIDBDatabaseIdentifier.h: Added.
3260         (WebKit::UniqueIDBDatabaseIdentifier::databaseName):
3261         (WebKit::UniqueIDBDatabaseIdentifier::openingOrigin):
3262         (WebKit::UniqueIDBDatabaseIdentifier::mainFrameOrigin):
3263         (WebKit::UniqueIDBDatabaseIdentifierHash::hash):
3264         (WebKit::UniqueIDBDatabaseIdentifierHash::equal):
3265         (WebKit::UniqueIDBDatabaseIdentifierHashTraits::isEmptyValue):
3266
3267         * Shared/SecurityOriginData.cpp:
3268         (WebKit::operator==):
3269         * Shared/SecurityOriginData.h:
3270
3271         * UIProcess/WebContext.cpp:
3272
3273         * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp:
3274         (WebKit::WebIDBFactoryBackend::open):
3275         (WebKit::WebIDBFactoryBackend::removeIDBDatabaseBackend):
3276
3277         * WebKit2.xcodeproj/project.pbxproj:
3278
3279 2013-11-24  Danilo Cesar Lemes de Paula  <danilo.cesar@collabora.co.uk>, Arunprasad Rajkumar  <arurajku@cisco.com>
3280
3281         [WK2][GTK] Adding SpatialNavigation setting to webkit2
3282         https://bugs.webkit.org/show_bug.cgi?id=114298
3283
3284         Reviewed by Anders Carlsson.
3285
3286         Adding SpatialNavigation support to WebPreferencesStore allows us
3287         to toggle that feature on WebKitSettings.
3288
3289         * Shared/WebPreferencesStore.h:
3290         * UIProcess/API/C/WKPreferences.cpp:
3291         (WKPreferencesSetSpatialNavigationEnabled):
3292         (WKPreferencesGetSpatialNavigationEnabled):
3293         * UIProcess/API/C/WKPreferences.h:
3294         * UIProcess/API/gtk/WebKitSettings.cpp:
3295         (webKitSettingsSetProperty):
3296         (webKitSettingsGetProperty):
3297         (webkit_settings_class_init):
3298         (webkit_settings_set_enable_spatial_navigation):
3299         (webkit_settings_get_enable_spatial_navigation):
3300         * UIProcess/API/gtk/WebKitSettings.h:
3301         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
3302         * UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
3303         (testWebKitSettings):
3304         * WebProcess/WebPage/WebPage.cpp:
3305         (WebKit::WebPage::updatePreferences):
3306
3307 2013-11-22  Brady Eidson  <beidson@apple.com>
3308
3309         Add DatabaseProcessCreationParameters, starting with the database path.
3310         https://bugs.webkit.org/show_bug.cgi?id=124804
3311
3312         Reviewed by Dean Jackson and Benjamin Poulain.
3313
3314         * DatabaseProcess/DatabaseProcess.cpp:
3315         (WebKit::DatabaseProcess::initializeDatabaseProcess):
3316         * DatabaseProcess/DatabaseProcess.h:
3317         (WebKit::DatabaseProcess::indexedDatabaseDirectory):
3318         * DatabaseProcess/DatabaseProcess.messages.in:
3319
3320         * Shared/Databases/DatabaseProcessCreationParameters.cpp: Added.
3321         (WebKit::DatabaseProcessCreationParameters::DatabaseProcessCreationParameters):
3322         (WebKit::DatabaseProcessCreationParameters::encode):
3323         (WebKit::DatabaseProcessCreationParameters::decode):
3324         * Shared/Databases/DatabaseProcessCreationParameters.h: Added.
3325
3326         * UIProcess/WebContext.cpp:
3327         (WebKit::WebContext::ensureDatabaseProcess):
3328
3329         * WebKit2.xcodeproj/project.pbxproj:
3330         * Scripts/webkit2/messages.py:
3331         (struct_or_class):
3332
3333 2013-11-22  Ryuan Choi  <ryuan.choi@samsung.com>
3334
3335         [EFL] Build break after r159724
3336         https://bugs.webkit.org/show_bug.cgi?id=124806
3337
3338         Reviewed by Tim Horton.
3339
3340         * Platform/CoreIPC/Connection.h: Include atomic header.
3341         * UIProcess/CoordinatedGraphics/WebView.cpp: Rename didChangeContentsSize to didChangeContentSize.
3342         (WebKit::WebView::didChangeContentSize):
3343         * UIProcess/CoordinatedGraphics/WebView.h: Ditto.
3344         * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Adjust TARGET_OS_IPHONE macro.
3345
3346 2013-11-22  Tim Horton  <timothy_horton@apple.com>
3347
3348         Attempt build fixes for 32-bit after 159724.
3349
3350         There's probably a better fix, but this will work for now.
3351
3352         * UIProcess/API/mac/WKView.h:
3353
3354 2013-11-22  Enrica Casucci  <enrica@apple.com>
3355
3356         Upstream iOS WebKit2 to OpenSource (part 3).
3357         https://bugs.webkit.org/show_bug.cgi?id=124803
3358
3359         Reviewed by Anders Carlsson and Tim Horton.
3360
3361
3362 2013-11-22  Jer Noble  <jer.noble@apple.com>
3363
3364         [Mac] Can't drag full-screen video to another monitor
3365         https://bugs.webkit.org/show_bug.cgi?id=124798
3366
3367         Reviewed by Geoffrey Garen.
3368
3369         Make full screen windows resizable by default. This allows the window to be resized when
3370         moved between monitors with different resolutions.
3371
3372         * UIProcess/API/mac/WKView.mm:
3373         (-[WKView createFullScreenWindow]):
3374
3375 2013-11-22  Benjamin Poulain  <bpoulain@apple.com>
3376
3377         [WK2] Another build fix for NetworkProcess on iOS
3378         https://bugs.webkit.org/show_bug.cgi?id=124797
3379
3380         Reviewed by Alexey Proskuryakov.
3381
3382         * NetworkProcess/NetworkResourceLoader.h:
3383
3384 2013-11-22  Benjamin Poulain  <bpoulain@apple.com>
3385
3386         [WK2] Fix the build of the NetworkProcess on iOS
3387         https://bugs.webkit.org/show_bug.cgi?id=124794
3388
3389         Reviewed by Alexey Proskuryakov.
3390
3391         * NetworkProcess/AsynchronousNetworkLoaderClient.cpp:
3392         (WebKit::AsynchronousNetworkLoaderClient::didReceiveBuffer):
3393         * NetworkProcess/NetworkResourceLoader.h:
3394         * NetworkProcess/SynchronousNetworkLoaderClient.cpp:
3395         (WebKit::SynchronousNetworkLoaderClient::willSendRequest):
3396
3397 2013-11-22  Anders Carlsson  <andersca@apple.com>
3398
3399         Move the remaining page loader clients out into separate files
3400         https://bugs.webkit.org/show_bug.cgi?id=124792
3401
3402         Reviewed by Dan Bernstein.
3403
3404         * UIProcess/API/C/WKPage.h:
3405         * UIProcess/API/C/WKPageContextMenuClient.h: Added.
3406         * UIProcess/API/C/WKPageFindClient.h: Added.
3407         * UIProcess/API/C/WKPageFindMatchesClient.h: Added.
3408         * UIProcess/API/C/WKPageFormClient.h: Added.
3409         * UIProcess/API/C/WKPageLoaderClient.h:
3410         * UIProcess/API/C/WKPagePolicyClient.h: Added.
3411         * UIProcess/API/C/WKPageUIClient.h: Added.
3412         * WebKit2.xcodeproj/project.pbxproj:
3413
3414 2013-11-22  Anders Carlsson  <andersca@apple.com>
3415
3416         Move WKPageLoaderClient out into a separate header
3417         https://bugs.webkit.org/show_bug.cgi?id=124790
3418
3419         Reviewed by Dan Bernstein.
3420
3421         * UIProcess/API/C/WKPage.h:
3422         * UIProcess/API/C/WKPageLoaderClient.h: Added.
3423         * WebKit2.xcodeproj/project.pbxproj:
3424
3425 2013-11-22  Anders Carlsson  <andersca@apple.com>
3426
3427         Fix 32-bit build.
3428
3429         * UIProcess/API/mac/WKBrowsingContextController.mm:
3430         (-[WKBrowsingContextController dealloc]):
3431         (-[WKBrowsingContextController _initWithPageRef:]):
3432
3433 2013-11-22  Dan Bernstein  <mitz@apple.com>
3434
3435         Debug builds unconditionally dump remote layer tree transactions to stderr.
3436
3437         Reviewed by Sam Weinig.
3438
3439         * Platform/Logging.h: Declared RemoteLayerTree logging channel.
3440         * Shared/mac/RemoteLayerTreeTransaction.h: Declared description().
3441         * Shared/mac/RemoteLayerTreeTransaction.mm:
3442         (WebKit::RemoteLayerTreeTransaction::dump): Changed to use description().
3443         (WebKit::RemoteLayerTreeTransaction::description): Returns a CString with the description.
3444         * UIProcess/mac/RemoteLayerTreeHost.mm:
3445         (WebKit::RemoteLayerTreeHost::commit): Changed to use logging instead of calling dump().
3446
3447 2013-11-21  Anders Carlsson  <andersca@apple.com>