[Qt] Initial WebKit2 implementation
[WebKit-https.git] / WebKit2 / ChangeLog
1 2010-07-05  Antti Koivisto  <koivisto@iki.fi>
2
3         Reviewed by Kenneth Rohde Christiansen.
4
5         [Qt] Initial WebKit2 implementation
6         https://bugs.webkit.org/show_bug.cgi?id=40233
7         
8         Implement ChunkedUpdateDrawingArea + Proxy for Qt. Not built yet.
9
10         * UIProcess/ChunkedUpdateDrawingAreaProxy.h:
11         * UIProcess/qt: Added.
12         * UIProcess/qt/ChunkedUpdateDrawingAreaProxyQt.cpp: Added.
13         (WebKit::ChunkedUpdateDrawingAreaProxy::page):
14         (WebKit::ChunkedUpdateDrawingAreaProxy::ensureBackingStore):
15         (WebKit::ChunkedUpdateDrawingAreaProxy::invalidateBackingStore):
16         (WebKit::ChunkedUpdateDrawingAreaProxy::platformPaint):
17         (WebKit::ChunkedUpdateDrawingAreaProxy::drawUpdateChunkIntoBackingStore):
18         * WebProcess/WebPage/qt: Added.
19         * WebProcess/WebPage/qt/ChunkedUpdateDrawingAreaQt.cpp: Added.
20         (WebKit::ChunkedUpdateDrawingArea::paintIntoUpdateChunk):
21
22 2010-07-04  Anders Carlsson  <andersca@apple.com>
23
24         Reviewed by Dan Bernstein.
25
26         Add simple command line parser and pass mode argument to the web process
27         https://bugs.webkit.org/show_bug.cgi?id=41586
28
29         * Shared/CommandLine.h:
30         (WebKit::CommandLine::operator[]):
31         Add CommandLine class.
32
33         * Shared/mac/CommandLineMac.cpp:
34         (WebKit::CommandLine::parse):
35         Implement Mac version of CommandLine::parse.
36
37         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
38         (WebKit::ProcessLauncher::launchProcess):
39         Add "legacywebprocess" mode to the posix_spawn call.
40
41         * WebKit2.xcodeproj/project.pbxproj:
42         Add CommandLine to the xcode project.
43
44         * WebProcess/Launching/mac/WebProcessMain.mm:
45         (webProcessMain):
46         (main):
47         Parse the command line and check the mode.
48
49 2010-07-04  Maciej Stachowiak  <mjs@apple.com>
50
51         Reviewed by Mark Rowe.
52
53         WebProcess crashes in release for simple layout tests
54         https://bugs.webkit.org/show_bug.cgi?id=41575
55
56         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
57         (WKBundlePageCopyRenderTreeExternalRepresentation): ref external representation StringImpl*
58         before taking it out of its parent String, to avoid returning freed memory.
59
60 2010-07-03  Maciej Stachowiak  <mjs@apple.com>
61
62         Rubber stamped by Anders Carlsson.
63
64         Add stdint.h include to fix WebKitTestRunner build.
65
66         * UIProcess/API/C/WKPage.h:
67
68 2010-07-02  Luiz Agostini  <luiz.agostini@openbossa.org>
69
70         Reviewed by Kenneth Rohde Christiansen.
71
72         [Qt] Wrong method name in file  Connection.h
73         https://bugs.webkit.org/show_bug.cgi?id=41536
74
75         Method openConnectionHandler was spelled as openConnection in class Connection.
76
77         * Platform/CoreIPC/Connection.h:
78
79 2010-07-02  Luiz Agostini  <luiz.agostini@openbossa.org>
80
81         Reviewed by Sam Weinig.
82
83         Adding notification and touch events methods to WebChromeClient
84         https://bugs.webkit.org/show_bug.cgi?id=41527
85
86         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
87         (WebKit::WebChromeClient::notificationPresenter):
88         (WebKit::WebChromeClient::needTouchEvents):
89         * WebProcess/WebCoreSupport/WebChromeClient.h:
90
91 2010-07-02  Luiz Agostini  <luiz.agostini@openbossa.org>
92
93         Reviewed by Sam Weinig.
94
95         Removing CoreFoundation.h include from WKFrame.h
96         https://bugs.webkit.org/show_bug.cgi?id=41528
97
98         * UIProcess/API/C/WKFrame.h:
99
100 2010-07-02  Sam Weinig  <sam@webkit.org>
101
102         Reviewed by Oliver Hunt.
103
104         Patch for https://bugs.webkit.org/show_bug.cgi?id=41540
105         WebKit2: Add InjectedCode API to get a list of subframes
106
107         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
108         (WKBundleFrameCopyChildFrames):
109         * WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
110         * WebProcess/WebPage/WebFrame.cpp:
111         (WebKit::childFrameRef):
112         (WebKit::childFrameDeref):
113         (WebKit::WebFrame::childFrames):
114         * WebProcess/WebPage/WebFrame.h:
115         * mac/WebKit2.exp:
116
117 2010-07-02  Sam Weinig  <sam@webkit.org>
118
119         Reviewed by Anders Carlsson.
120
121         Turn off the Objective-C garbage collection for the WebProcess.
122
123         * Configurations/WebProcess.xcconfig:
124         * WebProcess/Launching/mac/WebProcessMain.mm:
125         (main): Assert that GC is off.
126
127 2010-07-02  Sam Weinig  <sam@webkit.org>
128
129         Reviewed by Anders Carlsson.
130
131         There is no longer a reason to check that the process is valid when posting
132         a message to the bundle, the process code will take care of that for us.
133
134         * UIProcess/WebContext.cpp:
135         (WebKit::WebContext::postMessageToInjectedBundle):
136
137 2010-07-02  Sam Weinig  <sam@webkit.org>
138
139         Reviewed by Anders Carlsson.
140
141         Use send instead of connection()->send(), now that connections() are created
142         asynchronously it can be null at this point and the message needs to be queued.
143
144         * UIProcess/mac/WebProcessProxyMac.mm:
145         (WebKit::WebProcessProxy::setUpAcceleratedCompositing):
146
147 2010-07-01  Steve Falkenburg  <sfalken@apple.com>
148
149         Even more Windows build fixing.
150         Removed bogus post-build event commands.
151         Removed unnecessary link libraries.
152
153         * win/WebKit2.vcproj:
154
155 2010-07-01  Steve Falkenburg  <sfalken@apple.com>
156
157         Fix Windows while not breaking Qt (didn't realize this was building for Qt).
158
159         * WebProcess/WebProcess.cpp:
160
161 2010-07-01  Steve Falkenburg  <sfalken@apple.com>
162
163         Windows build fix.
164
165         * win/WebKit2Generated.make:
166
167 2010-07-01  Steve Falkenburg  <sfalken@apple.com>
168
169         Windows build fix.
170
171         * WebProcess/WebProcess.cpp:
172
173 2010-07-01  Sam Weinig  <sam@webkit.org>
174
175         Reviewed by Jon Honeycutt.
176
177         Make WebKit2 compile (though not work) on Leopard.
178
179         * Platform/WorkQueue.h:
180         * Platform/mac/WorkQueueMac.cpp:
181         (WorkQueue::EventSource::EventSource):
182         (WorkQueue::scheduleWork):
183         (WorkQueue::registerMachPortEventHandler):
184         (WorkQueue::unregisterMachPortEventHandler):
185         (WorkQueue::platformInitialize):
186         (WorkQueue::platformInvalidate):
187         * UIProcess/mac/LayerBackedDrawingAreaProxyMac.mm:
188         (WebKit::LayerBackedDrawingAreaProxy::attachCompositingContext):
189         * UIProcess/mac/WebProcessProxyMac.mm:
190         (WebKit::WebProcessProxy::setUpAcceleratedCompositing):
191         * WebProcess/WebPage/LayerBackedDrawingArea.cpp:
192         (WebKit::LayerBackedDrawingArea::LayerBackedDrawingArea):
193         (WebKit::LayerBackedDrawingArea::setNeedsDisplay):
194         * WebProcess/WebPage/LayerBackedDrawingArea.h:
195         * WebProcess/WebPage/mac/LayerBackedDrawingAreaMac.mm:
196         (WebKit::LayerBackedDrawingArea::platformClear):
197         (WebKit::LayerBackedDrawingArea::attachCompositingContext):
198
199 2010-07-01  Sam Weinig  <sam@webkit.org>
200
201         Reviewed by Anders Carlsson.
202
203         https://bugs.webkit.org/show_bug.cgi?id=41491
204         Add first stab at back/forward list API.
205
206         * UIProcess/API/C/WKAPICast.h:
207         * UIProcess/API/C/WKBackForwardList.cpp: Added.
208         * UIProcess/API/C/WKBackForwardList.h: Added.
209         * UIProcess/API/C/WKBackForwardListItem.cpp: Added.
210         * UIProcess/API/C/WKBackForwardListItem.h: Added.
211         * UIProcess/API/C/WKBase.h:
212         * UIProcess/API/C/WKPage.cpp:
213         * UIProcess/API/C/WKPage.h:
214         * UIProcess/API/C/WebKit2.h:
215         * UIProcess/WebBackForwardListItem.cpp: Added.
216         * UIProcess/WebBackForwardListItem.h: Added.
217         * UIProcess/WebBackForwardListProxy.cpp: Added.
218         * UIProcess/WebBackForwardListProxy.h: Added.
219         * UIProcess/WebPageProxy.cpp:
220         * UIProcess/WebPageProxy.h:
221         * WebKit2.xcodeproj/project.pbxproj:
222         * win/WebKit2.vcproj:
223
224 2010-07-01  Anders Carlsson  <andersca@apple.com>
225
226         Reviewed by Sam Weinig.
227
228         Make process launching asynchronous
229         https://bugs.webkit.org/show_bug.cgi?id=41489
230
231         * Platform/CoreIPC/Connection.h:
232         Make OutgoingMessage public.
233
234         * UIProcess/ChunkedUpdateDrawingAreaProxy.cpp:
235         (WebKit::ChunkedUpdateDrawingAreaProxy::paint):
236         Don't wait for a paint reply when the process is starting up.
237
238         * UIProcess/Launcher/ProcessLauncher.cpp: Added.
239         Add new ProcessLauncher class.
240
241         (WebKit::processLauncherWorkQueue):
242         Returns the work queue where process launching will happen.
243
244         (WebKit::ProcessLauncher::ProcessLauncher):
245         Schedule launching the process.
246
247         (WebKit::ProcessLauncher::didFinishLaunchingProcess):
248         Call the client method.
249         
250         (WebKit::ProcessLauncher::invalidate):
251         Set the client to 0.
252
253         * UIProcess/Launcher/ProcessLauncher.h: Added.
254         * UIProcess/Launcher/WebProcessLauncher.h: Removed.
255         Rename WebProcessLauncher.h -> ProcessLauncher.h
256
257         * UIProcess/Launcher/mac/ProcessLauncherMac.mm: Added.
258         * UIProcess/Launcher/mac/WebProcessLauncher.mm: Removed.
259         Rename WebProcessLauncher.mm -> ProcessLauncherMac.mm, update for ProcessLauncher changes.
260
261         * UIProcess/Launcher/win/ProcessLauncherWin.cpp: Added.
262         * UIProcess/Launcher/win/WebProcessLauncher.cpp: Removed.
263         Rename WebProcessLauncher.cpp -> ProcessLauncherWin.cpp, update for ProcessLauncher changes.
264         
265         * UIProcess/WebProcessProxy.cpp:
266         (WebKit::WebProcessProxy::~WebProcessProxy):
267         Delete any unsent messages.
268
269         (WebKit::WebProcessProxy::connect):
270         Use the new ProcessLauncher.
271
272         (WebKit::WebProcessProxy::sendMessage):
273         If we're waiting for the process to launch, the messages need to be enqueued.
274
275         (WebKit::WebProcessProxy::didFinishLaunching):
276         Send the outgoing messages.
277
278         * WebKit2.xcodeproj/project.pbxproj:
279         * win/WebKit2.vcproj:
280         Update for renames.
281
282 2010-07-01  Simon Fraser  <simon.fraser@apple.com>
283
284         Reviewed by Anders Carlsson.
285
286         Get accelerated compositing working with webkit2
287         https://bugs.webkit.org/show_bug.cgi?id=41084
288         
289         Start up the CA render server in the UI process (currently, at launch time), and
290         pass the server port over to the web process for use by the layer-backed drawing area.
291         
292         Fix some style issues pointed out by Dan Bernstein.
293         
294         Implement the WebChromeClient methods that pass the attach/detach calls through
295         to the drawing area.
296
297         * Shared/CoreIPCSupport/WebProcessMessageKinds.h:
298         * UIProcess/API/mac/WKView.mm:
299         (-[WKView _startAcceleratedCompositing:]):
300         * UIProcess/API/mac/WKViewInternal.h:
301         * UIProcess/WebProcessProxy.cpp:
302         (WebKit::WebProcessProxy::WebProcessProxy):
303         (WebKit::WebProcessProxy::setUpAcceleratedCompositing):
304         * UIProcess/WebProcessProxy.h:
305         * UIProcess/mac/LayerBackedDrawingAreaProxyMac.mm:
306         * UIProcess/mac/WebProcessProxyMac.mm: Added.
307         (WebKit::WebProcessProxy::setUpAcceleratedCompositing):
308         * WebKit2.xcodeproj/project.pbxproj:
309         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
310         (WebKit::WebChromeClient::attachRootGraphicsLayer):
311         (WebKit::WebChromeClient::scheduleCompositingLayerSync):
312         * WebProcess/WebPage/mac/LayerBackedDrawingAreaMac.mm:
313         (WebKit::LayerBackedDrawingArea::attachCompositingContext):
314         * WebProcess/WebProcess.cpp:
315         (WebKit::WebProcess::WebProcess):
316         (WebKit::WebProcess::didReceiveMessage):
317         * WebProcess/WebProcess.h:
318         (WebKit::WebProcess::compositingRenderServerPort):
319
320 2010-07-01  Simon Fraser  <simon.fraser@apple.com>
321
322         Reviewed by Anders Carlsson.
323
324         Get accelerated compositing working with webkit2
325         https://bugs.webkit.org/show_bug.cgi?id=41084
326         
327         Add a new kind of DrawingArea, which is a LayerBackedDrawingArea, which will be used
328         when the page goes into accelerated compositing mode. It is not wired up yet.
329
330         * Shared/CoreIPCSupport/DrawingAreaProxyMessageKinds.h: New 'attach' and 'detach' messages
331         related to accelerated compositing.
332
333         * UIProcess/API/mac/WKView.mm:
334         (-[WKView _startAcceleratedCompositing:]):
335         (-[WKView _stopAcceleratedCompositing]):
336         * UIProcess/API/mac/WKViewInternal.h:
337         Add a subview of the WKView which has layer-backing enabled, and put the drawing area's
338         layer inside of that.
339         
340         * UIProcess/ChunkedUpdateDrawingAreaProxy.h:
341         (WebKit::ChunkedUpdateDrawingAreaProxy::attachCompositingContext):
342         (WebKit::ChunkedUpdateDrawingAreaProxy::detachCompositingContext): These methods will never be called
343         on the ChunkedUpdateDrawingArea. Stub them out.
344
345         * UIProcess/DrawingAreaProxy.h:
346         Add attachCompositingContext() and detachCompositingContext() methods, and a new drawing area
347         type to the enum.
348
349         * UIProcess/LayerBackedDrawingAreaProxy.cpp: Added.
350         * UIProcess/LayerBackedDrawingAreaProxy.h: Added.
351         * UIProcess/mac/LayerBackedDrawingAreaProxyMac.mm: Added.
352
353         * WebKit2.xcodeproj/project.pbxproj: Add LayerBackedDrawingArea files.
354
355         * WebProcess/WebPage/ChunkedUpdateDrawingArea.h: Add virtual methods stubs.
356
357         * WebProcess/WebPage/DrawingArea.cpp:
358         (WebKit::DrawingArea::create): Create a LayerBackedDrawingArea if asked.
359         * WebProcess/WebPage/DrawingArea.h: New LayerBackedDrawingAreaType type, and new virtual
360         methods related to accelerated compositing.
361
362         * WebProcess/WebPage/LayerBackedDrawingArea.cpp: Added.
363         * WebProcess/WebPage/LayerBackedDrawingArea.h: Added.
364         * WebProcess/WebPage/mac/LayerBackedDrawingAreaMac.mm: Added.
365
366 2010-07-01  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
367
368        Rubberstamped by Sam Weinig.
369
370        Export symbols on Linux with GCC, like JSC does.
371
372        * UIProcess/API/C/WKBase.h:
373        * WebProcess/InjectedBundle/API/c/WKBundleBase.h:
374
375 2010-07-01  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
376
377         Reviewed by Antti Koivisto.
378
379         [Qt] Initial WebKit2 implementation
380         https://bugs.webkit.org/show_bug.cgi?id=40233
381
382         Add implementation of the UI and loader client for Qt.
383
384         * UIProcess/API/qt/qwkpage.cpp:
385         * UIProcess/API/qt/ClientImpl.cpp: Added.
386         (toQWKPage):
387         (qt_wk_didStartProvisionalLoadForFrame):
388         (qt_wk_didReceiveServerRedirectForProvisionalLoadForFrame):
389         (qt_wk_didFailProvisionalLoadWithErrorForFrame):
390         (qt_wk_didCommitLoadForFrame):
391         (qt_wk_didFinishLoadForFrame):
392         (qt_wk_didFailLoadWithErrorForFrame):
393         (qt_wk_didReceiveTitleForFrame):
394         (qt_wk_didFirstLayoutForFrame):
395         (qt_wk_didFirstVisuallyNonEmptyLayoutForFrame):
396         (qt_wk_didStartProgress):
397         (qt_wk_didChangeProgress):
398         (qt_wk_didFinishProgress):
399         (qt_wk_didBecomeUnresponsive):
400         (qt_wk_didBecomeResponsive):
401         (qt_wk_createNewPage):
402         (qt_wk_showPage):
403         (qt_wk_close):
404         (qt_wk_runJavaScriptAlert):
405         * UIProcess/API/qt/ClientImpl.h: Added.
406
407 2010-07-01  Anders Carlsson  <andersca@apple.com>
408
409         Reviewed by Dan Bernstein.
410
411         Change the CoreIPC connection identifier to be a HANDLE on Windows
412         https://bugs.webkit.org/show_bug.cgi?id=41479
413
414         * Platform/CoreIPC/Connection.h:
415         * Platform/CoreIPC/win/ConnectionWin.cpp:
416         (CoreIPC::Connection::createServerAndClientIdentifiers):
417         New function that creates a server and client HANDLE.
418
419         (CoreIPC::Connection::platformInitialize):
420         Don't open the connections here.
421
422         (CoreIPC::Connection::readEventHandler):
423         (CoreIPC::Connection::open):
424         
425         * UIProcess/Launcher/win/WebProcessLauncher.cpp:
426         (WebKit::webThreadBody):
427         Get the handle from the thread.
428
429         (WebKit::launchWebProcess):
430         Mark the client identifier as inheritable and pass it along to the web process.
431
432         * WebProcess/win/WebProcessMain.cpp:
433         (WebKit::CommandLine::CommandLine):
434         (WebKit::CommandLine::parse):
435         (WebKit::CommandLine::operator[]):
436         Add simple command line parser.
437
438         (WebKit::WebProcessMain):
439         Get the handle identifier from the command line.
440
441         * WebProcess/win/WebProcessMain.h:
442
443 2010-07-01  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
444
445         Reviewed by Antti Koivisto.
446
447         [Qt] Initial WebKit2 implementation
448         https://bugs.webkit.org/show_bug.cgi?id=40233
449
450         Add initial Qt API for WebKit2
451
452         * UIProcess/API/qt/WKView.h: Added.
453         * UIProcess/API/qt/qgraphicswkview.cpp: Added.
454         (QGraphicsWKViewPrivate::pageRef):
455         (QGraphicsWKView::QGraphicsWKView):
456         (QGraphicsWKView::~QGraphicsWKView):
457         (QGraphicsWKView::page):
458         (QGraphicsWKView::paint):
459         (QGraphicsWKView::setGeometry):
460         (QGraphicsWKView::load):
461         (QGraphicsWKView::setUrl):
462         (QGraphicsWKView::url):
463         (QGraphicsWKView::title):
464         (QGraphicsWKView::triggerPageAction):
465         (QGraphicsWKView::back):
466         (QGraphicsWKView::forward):
467         (QGraphicsWKView::reload):
468         (QGraphicsWKView::stop):
469         (QGraphicsWKView::itemChange):
470         (QGraphicsWKView::event):
471         (QGraphicsWKView::sizeHint):
472         (QGraphicsWKView::inputMethodQuery):
473         (QGraphicsWKView::keyPressEvent):
474         (QGraphicsWKView::keyReleaseEvent):
475         (QGraphicsWKView::hoverMoveEvent):
476         (QGraphicsWKView::mouseMoveEvent):
477         (QGraphicsWKView::mousePressEvent):
478         (QGraphicsWKView::mouseReleaseEvent):
479         (QGraphicsWKView::mouseDoubleClickEvent):
480         (QGraphicsWKView::wheelEvent):
481         (QGraphicsWKViewPrivate::QGraphicsWKViewPrivate):
482         (QGraphicsWKView::visibleRect):
483         * UIProcess/API/qt/qgraphicswkview.h: Added.
484         * UIProcess/API/qt/qwkpage.cpp: Added.
485         (QWKPagePrivate::QWKPagePrivate):
486         (QWKPagePrivate::~QWKPagePrivate):
487         (QWKPagePrivate::init):
488         (QWKPagePrivate::toolTipChanged):
489         (QWKPagePrivate::paint):
490         (QWKPagePrivate::keyPressEvent):
491         (QWKPagePrivate::keyReleaseEvent):
492         (QWKPagePrivate::mouseMoveEvent):
493         (QWKPagePrivate::mousePressEvent):
494         (QWKPagePrivate::mouseReleaseEvent):
495         (QWKPagePrivate::mouseDoubleClickEvent):
496         (QWKPagePrivate::wheelEvent):
497         (QWKPagePrivate::updateAction):
498         (QWKPagePrivate::updateNavigationActions):
499         (QWKPagePrivate::_q_webActionTriggered):
500         (QWKPage::QWKPage):
501         (QWKPage::~QWKPage):
502         (QWKPage::pageRef):
503         (QWKPage::setCreateNewPageFunction):
504         (QWKPage::load):
505         (QWKPage::setUrl):
506         (QWKPage::url):
507         (QWKPage::title):
508         (QWKPage::setViewportSize):
509         (QWKPage::requestZoomRect):
510         (QWKPage::triggerAction):
511         (QWKPage::action):
512         * UIProcess/API/qt/qwkpage.h: Added.
513         * UIProcess/API/qt/qwkpage_p.h: Added.
514         (QWKPagePrivate::get):
515         (QWKPagePrivate::processDidExit):
516         (QWKPagePrivate::processDidRevive):
517         (QWKPagePrivate::takeFocus):
518
519 2010-07-01  John Sullivan  <sullivan@apple.com>
520
521         Rubber-stamped by Anders Carlsson.
522
523         * mac/WebKit2.exp:
524         Added _WKFramePolicyListenerDownload and _WKFramePolicyListenerIgnore.
525
526 2010-07-01  Sheriff Bot  <webkit.review.bot@gmail.com>
527
528         Unreviewed, rolling out r62267.
529         http://trac.webkit.org/changeset/62267
530         https://bugs.webkit.org/show_bug.cgi?id=41468
531
532         broke stuff (Requested by weinig on #webkit).
533
534         * UIProcess/API/C/WKBase.h:
535         * WebProcess/InjectedBundle/API/c/WKBundleBase.h:
536
537 2010-07-01  John Sullivan  <sullivan@apple.com>
538
539         Rubber-stamped by Sam Weinig.
540
541         * mac/WebKit2.exp:
542         Added _WKFramePolicyListenerRelease and _WKFramePolicyListenerRetain.
543
544 2010-07-01  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
545
546         Reviewed by Antti Koivisto.
547
548         [Qt] Initial WebKit2 implementation
549         https://bugs.webkit.org/show_bug.cgi?id=40233
550
551         Add our event factory for converting Qt events to something WebKit2
552         understands.
553
554         * Shared/qt/WebEventFactoryQt.cpp: Added.
555         (WebKit::mouseButtonForEvent):
556         (WebKit::webEventTypeForEvent):
557         (WebKit::modifiersForEvent):
558         (WebKit::WebEventFactory::createWebMouseEvent):
559         (WebKit::WebEventFactory::createWebWheelEvent):
560         (WebKit::WebEventFactory::createWebKeyboardEvent):
561         * Shared/qt/WebEventFactoryQt.h: Added.
562
563 2010-07-01  Antti Koivisto  <koivisto@iki.fi>
564
565         Reviewed by Kenneth Rohde Christiansen.
566
567         [Qt] Initial WebKit2 implementation
568         https://bugs.webkit.org/show_bug.cgi?id=40233
569         
570         Add UpdateChunk. This one is mmap based, using Qt abstractions.
571
572         * Shared/qt: Added.
573         * Shared/qt/UpdateChunk.cpp: Added.
574         (WebKit::MappedMemory::markUsed):
575         (WebKit::MappedMemory::markFree):
576         (WebKit::MappedMemory::isFree):
577         (WebKit::mapMemory):
578         (WebKit::mapFile):
579         (WebKit::UpdateChunk::UpdateChunk):
580         (WebKit::UpdateChunk::~UpdateChunk):
581         (WebKit::UpdateChunk::data):
582         (WebKit::UpdateChunk::encode):
583         (WebKit::UpdateChunk::decode):
584         (WebKit::UpdateChunk::createImage):
585         * Shared/qt/UpdateChunk.h: Added.
586         (WebKit::UpdateChunk::rect):
587         (WebKit::UpdateChunk::size):
588
589 2010-07-01  Antti Koivisto  <koivisto@iki.fi>
590
591         Reviewed by Kenneth Rohde Christiansen.
592
593         [Qt] Initial WebKit2 implementation
594         https://bugs.webkit.org/show_bug.cgi?id=40233
595         
596         Include some stdlib headers to fix linux build.
597
598         * Platform/CoreIPC/ArgumentDecoder.cpp:
599         * Platform/CoreIPC/ArgumentEncoder.cpp:
600         * UIProcess/WebLoaderClient.cpp:
601         * UIProcess/WebPageProxy.cpp:
602         * UIProcess/WebUIClient.cpp:
603
604 2010-07-01  Antti Koivisto  <koivisto@iki.fi>
605
606         Reviewed by Kenneth Rohde Christiansen.
607
608         [Qt] Initial WebKit2 implementation
609         https://bugs.webkit.org/show_bug.cgi?id=40233
610         
611         Implement CoreIPC::Connection and PlatformProcessIdentifier for Qt. Not built yet.
612
613         * Platform/CoreIPC/Connection.h:
614         * Platform/CoreIPC/qt: Added.
615         * Platform/CoreIPC/qt/ConnectionQt.cpp: Added.
616         (CoreIPC::Connection::platformInitialize):
617         (CoreIPC::Connection::platformInvalidate):
618         (CoreIPC::Connection::newConnectionHandler):
619         (CoreIPC::Connection::readyReadHandler):
620         (CoreIPC::Connection::openConnection):
621         (CoreIPC::Connection::open):
622         (CoreIPC::Connection::sendOutgoingMessage):
623         * Platform/PlatformProcessIdentifier.h:
624
625 2010-07-01  Antti Koivisto  <koivisto@iki.fi>
626
627         Reviewed by Kenneth Rohde Christiansen.
628
629         [Qt] Initial WebKit2 implementation
630         https://bugs.webkit.org/show_bug.cgi?id=40233
631         
632         Implement WorkQueue for Qt. Not built yet.
633
634         * Platform/WorkQueue.h:
635         * Platform/qt/WorkQueueQt.cpp: Added.
636         (WorkQueue::WorkItemQt::WorkItemQt):
637         (WorkQueue::WorkItemQt::~WorkItemQt):
638         (WorkQueue::WorkItemQt::execute):
639         (WorkQueue::WorkItemQt::timerEvent):
640         (WorkQueue::connectSignal):
641         (WorkQueue::disconnectSignal):
642         (WorkQueue::platformInitialize):
643         (WorkQueue::platformInvalidate):
644         (WorkQueue::scheduleWork):
645
646 2010-07-01  Antti Koivisto  <koivisto@iki.fi>
647
648         Reviewed by Kenneth Rohde Christiansen.
649
650         [Qt] Initial WebKit2 implementation
651         https://bugs.webkit.org/show_bug.cgi?id=40233
652         
653         Implement RunLoop for Qt. Not built yet.
654
655         * Platform/RunLoop.h:
656         * Platform/qt: Added.
657         * Platform/qt/RunLoopQt.cpp: Added.
658         (RunLoop::TimerObject::TimerObject):
659         (RunLoop::TimerObject::performWork):
660         (RunLoop::TimerObject::wakeUp):
661         (RunLoop::TimerObject::timerEvent):
662         (RunLoop::run):
663         (RunLoop::stop):
664         (RunLoop::RunLoop):
665         (RunLoop::~RunLoop):
666         (RunLoop::wakeUp):
667         (RunLoop::TimerBase::timerFired):
668         (RunLoop::TimerBase::TimerBase):
669         (RunLoop::TimerBase::~TimerBase):
670         (RunLoop::TimerBase::start):
671         (RunLoop::TimerBase::stop):
672         (RunLoop::TimerBase::isActive):
673
674 2010-06-30  Sam Weinig  <sam@webkit.org>
675
676         Reviewed by Darin Adler.
677
678         Patch for https://bugs.webkit.org/show_bug.cgi?id=41426
679         Add ImmutableArray class and WKArrayRef API to go with it. This will be used
680         in a few follow up patches.
681
682         * Shared/ImmutableArray.cpp: Added.
683         (WebKit::ImmutableArray::ImmutableArray):
684         (WebKit::ImmutableArray::~ImmutableArray):
685         * Shared/ImmutableArray.h: Added.
686         * UIProcess/API/C/WKAPICast.h:
687         * UIProcess/API/C/WKArray.cpp: Added.
688         * UIProcess/API/C/WKArray.h: Added.
689         * UIProcess/API/C/WKBase.h:
690         * WebKit2.xcodeproj/project.pbxproj:
691         * mac/WebKit2.exp:
692         * win/WebKit2.vcproj:
693
694 2010-06-30  Anders Carlsson  <andersca@apple.com>
695
696         Reviewed by Adam Roben.
697
698         Add WebProcessProxy::send
699         https://bugs.webkit.org/show_bug.cgi?id=41416
700
701         * Platform/CoreIPC/Connection.h:
702         * UIProcess/ChunkedUpdateDrawingAreaProxy.cpp:
703         (WebKit::ChunkedUpdateDrawingAreaProxy::setSize):
704         (WebKit::ChunkedUpdateDrawingAreaProxy::setPageIsVisible):
705         (WebKit::ChunkedUpdateDrawingAreaProxy::update):
706         * UIProcess/WebContext.cpp:
707         (WebKit::WebContext::postMessageToInjectedBundle):
708         * UIProcess/WebPageProxy.cpp:
709         (WebKit::WebPageProxy::initializeWebPage):
710         (WebKit::WebPageProxy::reinitializeWebPage):
711         (WebKit::WebPageProxy::close):
712         (WebKit::WebPageProxy::tryClose):
713         (WebKit::WebPageProxy::loadURL):
714         (WebKit::WebPageProxy::stopLoading):
715         (WebKit::WebPageProxy::reload):
716         (WebKit::WebPageProxy::goForward):
717         (WebKit::WebPageProxy::goBack):
718         (WebKit::WebPageProxy::setFocused):
719         (WebKit::WebPageProxy::setActive):
720         (WebKit::WebPageProxy::mouseEvent):
721         (WebKit::WebPageProxy::wheelEvent):
722         (WebKit::WebPageProxy::keyEvent):
723         (WebKit::WebPageProxy::receivedPolicyDecision):
724         (WebKit::WebPageProxy::runJavaScriptInMainFrame):
725         (WebKit::WebPageProxy::getRenderTreeExternalRepresentation):
726         (WebKit::WebPageProxy::preferencesDidChange):
727         * UIProcess/WebProcessProxy.cpp:
728         (WebKit::WebProcessProxy::WebProcessProxy):
729         (WebKit::WebProcessProxy::sendMessage):
730         * UIProcess/WebProcessProxy.h:
731         (WebKit::WebProcessProxy::connection):
732         (WebKit::WebProcessProxy::send):
733
734 2010-06-29  Anders Carlsson  <andersca@apple.com>
735
736         Reviewed by Sam Weinig.
737
738         Add a private Message class template
739         https://bugs.webkit.org/show_bug.cgi?id=41370
740
741         * Platform/CoreIPC/Connection.h:
742         (CoreIPC::Connection::Message::Message):
743         (CoreIPC::Connection::Message::arguments):
744
745 2010-06-28  John Gregg  <johnnyg@google.com>
746
747         Unreviewed, build fix (removing merge conflict from previous).
748
749         * Configurations/FeatureDefines.xcconfig:
750
751 2010-06-23  John Gregg  <johnnyg@google.com>
752
753         Reviewed by Kent Tamura.
754
755         add ENABLE_DIRECTORY_UPLOAD build support
756         https://bugs.webkit.org/show_bug.cgi?id=41100
757
758         * Configurations/FeatureDefines.xcconfig:
759
760 2010-06-28  Sam Weinig  <sam@webkit.org>
761
762         Rubber-stamped Geoffrey Garen.
763
764         Add WKBundleFrameIsMainFrame to exports file.
765
766         * mac/WebKit2.exp:
767
768 2010-06-28  Sam Weinig  <sam@webkit.org>
769
770         Reviewed by Anders Carlsson.
771
772         Patch for https://bugs.webkit.org/show_bug.cgi?id=41288
773         WebKit2: Add frame API for InjectedBundle code
774
775         * WebKit2.xcodeproj/project.pbxproj:
776         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: Added.
777         (WKBundleFrameIsMainFrame):
778         (WKBundleFrameGetURL):
779         * WebProcess/InjectedBundle/API/c/WKBundleFrame.h: Added.
780         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
781         (WKBundlePageGetMainFrame):
782         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
783         * WebProcess/WebPage/WebFrame.cpp:
784         (WebKit::WebFrame::isMainFrame):
785         (WebKit::WebFrame::url):
786         * WebProcess/WebPage/WebFrame.h:
787         * WebProcess/WebPage/WebPage.cpp:
788         * WebProcess/WebPage/WebPage.h:
789         (WebKit::WebPage::mainFrame):
790         * mac/WebKit2.exp:
791         * win/WebKit2.vcproj:
792
793 2010-06-27  Mark Rowe  <mrowe@apple.com>
794
795         Rubber-stamped by Maciej Stachowiak.
796
797         Update guards related to blocks to check whether __BLOCKS__ is defined, rather than checking its value.
798         This matches how similar checks are performed in system headers, and avoids a compile error when __BLOCKS__
799         is not defined.
800
801         * UIProcess/API/C/WKPage.cpp:
802         * UIProcess/API/C/WKPage.h:
803         * UIProcess/API/C/WKPagePrivate.h:
804
805 2010-06-26  Tony Gentilcore  <tonyg@chromium.org>
806
807         Reviewed by Dimitri Glazkov.
808
809         Add an ENABLE_WEB_TIMING option for enabling Web Timing support.
810         https://bugs.webkit.org/show_bug.cgi?id=38924
811
812         * Configurations/FeatureDefines.xcconfig:
813
814 2010-06-25  Steve Falkenburg  <sfalken@apple.com>
815
816         Windows build fix.
817
818         * win/WebKit2.vcproj:
819
820 2010-06-25  Ada Chan  <adachan@apple.com>
821
822         Rubber-stamped by Mark Rowe.
823
824         Add additional include search paths relative to $(WebKitLibrariesDir) to fix a build.
825
826         * win/WebKit2.vcproj:
827
828 2010-06-25  Sam Weinig  <sam@webkit.org>
829
830         Reviewed by Anders Carlsson.
831
832         WKBundlePageRenderTreeExternalRepresentation really needs to be 
833         WKBundlePageCopyRenderTreeExternalRepresentation so we don't have dangling
834         pointers and adhere to naming conventions.
835
836         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
837         (WKBundlePageCopyRenderTreeExternalRepresentation):
838         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
839         * mac/WebKit2.exp:
840
841 2010-06-24  Steve Falkenburg  <sfalken@apple.com>
842
843         Windows build fix.
844
845         * win/WebKit2.make: Added.
846         * win/WebKit2.submit.sln: Added.
847
848 2010-06-24  Steve Falkenburg  <sfalken@apple.com>
849
850         Windows build fix.
851
852         * win/WebKit2WebProcess.vcproj:
853
854 2010-06-24  Sam Weinig  <sam@webkit.org>
855
856         Reviewed by Brady Eidson.
857
858         Add WKBundlePageRenderTreeExternalRepresentation for WebKitTestRunner.
859
860         * WebKit2.xcodeproj/project.pbxproj:
861         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
862         (WKBundlePageRenderTreeExternalRepresentation):
863         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h: Added.
864         * WebProcess/WebPage/WebPage.cpp:
865         (WebKit::WebPage::renderTreeExternalRepresentation):
866         (WebKit::WebPage::getRenderTreeExternalRepresentation):
867         * WebProcess/WebPage/WebPage.h:
868         * mac/WebKit2.exp:
869         * win/WebKit2.vcproj:
870
871 2010-06-24  John Sullivan  <sullivan@apple.com>
872
873         Rubber-stamped by Ada Chan.
874
875         * mac/WebKit2.exp:
876         Added _WKNavigationDataRelease and _WKNavigationDataRetain.
877
878 2010-06-24  John Sullivan  <sullivan@apple.com>
879
880         Rubber-stamped by Anders Carlsson.
881
882         * mac/WebKit2.exp:
883         Added _WKPageReloadFromOrigin.
884
885 2010-06-24  Sam Weinig  <sam@webkit.org>
886
887         Reviewed by Anders Carlsson.
888
889         Fix for https://bugs.webkit.org/show_bug.cgi?id=41168
890         <rdar://problem/8124605>
891         Webkit2: Add WKPageReloadFromOrigin() to match old-WebKit functionality
892
893         * UIProcess/API/C/WKPage.cpp:
894         (WKPageReload):
895         (WKPageReloadFromOrigin):
896         * UIProcess/API/C/WKPage.h:
897         * UIProcess/WebPageProxy.cpp:
898         (WebKit::WebPageProxy::reload):
899         * UIProcess/WebPageProxy.h:
900         * WebProcess/WebPage/WebPage.cpp:
901         (WebKit::WebPage::reload):
902         (WebKit::WebPage::didReceiveMessage):
903         * WebProcess/WebPage/WebPage.h:
904
905 2010-06-24  Adam Roben  <aroben@apple.com>
906
907         Windows build fix
908
909         Fixes <http://webkit.org/b/41158>.
910
911         Reviewed by Anders Carlsson.
912
913         * Shared/win/UpdateChunk.cpp: Updated header name.
914
915         * UIProcess/Plugins/win/PluginInfoStoreWin.cpp: Added.
916         (WebKit::PluginInfoStore::pluginDirectories):
917         (WebKit::PluginInfoStore::pluginPathsInDirectory):
918         (WebKit::PluginInfoStore::getPluginInfo):
919         (WebKit::PluginInfoStore::shouldUsePlugin):
920         Stubbed these out.
921
922         * win/WebKit2.vcproj: Added UIProcess/Plugins to the include path for
923         all configurations. Added UIProcess/Plugins files to the project.
924
925 2010-06-23  Anders Carlsson  <andersca@apple.com>
926
927         Reviewed by Sam Weinig.
928
929         Have the UI process compute the plug-in data
930         https://bugs.webkit.org/show_bug.cgi?id=41118
931
932         * Shared/CoreIPCSupport/WebProcessProxyMessageKinds.h:
933         (WebProcessProxyMessage::):
934         Add GetPlugin message kind.
935
936         * Shared/WebCoreArgumentCoders.h:
937         Add argument coders for PluginInfo and MimeClassInfo.
938         
939         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
940         (WebKit::safeCreateCFString):
941         (WebKit::PluginInfoStore::pluginPathsInDirectory):
942         (WebKit::PluginInfoStore::getPluginInfo):
943         Use safeCreateCFString.
944         
945         * UIProcess/WebProcessProxy.cpp:
946         (WebKit::WebProcessProxy::getPlugins):
947         Ask the plug-in info store for the plug-in list.
948
949         (WebKit::WebProcessProxy::didReceiveSyncMessage):
950         Handle GetPlugins.
951
952         * UIProcess/WebProcessProxy.h:
953         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
954         (WebKit::WebFrameLoaderClient::objectContentType):
955         Implement.
956
957         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
958         (WebKit::WebPlatformStrategies::populatePluginCache):
959         Send a sync GetPlugins message.
960
961 2010-06-23  Anders Carlsson  <andersca@apple.com>
962
963         Reviewed by Dan Bernstein.
964
965         Add ArgumentCoder for vectors.
966
967         * Platform/CoreIPC/ArgumentCoders.h:
968         (CoreIPC::):
969
970 2010-06-23  Anders Carlsson  <andersca@apple.com>
971
972         Reviewed by Dan Bernstein.
973
974         Rename WebCoreTypeArgumentMarshalling.h to WebCoreArgumentCoders.h
975
976         * Shared/WebCoreArgumentCoders.h: Copied from Shared/WebCoreTypeArgumentMarshalling.h.
977         * Shared/WebCoreTypeArgumentMarshalling.h: Removed.
978         * Shared/WebEvent.h:
979         * Shared/WebNavigationDataStore.h:
980         * Shared/WebPreferencesStore.h:
981         * Shared/mac/UpdateChunk.cpp:
982         * UIProcess/ChunkedUpdateDrawingAreaProxy.cpp:
983         * UIProcess/WebContext.cpp:
984         * UIProcess/WebPageProxy.cpp:
985         * WebKit2.xcodeproj/project.pbxproj:
986         * WebProcess/InjectedBundle/InjectedBundle.cpp:
987         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
988         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
989         * WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp:
990         * WebProcess/WebPage/WebPage.cpp:
991         * WebProcess/WebProcess.cpp:
992
993 2010-06-23  Anders Carlsson  <andersca@apple.com>
994
995         Reviewed by Dan Bernstein.
996
997         MessageIDs should always have the most significant bit zeroed out
998         https://bugs.webkit.org/show_bug.cgi?id=41112
999
1000         The most significant bit is used by the Mac implementation of CoreIPC, and
1001         should always be zero in MessageID objects.
1002
1003         * Platform/CoreIPC/Connection.cpp:
1004         (CoreIPC::Connection::waitForMessage):
1005         * Platform/CoreIPC/MessageID.h:
1006         (CoreIPC::MessageID::):
1007         (CoreIPC::MessageID::MessageID):
1008         (CoreIPC::MessageID::operator==):
1009         (CoreIPC::MessageID::fromInt):
1010         (CoreIPC::MessageID::isSync):
1011         (CoreIPC::MessageID::stripMostSignificantBit):
1012         * Platform/CoreIPC/mac/ConnectionMac.cpp:
1013         (CoreIPC::Connection::sendOutgoingMessage):
1014         (CoreIPC::createArgumentDecoder):
1015
1016 2010-06-23  John Sullivan  <sullivan@apple.com>
1017
1018         Rubber-stamped by Anders Carlsson.
1019
1020         * mac/WebKit2.exp:
1021         Added yet another symbol needed by Mac clients.
1022
1023 2010-06-23  John Sullivan  <sullivan@apple.com>
1024
1025         Rubber-stamped by Anders Carlsson.
1026
1027         * mac/WebKit2.exp:
1028         Added another symbol needed by Mac clients.
1029
1030 2010-06-23  Anders Carlsson  <andersca@apple.com>
1031
1032         Reviewed by Sam Weinig.
1033
1034         Rename SimpleArgumentCoder.h to ArgumentCoders.h
1035
1036         * Platform/CoreIPC/ArgumentCoders.h: Copied from Platform/CoreIPC/SimpleArgumentCoder.h.
1037         * Platform/CoreIPC/SimpleArgumentCoder.h: Removed.
1038         * Shared/WebCoreTypeArgumentMarshalling.h:
1039         * WebKit2.xcodeproj/project.pbxproj:
1040
1041 2010-06-23  Anders Carlsson  <andersca@apple.com>
1042
1043         Reviewed by Sam Weinig.
1044
1045         Add a plug-in info cache to WebPlatformStrategies
1046         https://bugs.webkit.org/show_bug.cgi?id=41087
1047
1048         This is in preparation for proxying the getPlugins call over to the UI process.
1049
1050         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1051         (WebKit::WebPlatformStrategies::WebPlatformStrategies):
1052         (WebKit::WebPlatformStrategies::populatePluginCache):
1053         (WebKit::WebPlatformStrategies::refreshPlugins):
1054         (WebKit::WebPlatformStrategies::getPluginInfo):
1055         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1056
1057 2010-06-23  Sam Weinig  <sam@webkit.org>
1058
1059         Reviewed by John Sullivan.
1060
1061         Stop silently ignoring crashes.
1062
1063         * WebProcess/Launching/mac/WebProcessMain.mm:
1064
1065 2010-06-23  Sam Weinig  <sam@webkit.org>
1066
1067         Reviewed by Anders Carlsson.
1068
1069         Add missing include to WKRetainPtr.
1070
1071         * UIProcess/API/cpp/WKRetainPtr.h:
1072
1073 2010-06-23  Sam Weinig  <sam@webkit.org>
1074
1075         Reviewed by Anders Carlsson.
1076
1077         Fix for https://bugs.webkit.org/show_bug.cgi?id=41073
1078         WebKit2: Flesh out more of the InjectedBundle client API
1079
1080         * WebProcess/InjectedBundle/API/c/WKBundle.h:
1081         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
1082         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1083         (WebKit::InjectedBundle::willDestroyPage):
1084         * WebProcess/InjectedBundle/InjectedBundle.h:
1085         * WebProcess/InjectedBundle/InjectedBundlePageClient.cpp:
1086         (WebKit::InjectedBundlePageClient::didStartProvisionalLoadForFrame):
1087         (WebKit::InjectedBundlePageClient::didReceiveServerRedirectForProvisionalLoadForFrame):
1088         (WebKit::InjectedBundlePageClient::didFailProvisionalLoadWithErrorForFrame):
1089         (WebKit::InjectedBundlePageClient::didCommitLoadForFrame):
1090         (WebKit::InjectedBundlePageClient::didFinishLoadForFrame):
1091         (WebKit::InjectedBundlePageClient::didFailLoadWithErrorForFrame):
1092         (WebKit::InjectedBundlePageClient::didReceiveTitleForFrame):
1093         * WebProcess/InjectedBundle/InjectedBundlePageClient.h:
1094         * WebProcess/InjectedBundle/mac/InjectedBundleMac.cpp:
1095         (WebKit::InjectedBundle::load): Add some error logging on failure to load the bundle.
1096         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1097         (WebKit::WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
1098         (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
1099         (WebKit::WebFrameLoaderClient::dispatchDidReceiveTitle):
1100         (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
1101         (WebKit::WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
1102         (WebKit::WebFrameLoaderClient::dispatchDidFailLoad):
1103         (WebKit::WebFrameLoaderClient::dispatchDidFinishLoad):
1104         * WebProcess/WebPage/WebPage.cpp:
1105         (WebKit::WebPage::close):
1106         * mac/WebKit2.exp:
1107
1108 2010-06-22  Anders Carlsson  <andersca@apple.com>
1109
1110         Reviewed by Sam Weinig.
1111
1112         Add a SimpleArgumentCoder class template that works on POD types
1113         https://bugs.webkit.org/show_bug.cgi?id=41023
1114
1115         * Platform/CoreIPC/SimpleArgumentCoder.h: Added.
1116         (CoreIPC::SimpleArgumentCoder::encode):
1117         (CoreIPC::SimpleArgumentCoder::decode):
1118         * Shared/WebCoreTypeArgumentMarshalling.h:
1119         (CoreIPC::):
1120         * WebKit2.xcodeproj/project.pbxproj:
1121
1122 2010-06-22  Anders Carlsson  <andersca@apple.com>
1123
1124         Reviewed by Sam Weinig.
1125
1126         Use the ArgumentCoder class template for decoding
1127         https://bugs.webkit.org/show_bug.cgi?id=41021
1128
1129         * Platform/CoreIPC/ArgumentCoder.h:
1130         (CoreIPC::ArgumentCoder::decode):
1131         * Platform/CoreIPC/ArgumentDecoder.h:
1132         (CoreIPC::ArgumentDecoder::decode):
1133         * Shared/WebCoreTypeArgumentMarshalling.h:
1134         (CoreIPC::):
1135
1136 2010-06-22  Anders Carlsson  <andersca@apple.com>
1137
1138         Reviewed by Dan Bernstein.
1139
1140         Change the encode functions to be specializations of a class template
1141         https://bugs.webkit.org/show_bug.cgi?id=41015
1142
1143         * Platform/CoreIPC/ArgumentCoder.h: Added.
1144         (CoreIPC::ArgumentCoder::encode):
1145         * Platform/CoreIPC/ArgumentEncoder.h:
1146         (CoreIPC::ArgumentEncoder::encode):
1147         * Shared/WebCoreTypeArgumentMarshalling.h:
1148         (CoreIPC::):
1149         * WebKit2.xcodeproj/project.pbxproj:
1150
1151 2010-06-22  Anders Carlsson  <andersca@apple.com>
1152
1153         Reviewed by Sam Weinig.
1154
1155         Implement PluginInfoStore::shouldUsePlugin.
1156
1157         * UIProcess/Plugins/PluginInfoStore.h:
1158         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
1159         (WebKit::PluginInfoStore::getPluginInfo):
1160         (WebKit::PluginInfoStore::shouldUsePlugin):
1161         * WebKit2.xcodeproj/project.pbxproj:
1162
1163 2010-06-21  Anders Carlsson  <andersca@apple.com>
1164
1165         Reviewed by Sam Weinig.
1166
1167         Support reading plug-in info from Carbon resources
1168         https://bugs.webkit.org/show_bug.cgi?id=40959
1169
1170         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
1171         (WebKit::ResourceMap::ResourceMap):
1172         (WebKit::ResourceMap::~ResourceMap):
1173         (WebKit::ResourceMap::isValid):
1174         (WebKit::getStringListResource):
1175         (WebKit::getPluginInfoFromCarbonResources):
1176         (WebKit::PluginInfoStore::getPluginInfo):
1177
1178 2010-06-21  Anders Carlsson  <andersca@apple.com>
1179
1180         Build fix.
1181
1182         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
1183         (WebKit::PluginInfoStore::getPluginInfo):
1184
1185 2010-06-21  Anders Carlsson  <andersca@apple.com>
1186
1187         Reviewed by Sam Weinig.
1188
1189         Have PluginInfoStoreMac actually get plug-in info and populate the plug-in list
1190         https://bugs.webkit.org/show_bug.cgi?id=40957
1191
1192         * UIProcess/Plugins/PluginInfoStore.cpp:
1193         (WebKit::PluginInfoStore::loadPluginsIfNecessary):
1194         (WebKit::PluginInfoStore::loadPluginsInDirectory):
1195         (WebKit::PluginInfoStore::loadPlugin):
1196         (WebKit::PluginInfoStore::getPlugins):
1197         * UIProcess/Plugins/PluginInfoStore.h:
1198         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm: Added.
1199         (WebKit::PluginInfoStore::pluginDirectories):
1200         (WebKit::PluginInfoStore::pluginPathsInDirectory):
1201         (WebKit::getPluginArchitecture):
1202         (WebKit::getPluginInfoFromPropertyLists):
1203         (WebKit::PluginInfoStore::getPluginInfo):
1204         (WebKit::PluginInfoStore::shouldUsePlugin):
1205         * WebKit2.xcodeproj/project.pbxproj:
1206
1207 2010-06-21  Anders Carlsson  <andersca@apple.com>
1208
1209         Reviewed by Sam Weinig.
1210
1211         Add PluginInfoStore class
1212         https://bugs.webkit.org/show_bug.cgi?id=40949
1213
1214         * Shared/WebPreferencesStore.cpp:
1215         (WebKit::WebPreferencesStore::WebPreferencesStore):
1216         * Shared/WebPreferencesStore.h:
1217         (WebKit::WebPreferencesStore::encode):
1218         (WebKit::WebPreferencesStore::decode):
1219         Add plugInsEnabled to the preferences store.
1220
1221         * UIProcess/Plugins: Added.
1222         * UIProcess/Plugins/PluginInfoStore.cpp: Added.
1223         (WebKit::PluginInfoStore::shared):
1224         (WebKit::PluginInfoStore::PluginInfoStore):
1225         (WebKit::PluginInfoStore::refresh):
1226         (WebKit::PluginInfoStore::getPlugins):
1227         * UIProcess/Plugins/PluginInfoStore.h: Added.
1228         * UIProcess/Plugins/mac: Added.
1229         * WebKit2.xcodeproj/project.pbxproj:
1230         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1231         (WebKit::WebPlatformStrategies::refreshPlugins):
1232         (WebKit::WebPlatformStrategies::getPluginInfo):
1233         * WebProcess/WebPage/WebPage.cpp:
1234         (WebKit::WebPage::WebPage):
1235
1236 2010-06-21  Simon Fraser  <simon.fraser@apple.com>
1237
1238         Reviewed by Anders Carlsson.
1239
1240         Rename DrawingAreaProxyUpdateChunk to ChunkedUpdateDrawingArea
1241         https://bugs.webkit.org/show_bug.cgi?id=40948
1242
1243         Rename UIProcess version of DrawingAreaUpdateChunk to ChunkedUpdateDrawingAreaProxy,
1244         and rename the Mac/Win versions of the various DrawingArea files too.
1245         
1246         Also rename the DrawingAreaUpdateChunkType enum to ChunkedUpdateDrawingAreaType.
1247
1248         * UIProcess/API/mac/WKView.mm:
1249         (-[WKView initWithFrame:pageNamespaceRef:]):
1250         * UIProcess/ChunkedUpdateDrawingArea.cpp: Removed.
1251         * UIProcess/ChunkedUpdateDrawingArea.h: Removed.
1252         * UIProcess/ChunkedUpdateDrawingAreaProxy.cpp: Added.
1253         (WebKit::ChunkedUpdateDrawingAreaProxy::ChunkedUpdateDrawingAreaProxy):
1254         (WebKit::ChunkedUpdateDrawingAreaProxy::~ChunkedUpdateDrawingAreaProxy):
1255         (WebKit::ChunkedUpdateDrawingAreaProxy::paint):
1256         (WebKit::ChunkedUpdateDrawingAreaProxy::setSize):
1257         (WebKit::ChunkedUpdateDrawingAreaProxy::setPageIsVisible):
1258         (WebKit::ChunkedUpdateDrawingAreaProxy::didSetSize):
1259         (WebKit::ChunkedUpdateDrawingAreaProxy::update):
1260         (WebKit::ChunkedUpdateDrawingAreaProxy::didReceiveMessage):
1261         * UIProcess/ChunkedUpdateDrawingAreaProxy.h: Added.
1262         (WebKit::ChunkedUpdateDrawingAreaProxy::encode):
1263         * UIProcess/DrawingAreaProxy.h:
1264         (WebKit::DrawingAreaProxy::):
1265         * UIProcess/mac/ChunkedUpdateDrawingAreaProxyMac.mm: Added.
1266         (WebKit::ChunkedUpdateDrawingAreaProxy::page):
1267         (WebKit::ChunkedUpdateDrawingAreaProxy::ensureBackingStore):
1268         (WebKit::ChunkedUpdateDrawingAreaProxy::invalidateBackingStore):
1269         (WebKit::ChunkedUpdateDrawingAreaProxy::platformPaint):
1270         (WebKit::ChunkedUpdateDrawingAreaProxy::drawUpdateChunkIntoBackingStore):
1271         * UIProcess/mac/DrawingAreaProxyUpdateChunkMac.mm: Removed.
1272         * UIProcess/win/ChunkedUpdateDrawingAreaProxyWin.cpp: Added.
1273         (WebKit::ChunkedUpdateDrawingAreaProxy::page):
1274         (WebKit::ChunkedUpdateDrawingAreaProxy::ensureBackingStore):
1275         (WebKit::ChunkedUpdateDrawingAreaProxy::invalidateBackingStore):
1276         (WebKit::ChunkedUpdateDrawingAreaProxy::platformPaint):
1277         (WebKit::ChunkedUpdateDrawingAreaProxy::drawUpdateChunkIntoBackingStore):
1278         * UIProcess/win/DrawingAreaProxyUpdateChunkWin.cpp: Removed.
1279         * UIProcess/win/WebView.cpp:
1280         (WebKit::WebView::WebView):
1281         * WebKit2.xcodeproj/project.pbxproj:
1282         * WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp: Added.
1283         (WebKit::ChunkedUpdateDrawingArea::ChunkedUpdateDrawingArea):
1284         (WebKit::ChunkedUpdateDrawingArea::~ChunkedUpdateDrawingArea):
1285         (WebKit::ChunkedUpdateDrawingArea::invalidateWindow):
1286         (WebKit::ChunkedUpdateDrawingArea::invalidateContentsAndWindow):
1287         (WebKit::ChunkedUpdateDrawingArea::invalidateContentsForSlowScroll):
1288         (WebKit::ChunkedUpdateDrawingArea::scroll):
1289         (WebKit::ChunkedUpdateDrawingArea::setNeedsDisplay):
1290         (WebKit::ChunkedUpdateDrawingArea::display):
1291         (WebKit::ChunkedUpdateDrawingArea::scheduleDisplay):
1292         (WebKit::ChunkedUpdateDrawingArea::setSize):
1293         (WebKit::ChunkedUpdateDrawingArea::suspendPainting):
1294         (WebKit::ChunkedUpdateDrawingArea::resumePainting):
1295         (WebKit::ChunkedUpdateDrawingArea::didUpdate):
1296         (WebKit::ChunkedUpdateDrawingArea::didReceiveMessage):
1297         * WebProcess/WebPage/ChunkedUpdateDrawingArea.h: Added.
1298         * WebProcess/WebPage/DrawingArea.cpp:
1299         (WebKit::DrawingArea::create):
1300         * WebProcess/WebPage/DrawingArea.h:
1301         (WebKit::DrawingArea::):
1302         * WebProcess/WebPage/DrawingAreaUpdateChunk.cpp: Removed.
1303         * WebProcess/WebPage/DrawingAreaUpdateChunk.h: Removed.
1304         * WebProcess/WebPage/mac/ChunkedUpdateDrawingAreaMac.cpp: Added.
1305         (WebKit::ChunkedUpdateDrawingArea::paintIntoUpdateChunk):
1306         * WebProcess/WebPage/mac/DrawingAreaUpdateChunkMac.cpp: Removed.
1307         * WebProcess/WebPage/win/ChunkedUpdateDrawingAreaWin.cpp: Added.
1308         (WebKit::ChunkedUpdateDrawingArea::paintIntoUpdateChunk):
1309         * WebProcess/WebPage/win/DrawingAreaUpdateChunkWin.cpp: Removed.
1310         * win/WebKit2.vcproj:
1311
1312 2010-06-21  Simon Fraser  <simon.fraser@apple.com>
1313
1314         Reviewed by Anders Carlsson.
1315
1316         Rename DrawingAreaProxyUpdateChunk to ChunkedUpdateDrawingArea
1317         https://bugs.webkit.org/show_bug.cgi?id=40948
1318         
1319         Rename DrawingAreaUpdateChunk to ChunkedUpdateDrawingArea.
1320
1321         * UIProcess/API/mac/WKView.mm:
1322         (-[WKView initWithFrame:pageNamespaceRef:]):
1323         * UIProcess/ChunkedUpdateDrawingArea.cpp: Added.
1324         (WebKit::ChunkedUpdateDrawingArea::ChunkedUpdateDrawingArea):
1325         (WebKit::ChunkedUpdateDrawingArea::~ChunkedUpdateDrawingArea):
1326         (WebKit::ChunkedUpdateDrawingArea::paint):
1327         (WebKit::ChunkedUpdateDrawingArea::setSize):
1328         (WebKit::ChunkedUpdateDrawingArea::setPageIsVisible):
1329         (WebKit::ChunkedUpdateDrawingArea::didSetSize):
1330         (WebKit::ChunkedUpdateDrawingArea::update):
1331         (WebKit::ChunkedUpdateDrawingArea::didReceiveMessage):
1332         * UIProcess/ChunkedUpdateDrawingArea.h: Added.
1333         (WebKit::ChunkedUpdateDrawingArea::encode):
1334         * UIProcess/DrawingAreaProxyUpdateChunk.cpp: Removed.
1335         * UIProcess/DrawingAreaProxyUpdateChunk.h: Removed.
1336         * UIProcess/mac/DrawingAreaProxyUpdateChunkMac.mm:
1337         (WebKit::ChunkedUpdateDrawingArea::page):
1338         (WebKit::ChunkedUpdateDrawingArea::ensureBackingStore):
1339         (WebKit::ChunkedUpdateDrawingArea::invalidateBackingStore):
1340         (WebKit::ChunkedUpdateDrawingArea::platformPaint):
1341         (WebKit::ChunkedUpdateDrawingArea::drawUpdateChunkIntoBackingStore):
1342         * UIProcess/win/DrawingAreaProxyUpdateChunkWin.cpp:
1343         (WebKit::ChunkedUpdateDrawingArea::page):
1344         (WebKit::ChunkedUpdateDrawingArea::ensureBackingStore):
1345         (WebKit::ChunkedUpdateDrawingArea::invalidateBackingStore):
1346         (WebKit::ChunkedUpdateDrawingArea::platformPaint):
1347         (WebKit::ChunkedUpdateDrawingArea::drawUpdateChunkIntoBackingStore):
1348         * UIProcess/win/WebView.cpp:
1349         (WebKit::WebView::WebView):
1350         * WebKit2.xcodeproj/project.pbxproj:
1351         * win/WebKit2.vcproj:
1352
1353 2010-06-21  Sam Weinig  <sam@webkit.org>
1354
1355         Reviewed by Anders Carlsson.
1356
1357         Patch for https://bugs.webkit.org/show_bug.cgi?id=40940
1358         Add message passing support to the WebKit2 API.
1359
1360         Adds message passing for both InjectedBundle -> WebContext
1361         and WebContext -> InjectedBundle.
1362
1363         * Shared/CoreIPCSupport/WebProcessMessageKinds.h:
1364         (WebProcessMessage::):
1365         * Shared/CoreIPCSupport/WebProcessProxyMessageKinds.h: Added.
1366         (WebProcessProxyMessage::):
1367         (CoreIPC::):
1368         * UIProcess/API/C/WKContext.cpp:
1369         (WKContextSetInjectedBundleClient):
1370         (WKContextPostMessageToInjectedBundle):
1371         * UIProcess/API/C/WKContext.h:
1372         * UIProcess/WebContext.cpp:
1373         (WebKit::WebContext::initializeInjectedBundleClient):
1374         (WebKit::WebContext::forwardMessageToWebContext):
1375         (WebKit::WebContext::postMessageToInjectedBundle):
1376         * UIProcess/WebContext.h:
1377         * UIProcess/WebContextInjectedBundleClient.cpp: Added.
1378         (WebKit::WebContextInjectedBundleClient::WebContextInjectedBundleClient):
1379         (WebKit::WebContextInjectedBundleClient::initialize):
1380         (WebKit::WebContextInjectedBundleClient::didRecieveMessageFromInjectedBundle):
1381         * UIProcess/WebContextInjectedBundleClient.h: Added.
1382         * UIProcess/WebProcessManager.cpp:
1383         (WebKit::WebProcessManager::processDidClose):
1384         * UIProcess/WebProcessProxy.cpp:
1385         (WebKit::WebProcessProxy::didReceiveInjectedBundleMessage):
1386         (WebKit::WebProcessProxy::didReceiveMessage):
1387         * UIProcess/WebProcessProxy.h:
1388         * WebKit2.xcodeproj/project.pbxproj:
1389         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
1390         (WKBundlePostMessage):
1391         * WebProcess/InjectedBundle/API/c/WKBundle.h:
1392         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1393         (WebKit::InjectedBundle::postMessage):
1394         (WebKit::InjectedBundle::didCreatePage):
1395         (WebKit::InjectedBundle::didRecieveMessage):
1396         * WebProcess/InjectedBundle/InjectedBundle.h:
1397         * WebProcess/WebProcess.cpp:
1398         (WebKit::WebProcess::loadInjectedBundle):
1399         (WebKit::WebProcess::forwardMessageToInjectedBundle):
1400         (WebKit::WebProcess::didReceiveMessage):
1401         * WebProcess/WebProcess.h:
1402         * mac/WebKit2.exp:
1403         * win/WebKit2.vcproj:
1404
1405 2010-06-21  Anders Carlsson  <andersca@apple.com>
1406
1407         Reviewed by Sam Weinig.
1408
1409         Make WebKit2 build with clang++
1410
1411         * Platform/CoreIPC/Connection.h:
1412         * UIProcess/API/mac/WKView.mm:
1413         (-[WKView keyUp:]):
1414         (-[WKView keyDown:]):
1415         * UIProcess/WebHistoryClient.h:
1416         * UIProcess/WebPageProxy.h:
1417         * WebProcess/WebPage/WebPage.h:
1418         * WebProcess/WebProcess.h:
1419
1420 2010-06-21  Satish Sampath  <satish@chromium.org>
1421
1422         Reviewed by Steve Block.
1423
1424         Speech Input Patch 0: Added compilation argument to conditionally compile pending patches.
1425
1426         Speech Input Patch 0: Added compilation argument to conditionally compile pending patches.
1427         https://bugs.webkit.org/show_bug.cgi?id=40878
1428
1429         * Configurations/FeatureDefines.xcconfig:
1430
1431 2010-06-20  Jessie Berlin  <jberlin@apple.com>
1432
1433         Reviewed by Dan Bernstein.
1434
1435         Add #if USE(PLATFORM_STRATEGIES) where WebPlatformStrategies is being used.
1436
1437         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1438         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1439         * WebProcess/WebProcess.cpp:
1440         (WebKit::WebProcess::WebProcess):
1441         Only initialize the web platform strategies if PLATFORM_STRATEGIES is being used.
1442
1443 2010-06-19  Sam Weinig  <sam@webkit.org>
1444
1445         Reviewed by Anders Carlsson.
1446
1447         Fix for https://bugs.webkit.org/show_bug.cgi?id=40882
1448         Add ability to have a WebProcess per WebContext.
1449
1450         - Move to a one-to-one correspondence of WebContexts to WebProcessProxies.
1451         - Add explicit shared contexts for general use.
1452         - Only non-shared contexts can use injected bundles.
1453
1454         * UIProcess/API/C/WKContext.cpp:
1455         (WKContextCreate):
1456         (WKContextCreateWithInjectedBundlePath):
1457         (WKContextGetSharedProcessContext):
1458         (WKContextGetSharedThreadContext):
1459         * UIProcess/API/C/WKContext.h:
1460         * UIProcess/API/C/WKContextPrivate.h:
1461         Change API for WKContext to no longer take a WKProcessModel type and instead
1462         have explicit Create/Get functions for the different kind of contexts. Added
1463         two shared contexts, one threaded, one process, and made the threaded on private
1464         for now.
1465
1466         * UIProcess/API/mac/WKView.mm:
1467         (-[WKView initWithFrame:]):
1468         Make WKViews that don't have an explicit context use the shared process
1469         context by default.
1470
1471         * UIProcess/Launcher/WebProcessLauncher.h:
1472         * UIProcess/Launcher/mac/WebProcessLauncher.mm:
1473         (WebKit::launchWebProcess):
1474         * UIProcess/Launcher/win/WebProcessLauncher.cpp:
1475         (WebKit::launchWebProcess):
1476         Use a boolean argument to note whether we are using a thread or a process
1477         instead of using the process model enum.
1478
1479         * UIProcess/ProcessModel.h:
1480         (WebKit::):
1481         Convert to using explicit Shared modifier for shared contexts.
1482
1483         * UIProcess/WebContext.cpp:
1484         (WebKit::WebContext::sharedProcessContext):
1485         (WebKit::WebContext::sharedThreadContext):
1486         (WebKit::WebContext::ensureWebProcess):
1487         (WebKit::WebContext::createWebPage):
1488         (WebKit::WebContext::reviveIfNecessary):
1489         * UIProcess/WebContext.h:
1490         (WebKit::WebContext::create):
1491         (WebKit::WebContext::process):
1492         * UIProcess/WebPageNamespace.cpp:
1493         (WebKit::WebPageNamespace::createWebPage):
1494         (WebKit::WebPageNamespace::preferencesDidChange):
1495         (WebKit::WebPageNamespace::getStatistics):
1496         * UIProcess/WebPageNamespace.h:
1497         (WebKit::WebPageNamespace::process):
1498         (WebKit::WebPageNamespace::reviveIfNecessary):
1499         Move WebProcessProxy creation logic up into WebContext.
1500
1501         * UIProcess/WebProcessManager.cpp:
1502         (WebKit::WebProcessManager::getWebProcess):
1503         (WebKit::WebProcessManager::processDidClose):
1504         * UIProcess/WebProcessManager.h:
1505         Keep a map of WebContexts to WebProcessProxies in addition to the two
1506         shared processes.
1507
1508         * UIProcess/WebProcessProxy.cpp:
1509         (WebKit::WebProcessProxy::create):
1510         (WebKit::WebProcessProxy::WebProcessProxy):
1511         (WebKit::WebProcessProxy::connect):
1512         (WebKit::WebProcessProxy::didClose):
1513         * UIProcess/WebProcessProxy.h:
1514         Store a WebContext instead of the process model.
1515
1516         * mac/WebKit2.exp:
1517         Add new functions.
1518
1519 2010-06-18  Anders Carlsson  <andersca@apple.com>
1520
1521         Reviewed by Sam Weinig.
1522
1523         Make WebCoreSystemInterface.h a C++ only header
1524         https://bugs.webkit.org/show_bug.cgi?id=40867
1525
1526         * WebKit2.xcodeproj/project.pbxproj:
1527         * WebProcess/WebCoreSupport/mac/WebSystemInterface.h:
1528         * WebProcess/WebCoreSupport/mac/WebSystemInterface.m: Removed.
1529         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: Copied from WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.m.
1530         * mac/WebKit2.exp:
1531
1532 2010-06-18  Anders Carlsson  <andersca@apple.com>
1533
1534         Reviewed by Sam Weinig.
1535
1536         Add platform strategies for WebKit2.
1537         https://bugs.webkit.org/show_bug.cgi?id=40863
1538
1539         * WebKit2.xcodeproj/project.pbxproj:
1540         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: Added.
1541         (WebKit::WebPlatformStrategies::initialize):
1542         (WebKit::WebPlatformStrategies::WebPlatformStrategies):
1543         (WebKit::WebPlatformStrategies::createPluginStrategy):
1544         (WebKit::WebPlatformStrategies::refreshPlugins):
1545         (WebKit::WebPlatformStrategies::getPluginInfo):
1546         * WebProcess/WebCoreSupport/WebPlatformStrategies.h: Added.
1547         * WebProcess/WebProcess.cpp:
1548         (WebKit::WebProcess::WebProcess):
1549
1550 2010-06-18  Sam Weinig  <weinig@apple.com>
1551
1552         Rolling http://trac.webkit.org/changeset/61297 back in.
1553
1554         * WebKit2.xcodeproj/project.pbxproj:
1555         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp: Added.
1556         (WKBundlePageSetClient):
1557         (WKBundlePageGetMainFrameURL):
1558         * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Added.
1559         * WebProcess/InjectedBundle/InjectedBundlePageClient.cpp: Added.
1560         (WebKit::InjectedBundlePageClient::InjectedBundlePageClient):
1561         (WebKit::InjectedBundlePageClient::initialize):
1562         (WebKit::InjectedBundlePageClient::didClearWindowObjectForFrame):
1563         * WebProcess/InjectedBundle/InjectedBundlePageClient.h: Added.
1564         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1565         (WebKit::WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld):
1566         * WebProcess/WebPage/WebPage.cpp:
1567         (WebKit::WebPage::initializeInjectedBundleClient):
1568         (WebKit::WebPage::mainFrameURL):
1569         * WebProcess/WebPage/WebPage.h:
1570         (WebKit::WebPage::injectedBundleClient):
1571         * mac/WebKit2.exp:
1572         * win/WebKit2.vcproj:
1573
1574 2010-06-17  Anders Carlsson  <andersca@apple.com>
1575
1576         Reviewed by Sam Weinig.
1577
1578         Fix a race condition during startup where we would never send the InitializeConnection message to the server.
1579
1580         * Platform/CoreIPC/mac/ConnectionMac.cpp:
1581         (CoreIPC::Connection::open):
1582
1583 2010-06-17  Ada Chan  <adachan@apple.com>
1584
1585         Rolling out http://trac.webkit.org/changeset/61297 due to build errors.
1586
1587         * WebKit2.xcodeproj/project.pbxproj:
1588         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp: Removed.
1589         * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Removed.
1590         * WebProcess/InjectedBundle/InjectedBundlePageClient.cpp: Removed.
1591         * WebProcess/InjectedBundle/InjectedBundlePageClient.h: Removed.
1592         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1593         (WebKit::WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld):
1594         * WebProcess/WebPage/WebPage.cpp:
1595         * WebProcess/WebPage/WebPage.h:
1596         * mac/WebKit2.exp:
1597         * win/WebKit2.vcproj:
1598
1599 2010-06-15  Sam Weinig  <sam@webkit.org>
1600
1601         Reviewed by Anders Carlsson.
1602
1603         Fix for <rdar://problem/8010805>
1604         Assertion failure ("mainThreadPthread") in isMainThread() mousing over cnn.com in Mini Browser
1605
1606         Don't use WebCore::String::operator NSString*() from the UIProcess, since it uses
1607         StringImpl::createCFString() which expects to be called from WebCore's main thread.
1608
1609         * UIProcess/API/mac/PageClientImpl.h:
1610         * UIProcess/API/mac/PageClientImpl.mm:
1611         (WebKit::nsStringFromWebCoreString):
1612         (WebKit::PageClientImpl::toolTipChanged):
1613         * UIProcess/API/mac/WKView.mm:
1614         (-[WKView view:stringForToolTip:point:userData:]):
1615
1616 2010-06-15  Sam Weinig  <sam@webkit.org>
1617
1618         Reviewed by Anders Carlsson.
1619
1620         Fix for https://bugs.webkit.org/show_bug.cgi?id=40630
1621         WebKit2: Add mechanism to inject code into the WebProcess on startup
1622
1623         Add initial InjectedBundle support.
1624
1625         * Shared/CoreIPCSupport/WebProcessMessageKinds.h:
1626         (WebProcessMessage::):
1627         Add new LoadInjectedBundle message kind.
1628
1629         * UIProcess/API/C/WKContext.cpp:
1630         (toWK):
1631         (WKContextCreate):
1632         (WKContextCreateWithInjectedBundlePath):
1633         * UIProcess/API/C/WKContext.h:
1634         Rename WKContextCreateWithProcessModel to WKContextCreate and add
1635         WKContextCreateWithInjectedBundlePath for creating a context with
1636         a bundle.
1637
1638         * UIProcess/WebContext.cpp:
1639         (WebKit::WebContext::WebContext):
1640         * UIProcess/WebContext.h:
1641         (WebKit::WebContext::create):
1642         (WebKit::WebContext::processModel):
1643         (WebKit::WebContext::bundlePath):
1644         * UIProcess/WebPageNamespace.cpp:
1645         (WebKit::WebPageNamespace::ensureWebProcess):
1646         (WebKit::WebPageNamespace::reviveIfNecessary):
1647         * UIProcess/WebProcessManager.cpp:
1648         (WebKit::WebProcessManager::getWebProcess):
1649         * UIProcess/WebProcessManager.h:
1650         * UIProcess/WebProcessProxy.cpp:
1651         (WebKit::WebProcessProxy::create):
1652         (WebKit::WebProcessProxy::WebProcessProxy):
1653         * UIProcess/WebProcessProxy.h:
1654         Thread the bundle path through process creation.
1655
1656         * WebProcess/InjectedBundle: Added.
1657         * WebProcess/InjectedBundle/API: Added.
1658         * WebProcess/InjectedBundle/API/c: Added.
1659         * WebProcess/InjectedBundle/API/c/WKBundle.cpp: Added.
1660         (WKBundleSetClient):
1661         * WebProcess/InjectedBundle/API/c/WKBundle.h: Added.
1662         * WebProcess/InjectedBundle/API/c/WKBundleAPICast.h: Added.
1663         (WebKit::):
1664         (toWK):
1665         (toRef):
1666         * WebProcess/InjectedBundle/API/c/WKBundleBase.h: Added.
1667         * WebProcess/InjectedBundle/API/c/WKBundleInitialize.h: Added.
1668         * WebProcess/InjectedBundle/InjectedBundle.cpp: Added.
1669         (WebKit::InjectedBundle::InjectedBundle):
1670         (WebKit::InjectedBundle::~InjectedBundle):
1671         (WebKit::InjectedBundle::initializeClient):
1672         (WebKit::InjectedBundle::didCreatePage):
1673         * WebProcess/InjectedBundle/InjectedBundle.h: Added.
1674         (WebKit::InjectedBundle::create):
1675         Add bundle boilerplate.
1676
1677         * WebProcess/InjectedBundle/mac: Added.
1678         * WebProcess/InjectedBundle/mac/InjectedBundleMac.cpp: Added.
1679         (WebKit::InjectedBundle::load):
1680         Load the InjectedBundle using CFBundle.
1681
1682         * WebProcess/InjectedBundle/win: Added.
1683         * WebProcess/InjectedBundle/win/InjectedBundleWin.cpp: Added.
1684         (WebKit::pathGetFileName):
1685         (WebKit::directoryName):
1686         (WebKit::InjectedBundle::load):
1687         Load the InjectedBundle using HMODULE.
1688
1689         * WebProcess/WebPage/WebPage.cpp:
1690         (WebKit::WebPage::WebPage):
1691         Add initial bundle callback for page creation. More to come.
1692
1693         * WebProcess/WebProcess.cpp:
1694         (WebKit::WebProcess::loadInjectedBundle):
1695         (WebKit::WebProcess::didReceiveMessage):
1696         * WebProcess/WebProcess.h:
1697         (WebKit::WebProcess::injectedBundle):
1698         Load the InjectedBundle on LoadInjectedBundle message.
1699
1700         * WebKit2.xcodeproj/project.pbxproj:
1701         * mac/WebKit2.exp:
1702         * win/WebKit2.vcproj:
1703         * win/WebKit2Generated.make:
1704         Add the new files.
1705
1706 2010-06-15  Darin Adler  <darin@apple.com>
1707
1708         Reviewed by Adam Barth.
1709
1710         Move functions out of Frame class that were marked "move to Chrome"
1711         https://bugs.webkit.org/show_bug.cgi?id=39636
1712
1713         * WebProcess/WebPage/WebPage.cpp:
1714         (WebKit::WebPage::tryClose): Call shouldClose on FrameLoader instead of
1715         going through Frame.
1716
1717 2010-06-14  Steve Falkenburg  <sfalken@apple.com>
1718
1719         Windows build fix.
1720         Reorder build event to fix cygwin path issue.
1721
1722         * win/WebKit2Generated.vcproj:
1723
1724 2010-06-14  Steve Falkenburg  <sfalken@apple.com>
1725
1726         Windows build fix.
1727         Add build failure stopping code.
1728
1729         * win/WebKit2WebProcess.vcproj:
1730
1731 2010-06-14  Steve Falkenburg  <sfalken@apple.com>
1732
1733         Windows build fix.
1734         Add build failure stopping code.
1735
1736         * win/WebKit2Generated.vcproj:
1737
1738 2010-06-14  Ada Chan  <adachan@apple.com>
1739
1740         Rubber-stamped by Steve Falkenburg.
1741
1742         - Fix the release configuration to use release.vsprops.
1743         - Add Debug_Internal and Debug_All configurations to the WebKit2WebProcess project.
1744         - Fix launchWebProcess() to get the right path to the WebKit2WebProcess executable.
1745
1746         * UIProcess/Launcher/win/WebProcessLauncher.cpp:
1747         (WebKit::launchWebProcess):
1748         * win/WebKit2WebProcess.vcproj:
1749
1750 2010-06-12  Ada Chan  <adachan@apple.com>
1751
1752         Unreviewed fix for a linking error with WebKit2LocalizableStringsBundle for Windows release build.
1753
1754         * WebProcess/win/WebLocalizableStrings.cpp:
1755         (findCachedString):
1756
1757 2010-06-11  Sam Weinig  <sam@webkit.org>
1758
1759         Reviewed by Mark Rowe.
1760
1761         Use -Os for optimized builds instead of -02. -02 wasn't giving the 
1762         right trade off at this time.
1763
1764         * Configurations/Base.xcconfig:
1765
1766 2010-06-11  Sam Weinig  <sam@webkit.org>
1767
1768         Reviewed by Anders Carlsson.
1769
1770         Move WKRetain and WKRelease overloaded functions out of WKRetainPtr
1771         and into the files of the type they overload (eg, WKRetain(WKFrameRef 
1772         moves to WKFrame.h)).
1773
1774         * UIProcess/API/C/WKBase.h:
1775         * UIProcess/API/C/WKContext.h:
1776         * UIProcess/API/C/WKFrame.h:
1777         * UIProcess/API/C/WKFramePolicyListener.h:
1778         * UIProcess/API/C/WKNavigationData.h:
1779         * UIProcess/API/C/WKPage.h:
1780         * UIProcess/API/C/WKPageNamespace.h:
1781         * UIProcess/API/C/WKPreferences.h:
1782         * UIProcess/API/C/WKString.h:
1783         * UIProcess/API/C/WKURL.h:
1784         * UIProcess/API/cpp/WKRetainPtr.h:
1785         * UIProcess/API/win/WKView.h:
1786
1787 2010-06-10  John Sullivan  <sullivan@apple.com>
1788
1789         Reviewed by Dan Bernstein.
1790
1791         * mac/WebKit2.exp:
1792         Added another symbol needed by Mac clients.
1793
1794 2010-06-09  Ilya Tikhonovsky  <loislo@chromium.org>
1795
1796         Unreviewed build fix.
1797
1798         * WebProcess/WebCoreSupport/WebInspectorClient.h:
1799
1800 2010-06-09  Ilya Tikhonovsky  <loislo@chromium.org>
1801
1802         Unreviewed build fix.
1803
1804         WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
1805         data from inspected page to WebInspector as JSON string via http. The native
1806         serialization to JSON string is supported by InspectorValue's classes. This patch
1807         has the implementation of sendMessageToFrontend function. WebKit version of it still
1808         uses ScriptFunctionCall and will be switched to another transport a little bit later.
1809         https://bugs.webkit.org/show_bug.cgi?id=40134
1810
1811         * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
1812         (WebKit::WebInspectorClient::sendMessageToFrontend):
1813         * WebProcess/WebCoreSupport/WebInspectorClient.h:
1814
1815 2010-06-08  Anders Carlsson  <andersca@apple.com>
1816
1817         Reviewed by John Sullivan.
1818
1819         <rdar://problem/8071268> WebKit2 URLs are displayed as 1-character strings in log statements
1820
1821         Create a CFString from our WebCore string and then create the CFURL from the CFString.
1822
1823         * UIProcess/API/C/cf/WKURLCF.cpp:
1824         (WKURLCopyCFURL):
1825
1826 2010-06-08  John Sullivan  <sullivan@apple.com>
1827
1828         Rubber-stamped by Anders Carlsson.
1829
1830         * mac/WebKit2.exp:
1831         Added _WKPageGetEstimatedProgress and _WKFrameGetPage
1832
1833 2010-06-08  Anders Carlsson  <andersca@apple.com>
1834
1835         Reviewed by John Sullivan.
1836
1837         Would like a way to query WKPageRef for the current progress value
1838         https://bugs.webkit.org/show_bug.cgi?id=40310
1839         <rdar://problem/8071299>
1840
1841         Add WKPageGetEstimatedProgress. Remove the progress parameter from the didChangeProgress
1842         loader client callback function.
1843
1844         * UIProcess/API/C/WKPage.cpp:
1845         (WKPageGetEstimatedProgress):
1846         * UIProcess/API/C/WKPage.h:
1847         * UIProcess/WebLoaderClient.cpp:
1848         (WebKit::WebLoaderClient::didChangeProgress):
1849         * UIProcess/WebLoaderClient.h:
1850         * UIProcess/WebPageProxy.cpp:
1851         (WebKit::WebPageProxy::WebPageProxy):
1852         (WebKit::WebPageProxy::close):
1853         (WebKit::WebPageProxy::didStartProgress):
1854         (WebKit::WebPageProxy::didChangeProgress):
1855         (WebKit::WebPageProxy::didFinishProgress):
1856         (WebKit::WebPageProxy::processDidExit):
1857         * UIProcess/WebPageProxy.h:
1858         (WebKit::WebPageProxy::estimatedProgress):
1859
1860 2010-06-08  Anders Carlsson  <andersca@apple.com>
1861
1862         Reviewed by John Sullivan.
1863
1864         Would like a way to tell which WKPageRef a WKFrameRef is part of
1865         https://bugs.webkit.org/show_bug.cgi?id=40308
1866         <rdar://problem/8071251>
1867
1868         Add and implement WKFrameGetPage.
1869
1870         * UIProcess/API/C/WKFrame.cpp:
1871         (WKFrameGetPage):
1872         * UIProcess/API/C/WKFrame.h:
1873         * UIProcess/WebFrameProxy.h:
1874         (WebKit::WebFrameProxy::page):
1875
1876 2010-06-08  John Sullivan  <sullivan@apple.com>
1877
1878         Rubber-stamped by Mark Rowe.
1879
1880         * mac/WebKit2.exp:
1881         Added a few more symbols needed by Mac clients.
1882
1883 2010-06-08  MORITA Hajime  <morrita@google.com>
1884
1885         Unreviewed. An attempt to fix test break.
1886
1887         * Configurations/FeatureDefines.xcconfig:
1888
1889 2010-06-06  MORITA Hajime  <morrita@google.com>
1890
1891         Unreviewd, follow up to r60820
1892
1893         https://bugs.webkit.org/show_bug.cgi?id=40219
1894         [Mac] ENABLE_METER_TAG should be enabled
1895         
1896         * Configurations/FeatureDefines.xcconfig:
1897
1898 2010-06-05  Mark Rowe  <mrowe@apple.com>
1899
1900         Rubber-stamped by Dan Bernstein.
1901
1902         <rdar://problem/8063622> Failure to launch WebProcess.app when framework is outside of the build directory
1903
1904         * Configurations/WebProcess.xcconfig:
1905
1906 2010-06-04  John Sullivan  <sullivan@apple.com>
1907
1908         Rubber-stamped by Ada Chan.
1909
1910         Added a couple of symbols needed to start using WKFrameRefs in Mac clients.
1911
1912         * mac/WebKit2.exp:
1913         Added _WKFrameRelease and _WKFrameRetain.
1914
1915 2010-06-04  Ada Chan  <adachan@apple.com>
1916
1917         Reviewed by Anders Carlsson.
1918
1919         http://bugs.webkit.org/show_bug.cgi?id=40186
1920         
1921         Need to close WebPageProxy when the WebView is destroyed.
1922         Also, WebPageProxy shouldn't hold an OwnPtr to the PageClient, which is the WebView on Windows.
1923
1924         * UIProcess/WebPageProxy.cpp:
1925         (WebKit::WebPageProxy::WebPageProxy):
1926         (WebKit::WebPageProxy::setPageClient):
1927         * UIProcess/WebPageProxy.h:
1928         * UIProcess/win/WebView.cpp:
1929         (WebKit::WebView::close):
1930
1931 2010-06-03  Ada Chan  <adachan@apple.com>
1932
1933         Reviewed by Adam Roben.
1934
1935         https://bugs.webkit.org/show_bug.cgi?id=40152
1936         
1937         Need to remove the WebView from WindowMessageBroadcaster's listeners list when the WebView is destroyed.
1938
1939         * UIProcess/API/win/WKView.cpp:
1940         (WKViewSetHostWindow): Expose API to change the host window of a WKView.
1941         (WKViewWindowAncestryDidChange): Expose API to allow clients to notify WebKit when a WKView's window ancestry has changed.
1942         * UIProcess/API/win/WKView.h:
1943         * UIProcess/win/WebView.cpp:
1944         (WebKit::WebView::wndProc): Set the WebView's host window to 0 when it's destroyed.  setHostWindow() will call 
1945         windowAncestryDidChange(), which will remove this WebView from the WindowMessageBroadcaster's listeners list.
1946         (WebKit::WebView::WebView): Initialize m_isBeingDestroyed.
1947         (WebKit::WebView::setHostWindow): Update the window's parent window and call windowAncestryDidChange().
1948         (WebKit::WebView::close): Set the host window to 0.
1949         * UIProcess/win/WebView.h:
1950
1951 2010-06-04  Tony Gentilcore  <tonyg@chromium.org>
1952
1953         Reviewed by Adam Barth.
1954
1955         Utilize new takeFirst() method where appropriate.
1956         https://bugs.webkit.org/show_bug.cgi?id=40089
1957
1958         * Platform/CoreIPC/ArgumentDecoder.cpp:
1959         (CoreIPC::ArgumentDecoder::removeAttachment):
1960
1961 2010-06-03  Ada Chan  <adachan@apple.com>
1962
1963         Reviewed by Anders Carlsson.
1964
1965         Add UIProcess\API\cpp to the list of additional include directories.
1966         Allow WKViewRef to work with WKRetainPtr on Windows.
1967
1968         * UIProcess/API/cpp/WKRetainPtr.h:
1969         * win/WebKit2.vcproj:
1970
1971 2010-06-01  Alice Liu  <alice.liu@apple.com>
1972
1973         Build fix. Not reviewed
1974
1975         * win/WebKit2Generated.make: Added WKRetainPtr.h
1976
1977 2010-06-01  John Sullivan  <sullivan@apple.com>
1978
1979         Rubber-stamped by Anders Carlsson.
1980
1981         Added _WKRetainPtr to .exp file, and added .exp file to Xcode project.
1982
1983         * WebKit2.xcodeproj/project.pbxproj:
1984         Added mac/WebKit2.exp.
1985         
1986         * mac/WebKit2.exp:
1987         Added _WKRetainPtr.
1988
1989 2010-06-01  John Sullivan  <sullivan@apple.com>
1990
1991         Rubber-stamped by Anders Carlsson.
1992
1993         Fixed typo/wordo that prevented a certain flavor of constructor from compiling.
1994
1995         * UIProcess/API/cpp/WKRetainPtr.h:
1996         (WebKit::WKRetainPtr::WKRetainPtr):
1997         Changed the mysterious "retainWKPtr" to "WKRetain".
1998
1999 2010-05-28  John Sullivan  <sullivan@apple.com>
2000
2001         Rubber-stamped by Dan Bernstein.
2002
2003         Add a using declaration for AdoptWK to match the one just added for WKRetainPtr.
2004
2005         * UIProcess/API/cpp/WKRetainPtr.h:
2006
2007 2010-05-28  Sam Weinig  <sam@webkit.org>
2008
2009         Reviewed by Anders Carlsson.
2010
2011         Add a using declaration for WKRetainPtr matching what we do for our
2012         other smart pointers and fix the destructor.
2013
2014         * UIProcess/API/cpp/WKRetainPtr.h:
2015         (WebKit::WKRetainPtr::~WKRetainPtr):
2016
2017 2010-05-25  Ada Chan  <adachan@apple.com>
2018
2019         Reviewed by Darin Adler.
2020
2021         https://bugs.webkit.org/show_bug.cgi?id=39686
2022
2023         Fix the ProjectGUID of the WebKit2 project so it doesn't conflict with the one in WebKit.        
2024
2025         * WebKit2.sln:
2026         * win/WebKit2.vcproj:
2027
2028 2010-05-24  Ada Chan  <adachan@apple.com>
2029
2030         Rubber-stamped by Mark Rowe.
2031         
2032         Build fix for 32bit systems.
2033
2034         * mac/WebKit2.exp:
2035
2036 2010-05-21  Mark Rowe  <mrowe@apple.com>
2037
2038         Reviewed by Oliver Hunt.
2039
2040         Teach WebKit2 to build in the Production configuration.
2041
2042         * Configurations/Base.xcconfig: Restrict WebKit2 to Intel, and disable the order file.
2043         * Configurations/BaseTarget.xcconfig: Fix the path to the umbrella framework directory.
2044         This path is used to locate WebCore.framework, so it needs to be relative to WebKit.framework
2045         rather than WebKit2.framework.
2046         * Configurations/WebKit2.xcconfig: Update the install path.  Add an exports file.
2047         * Configurations/WebProcess.xcconfig: Update the install path.
2048         * WebKit2.xcodeproj/project.pbxproj: Add a Production configuration.
2049         * mac/WebKit2.exp: Added.
2050
2051 2010-05-21  Steve Block  <steveblock@google.com>
2052
2053         Unreviewed build fix for WebKit2
2054
2055         Pass 0 to Page constructor for DeviceOrientationClient.
2056         See http://trac.webkit.org/changeset/59935
2057
2058         * WebProcess/WebPage/WebPage.cpp:
2059         (WebKit::WebPage::WebPage):
2060
2061 2010-05-11  Mark Rowe  <mrowe@apple.com>
2062
2063         Fix the world.
2064
2065         In r59162 a change was made to WebCore's FeatureDefines.xcconfig that enabled FILE_READER and FILE_WRITER.
2066         The author and reviewer of that patch ignored the carefully-worded warning at the top of that file asking
2067         that changes to the file be kept in sync across JavaScriptCore, WebCore and WebKit, as well as being kept
2068         in sync with build-webkit.  This led to WebCore and WebKit having different views of Document's vtable
2069         and results in crashes in Safari shortly after launch when virtual function calls resulted in the wrong
2070         function in WebCore being called.
2071
2072         We fix this by bringing the FeatureDefines.xcconfig files in to sync.  Based on the ChangeLog message and
2073         other changes in r59162 it appears that enabling FILE_WRITER was unintentional so that particular change
2074         has been reverted.
2075
2076         * Configurations/FeatureDefines.xcconfig:
2077
2078 2010-05-04  Anders Carlsson  <andersca@apple.com>
2079
2080         Reviewed by Dan Bernstein.
2081
2082         [WebKit2] The web process doesn't need to paint when the web view is hidden.
2083         https://bugs.webkit.org/show_bug.cgi?id=38549
2084
2085         * Shared/CoreIPCSupport/DrawingAreaMessageKinds.h:
2086         (DrawingAreaMessage::):
2087         Add SuspendPainting/ResumePainting messages.
2088         
2089         * UIProcess/DrawingAreaProxyUpdateChunk.cpp:
2090         (WebKit::DrawingAreaProxyUpdateChunk::setPageIsVisible):
2091         Suspend and resume painting accordingly.
2092         
2093         * WebProcess/WebPage/DrawingAreaUpdateChunk.cpp:
2094         (WebKit::DrawingAreaUpdateChunk::DrawingAreaUpdateChunk):
2095         Initialize m_shouldPaint to true.
2096         
2097         (WebKit::DrawingAreaUpdateChunk::display):
2098         Return if m_shouldPaint is false.
2099         
2100         (WebKit::DrawingAreaUpdateChunk::scheduleDisplay):
2101         Ditto.
2102         
2103         (WebKit::DrawingAreaUpdateChunk::setSize):
2104         Assert that we should paint here.
2105
2106         (WebKit::DrawingAreaUpdateChunk::suspendPainting):
2107         Set m_shouldPaint to false and stop the timer.
2108         
2109         (WebKit::DrawingAreaUpdateChunk::resumePainting):
2110         Set m_shouldPaint to true and paint if needed.
2111
2112         (WebKit::DrawingAreaUpdateChunk::didReceiveMessage):
2113         handle SuspendPainting/ResumePainting messages.
2114
2115         * WebProcess/WebPage/DrawingAreaUpdateChunk.h:
2116
2117 2010-05-03  Anders Carlsson  <andersca@apple.com>
2118
2119         Reviewed by Jon Honeycutt.
2120
2121         [WebKit2] WKView should respond to WM_SHOWWINDOW messages
2122         https://bugs.webkit.org/show_bug.cgi?id=38496
2123
2124         * UIProcess/win/WebView.cpp:
2125         (WebKit::WebView::wndProc):
2126         Add case for WM_SHOWWINDOW.
2127
2128         (WebKit::WebView::onShowWindowEvent):
2129         Update the page visibility accordingly.
2130
2131         * UIProcess/win/WebView.h:
2132
2133 2010-05-03  Anders Carlsson  <andersca@apple.com>
2134
2135         Reviewed by Dan Bernstein.
2136
2137         Get rid of PageClient::isPageVisible and pass visibility directly in setPageIsVisible
2138         https://bugs.webkit.org/show_bug.cgi?id=38493
2139
2140         * UIProcess/API/mac/PageClientImpl.h:
2141         * UIProcess/API/mac/PageClientImpl.mm:
2142         Remove isPageVisible.
2143         
2144         * UIProcess/API/mac/WKView.mm:
2145         (isViewVisible):
2146         New function (moved here from PageClientImpl).
2147         
2148         (-[WKView _updateVisibility]):
2149         Call didChangeVisibility.
2150         
2151         (-[WKView viewDidMoveToWindow]):
2152         (-[WKView viewDidHide]):
2153         (-[WKView viewDidUnhide]):
2154         Call _updateVisibility.
2155         
2156         * UIProcess/DrawingAreaProxy.h:
2157         Rename didChangeVisibility to setPageIsVisible and add an isVisible parameter.
2158         
2159         * UIProcess/DrawingAreaProxyUpdateChunk.cpp:
2160         (WebKit::DrawingAreaProxyUpdateChunk::setPageIsVisible):
2161         Don't call WebPageProxy::isVisible.
2162
2163         * UIProcess/DrawingAreaProxyUpdateChunk.h:
2164         
2165         * UIProcess/PageClient.h:
2166         Remove isPageVisible.
2167
2168         * UIProcess/WebPageProxy.cpp:
2169         * UIProcess/WebPageProxy.h:
2170         Remove isVisible.
2171
2172 2010-05-03  Anders Carlsson  <andersca@apple.com>
2173
2174         Reviewed by Adam Roben.
2175
2176         Implement PageClient::isPageVisible on Windows.
2177         https://bugs.webkit.org/show_bug.cgi?id=38483
2178
2179         * UIProcess/PageClient.h:
2180         * UIProcess/win/WebView.cpp:
2181         (WebKit::WebView::isPageVisible):
2182         * UIProcess/win/WebView.h:
2183
2184 2010-05-03  Anders Carlsson  <andersca@apple.com>
2185
2186         Fix Windows build.
2187
2188         * Platform/CoreIPC/win/ConnectionWin.cpp:
2189         (CoreIPC::Connection::sendOutgoingMessage):
2190         * Shared/win/UpdateChunk.cpp:
2191         (WebKit::UpdateChunk::UpdateChunk):
2192         (WebKit::UpdateChunk::encode):
2193         (WebKit::UpdateChunk::decode):
2194         * Shared/win/UpdateChunk.h:
2195         (WebKit::UpdateChunk::rect):
2196         * UIProcess/DrawingAreaProxy.h:
2197         * UIProcess/DrawingAreaProxyUpdateChunk.h:
2198         * UIProcess/win/DrawingAreaProxyUpdateChunkWin.cpp:
2199         (WebKit::DrawingAreaProxyUpdateChunk::drawUpdateChunkIntoBackingStore):
2200         * WebProcess/WebPage/win/DrawingAreaUpdateChunkWin.cpp:
2201         (WebKit::DrawingAreaUpdateChunk::paintIntoUpdateChunk):
2202         * WebProcess/win/WebProcessMain.cpp:
2203
2204 2010-04-30  Anders Carlsson  <andersca@apple.com>
2205
2206         Reviewed by Sam Weinig.
2207
2208         https://bugs.webkit.org/show_bug.cgi?id=38415
2209         Have the WKView notify the DrawingAreaProxy when its visibility changes.
2210
2211         * UIProcess/API/mac/PageClientImpl.h:
2212         * UIProcess/API/mac/PageClientImpl.mm:
2213         (WebKit::PageClientImpl::isPageVisible):
2214         * UIProcess/API/mac/WKView.mm:
2215         (-[WKView viewDidMoveToWindow]):
2216         (-[WKView viewDidHide]):
2217         (-[WKView viewDidUnhide]):
2218         * UIProcess/DrawingAreaProxy.h:
2219         * UIProcess/DrawingAreaProxyUpdateChunk.cpp:
2220         (WebKit::DrawingAreaProxyUpdateChunk::DrawingAreaProxyUpdateChunk):
2221         (WebKit::DrawingAreaProxyUpdateChunk::didChangeVisibility):
2222         * UIProcess/DrawingAreaProxyUpdateChunk.h:
2223         * UIProcess/PageClient.h:
2224         * UIProcess/WebPageProxy.cpp:
2225         (WebKit::WebPageProxy::isVisible):
2226         * UIProcess/WebPageProxy.h:
2227
2228 2010-05-03  Jens Alfke  <snej@chromium.org>
2229
2230         Reviewed by Darin Fisher.
2231
2232         [chromium] Add "willSendSubmitEvent" hook to WebFrameClient and FrameLoaderClient
2233         https://bugs.webkit.org/show_bug.cgi?id=38397
2234
2235         No tests (functionality is exposed only through native WebKit API.)
2236
2237         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
2238         (WebKit::WebFrameLoaderClient::dispatchWillSendSubmitEvent):
2239
2240 2010-05-01  Sam Weinig  <sam@webkit.org>
2241
2242         Reviewed by Anders Carlsson.
2243
2244         Fix for https://bugs.webkit.org/show_bug.cgi?id=38471
2245         Add generic callback mechanism
2246
2247         Added GenericCallback class replacing RenderTreeExternalRepresentationCallback
2248         and ScriptReturnValueCallback.
2249         
2250         Also,
2251         - Standardize C API callbacks to take the context last.
2252         - Standardize C API callbacks to not have the _f suffix (now the block
2253           variants have a _b suffix).
2254         - Re-write toWK and toRef methods as a set of template functions using
2255           the generic API->implementation mapping information.
2256
2257         * UIProcess/API/C/WKAPICast.h:
2258         * UIProcess/API/C/WKPage.cpp:
2259         (WKPageRunJavaScriptInMainFrame):
2260         (callRunJavaScriptBlockAndRelease):
2261         (disposeRunJavaScriptBlock):
2262         (WKPageRunJavaScriptInMainFrame_b):
2263         (WKPageRenderTreeExternalRepresentation):
2264         (WKPageRenderTreeExternalRepresentation_b):
2265         * UIProcess/API/C/WKPage.h:
2266         * UIProcess/API/C/WKPagePrivate.h:
2267         * UIProcess/GenericCallback.h: Added.
2268         (WebKit::GenericCallback::create):
2269         (WebKit::GenericCallback::~GenericCallback):
2270         (WebKit::GenericCallback::performCallbackWithReturnValue):
2271         (WebKit::GenericCallback::invalidate):
2272         (WebKit::GenericCallback::callbackID):
2273         (WebKit::GenericCallback::generateCallbackID):
2274         (WebKit::GenericCallback::GenericCallback):
2275         * UIProcess/RenderTreeExternalRepresentationCallback.cpp: Removed.
2276         * UIProcess/RenderTreeExternalRepresentationCallback.h: Removed.
2277         * UIProcess/ScriptReturnValueCallback.cpp: Removed.
2278         * UIProcess/ScriptReturnValueCallback.h: Removed.
2279         * UIProcess/WebPageProxy.cpp:
2280         (WebKit::WebPageProxy::didRunJavaScriptInMainFrame):
2281         (WebKit::WebPageProxy::didGetRenderTreeExternalRepresentation):
2282         * UIProcess/WebPageProxy.h:
2283         * WebKit2.xcodeproj/project.pbxproj:
2284         * win/WebKit2.vcproj:
2285
2286 2010-04-30  Sam Weinig  <sam@webkit.org>
2287
2288         Fix the build.
2289
2290         * Platform/CoreIPC/mac/ConnectionMac.cpp: Add missing #include.
2291
2292 2010-04-30  Sam Weinig  <sam@webkit.org>
2293
2294         Reviewed by Anders Carlsson.
2295
2296         https://bugs.webkit.org/show_bug.cgi?id=38413
2297         Add callback based API to get the textual representation of the RenderTree.
2298
2299         - Also ensures that any pending callbacks are invalidated if the WebPage
2300           closes (expectedly or unexpectedly).
2301         - A follow up patch will unify the callback mechanism with a common base
2302           class.
2303
2304         * Shared/CoreIPCSupport/WebPageMessageKinds.h:
2305         (WebPageMessage::):
2306         * Shared/CoreIPCSupport/WebPageProxyMessageKinds.h:
2307         (WebPageProxyMessage::):
2308         * UIProcess/API/C/WKPage.cpp:
2309         (WKPageRunJavaScriptInMainFrame_f):
2310         (WKPageRenderTreeExternalRepresentation_f):
2311         (callRenderTreeExternalRepresentationBlockAndDispose):
2312         (disposeRenderTreeExternalRepresentationBlock):
2313         (WKPageRenderTreeExternalRepresentation):
2314         * UIProcess/API/C/WKPagePrivate.h: Added.
2315         * UIProcess/RenderTreeExternalRepresentationCallback.cpp: Added.
2316         (WebKit::generateCallbackID):
2317         (WebKit::RenderTreeExternalRepresentationCallback::RenderTreeExternalRepresentationCallback):
2318         (WebKit::RenderTreeExternalRepresentationCallback::~RenderTreeExternalRepresentationCallback):
2319         (WebKit::RenderTreeExternalRepresentationCallback::performCallbackWithReturnValue):
2320         (WebKit::RenderTreeExternalRepresentationCallback::invalidate):
2321         * UIProcess/RenderTreeExternalRepresentationCallback.h: Added.
2322         (WebKit::RenderTreeExternalRepresentationCallback::create):
2323         (WebKit::RenderTreeExternalRepresentationCallback::callbackID):
2324         * UIProcess/ScriptReturnValueCallback.cpp:
2325         (WebKit::ScriptReturnValueCallback::~ScriptReturnValueCallback):
2326         (WebKit::ScriptReturnValueCallback::performCallbackWithReturnValue):
2327         (WebKit::ScriptReturnValueCallback::invalidate):
2328         * UIProcess/ScriptReturnValueCallback.h:
2329         * UIProcess/WebPageProxy.cpp:
2330         (WebKit::WebPageProxy::close):
2331         (WebKit::WebPageProxy::getRenderTreeExternalRepresentation):
2332         (WebKit::WebPageProxy::didReceiveMessage):
2333         (WebKit::WebPageProxy::didRunJavaScriptInMainFrame):
2334         (WebKit::WebPageProxy::didGetRenderTreeExternalRepresentation):
2335         (WebKit::WebPageProxy::processDidExit):
2336         * UIProcess/WebPageProxy.h:
2337         * WebKit2.xcodeproj/project.pbxproj:
2338         * WebProcess/WebPage/WebPage.cpp:
2339         (WebKit::WebPage::getRenderTreeExternalRepresentation):
2340         (WebKit::WebPage::didReceiveMessage):
2341         * WebProcess/WebPage/WebPage.h:
2342         * win/WebKit2.vcproj:
2343
2344 2010-04-30  Sam Weinig  <sam@webkit.org>
2345
2346         Reviewed by Anders Carlsson.
2347
2348         Fix for https://bugs.webkit.org/show_bug.cgi?id=38406
2349         Add support for sending messages with a size greater than 4096 bytes
2350
2351         Adds support by putting message bodies that are larger than 4096 bytes
2352         in OOL memory.
2353
2354         * Platform/CoreIPC/Connection.cpp:
2355         (CoreIPC::Connection::sendMessage):
2356         (CoreIPC::Connection::waitForMessage):
2357         (CoreIPC::Connection::sendSyncMessage):
2358         (CoreIPC::Connection::dispatchMessages):
2359         * Platform/CoreIPC/Connection.h:
2360         (CoreIPC::Connection::OutgoingMessage::OutgoingMessage):
2361         (CoreIPC::Connection::OutgoingMessage::messageID):
2362         (CoreIPC::Connection::send):
2363         (CoreIPC::Connection::sendSync):
2364         * Platform/CoreIPC/MessageID.h:
2365         (CoreIPC::MessageID::):
2366         (CoreIPC::MessageID::MessageID):
2367         (CoreIPC::MessageID::equalIgnoringFlags):
2368         (CoreIPC::MessageID::copyAddingFlags):
2369         (CoreIPC::MessageID::fromInt):
2370         (CoreIPC::MessageID::toInt):
2371         (CoreIPC::MessageID::isMessageBodyOOL):
2372         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2373         (CoreIPC::Connection::sendOutgoingMessage):
2374         (CoreIPC::createArgumentDecoder):
2375
2376 2010-04-28  Mike Thole  <mthole@apple.com>
2377
2378         Build fix, not reviewed.
2379
2380         Fix WebKit2 build by stubbing out WebFrameLoaderClient::canAuthenticateAgainstProtectionSpace().
2381
2382         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2383         (WebKit::WebFrameLoaderClient::canAuthenticateAgainstProtectionSpace):
2384         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
2385
2386 2010-04-28  Sam Weinig  <sam@webkit.org>
2387
2388         Reviewed by Mark Rowe.
2389
2390         Only build on SnowLeopard and later when using the Makefile.
2391
2392         * Makefile:
2393
2394 2010-04-27  Sam Weinig  <sam@webkit.org>
2395
2396         Reviewed by Maciej Stachowiak.
2397
2398         Fix for https://bugs.webkit.org/show_bug.cgi?id=38238
2399         Allow both WebKit and WebKit2 to link to the same WebCore.framework
2400
2401         * Configurations/WebKit2.xcconfig: Remove the OTHER_LDFLAGS. We don't
2402         need to set WebCore as a sub_umbrella of WebKit2, since we are not
2403         reexporting any of its symbols.
2404
2405 2010-04-27  Sam Weinig  <sam@webkit.org>
2406
2407         Reviewed by Geoffrey Garen.
2408
2409         Add comment about not using StringImpl::createCFString in WKStringCopyCFString.
2410
2411         * UIProcess/API/C/cf/WKStringCF.cpp:
2412         (WKStringCopyCFString):
2413
2414 2010-04-27  Sam Weinig  <sam@webkit.org>
2415
2416         Reviewed by Geoffrey Garen.
2417
2418         Remove call to StringImpl::createCFString and instead use CFStringCreateWithCharacters
2419         directly. StringImpl::createCFString only an optimization when called
2420         from the thread that WebCore is running on, which is never the case for
2421         WKStringCopyCFString. We should revisit this later, perhaps adding a
2422         threadspecific allocator. We also now honor the passed in allocator.
2423
2424         * UIProcess/API/C/cf/WKStringCF.cpp:
2425         (WKStringCopyCFString):
2426
2427 2010-04-25  Sam Weinig  <sam@webkit.org>
2428
2429         Reviewed by Maciej Stachowiak.
2430
2431         Fix for https://bugs.webkit.org/show_bug.cgi?id=38097
2432         Disentangle initializing the main thread from initializing threading
2433
2434         * UIProcess/Launcher/mac/WebProcessLauncher.mm:
2435         (WebKit::webThreadBody): Add call to initializeMainThread.
2436         * UIProcess/Launcher/win/WebProcessLauncher.cpp:
2437         (WebKit::webThreadBody): Ditto.
2438         * WebProcess/Launching/mac/WebProcessMain.mm:
2439         (main): Ditto.
2440         * WebProcess/win/WebProcessMain.cpp:
2441         (WebKit::WebProcessMain): Ditto.
2442
2443 2010-04-23  Sam Weinig  <sam@webkit.org>
2444
2445         Reviewed by Anders Carlsson.
2446
2447         https://bugs.webkit.org/show_bug.cgi?id=38065
2448         Merge mac and win DrawingAreaProxyUpdateChunk implementations.
2449
2450         * UIProcess/API/mac/WKView.mm:
2451         (-[WKView drawRect:]):
2452         * UIProcess/DrawingAreaProxy.cpp: Copied from UIProcess/mac/DrawingAreaProxy.mm.
2453         * UIProcess/DrawingAreaProxy.h: Copied from UIProcess/mac/DrawingAreaProxy.h.
2454         * UIProcess/DrawingAreaProxyUpdateChunk.cpp: Copied from UIProcess/mac/DrawingAreaProxyUpdateChunk.mm.
2455         (WebKit::DrawingAreaProxyUpdateChunk::DrawingAreaProxyUpdateChunk):
2456         (WebKit::DrawingAreaProxyUpdateChunk::paint):
2457         (WebKit::DrawingAreaProxyUpdateChunk::setSize):
2458         (WebKit::DrawingAreaProxyUpdateChunk::didSetSize):
2459         (WebKit::DrawingAreaProxyUpdateChunk::update):
2460         (WebKit::DrawingAreaProxyUpdateChunk::didReceiveMessage):
2461         * UIProcess/DrawingAreaProxyUpdateChunk.h: Copied from UIProcess/mac/DrawingAreaProxyUpdateChunk.h.
2462         * UIProcess/mac/DrawingAreaProxy.h: Removed.
2463         * UIProcess/mac/DrawingAreaProxy.mm: Removed.
2464         * UIProcess/mac/DrawingAreaProxyUpdateChunk.h: Removed.
2465         * UIProcess/mac/DrawingAreaProxyUpdateChunk.mm: Removed.
2466         * UIProcess/mac/DrawingAreaProxyUpdateChunkMac.mm: Copied from UIProcess/mac/DrawingAreaProxyUpdateChunk.mm.
2467         (WebKit::DrawingAreaProxyUpdateChunk::page):
2468         (WebKit::DrawingAreaProxyUpdateChunk::invalidateBackingStore):
2469         (WebKit::DrawingAreaProxyUpdateChunk::platformPaint):
2470         (WebKit::DrawingAreaProxyUpdateChunk::drawUpdateChunkIntoBackingStore):
2471         * UIProcess/win/DrawingAreaProxy.cpp: Removed.
2472         * UIProcess/win/DrawingAreaProxy.h: Removed.
2473         * UIProcess/win/DrawingAreaProxyUpdateChunkWin.cpp: Copied from UIProcess/win/DrawingAreaProxy.cpp.
2474         (WebKit::DrawingAreaProxyUpdateChunk::page):
2475         (WebKit::DrawingAreaProxyUpdateChunk::ensureBackingStore):
2476         (WebKit::DrawingAreaProxyUpdateChunk::invalidateBackingStore):
2477         (WebKit::DrawingAreaProxyUpdateChunk::platformPaint):
2478         (WebKit::DrawingAreaProxyUpdateChunk::drawUpdateChunkIntoBackingStore):
2479         * UIProcess/win/WebView.cpp:
2480         (WebKit::WebView::WebView):
2481         (WebKit::WebView::onPaintEvent):
2482         * WebKit2.xcodeproj/project.pbxproj:
2483         * win/WebKit2.vcproj:
2484
2485 2010-04-23  Sam Weinig  <sam@webkit.org>
2486
2487         Reviewed by Anders Carlsson.
2488
2489         Fix for https://bugs.webkit.org/show_bug.cgi?id=38059
2490         Merge mac and win DrawingAreaUpdateChunk implementations.
2491
2492         * UIProcess/win/DrawingAreaProxy.cpp:
2493         (WebKit::DrawingAreaProxy::didSetSize):
2494         (WebKit::DrawingAreaProxy::didReceiveMessage):
2495         * UIProcess/win/DrawingAreaProxy.h:
2496         * WebKit2.xcodeproj/project.pbxproj:
2497         * WebProcess/WebPage/DrawingAreaUpdateChunk.cpp: Copied from WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp.
2498         (WebKit::DrawingAreaUpdateChunk::setSize):
2499         * WebProcess/WebPage/DrawingAreaUpdateChunk.h: Copied from WebProcess/WebPage/mac/DrawingAreaUpdateChunk.h.
2500         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp: Removed.
2501         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.h: Removed.
2502         * WebProcess/WebPage/mac/DrawingAreaUpdateChunkMac.cpp: Copied from WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp.
2503         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp: Removed.
2504         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.h: Removed.
2505         * WebProcess/WebPage/win/DrawingAreaUpdateChunkWin.cpp: Copied from WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp.
2506         (WebKit::DrawingAreaUpdateChunk::paintIntoUpdateChunk):
2507         * win/WebKit2.vcproj:
2508
2509 2010-04-23  Anders Carlsson  <andersca@apple.com>
2510
2511         Reviewed by Sam Weinig.
2512
2513         Remove an assert. (It's not valid when resizing).
2514
2515         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp:
2516         (WebKit::DrawingAreaUpdateChunk::didUpdate):
2517
2518 2010-04-23  Anders Carlsson  <andersca@apple.com>
2519
2520         Fix build.
2521
2522         * UIProcess/win/DrawingAreaProxy.cpp:
2523         (WebKit::DrawingAreaProxy::paint):
2524         (WebKit::DrawingAreaProxy::setSize):
2525         (WebKit::DrawingAreaProxy::didReceiveMessage):
2526         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp:
2527         (WebKit::DrawingAreaUpdateChunk::setSize):
2528         (WebKit::DrawingAreaUpdateChunk::didReceiveMessage):
2529
2530 2010-04-22  Anders Carlsson  <andersca@apple.com>
2531
2532         Reviewed by Sam Weinig.
2533
2534         Remove an assert. (It's not valid when resizing).
2535
2536         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp:
2537         (WebKit::DrawingAreaUpdateChunk::didUpdate):
2538
2539 2010-04-22  Sam Weinig  <sam@webkit.org>
2540
2541         Reviewed by Anders Carlsson.
2542
2543         Merge the prefix headers.
2544
2545         * Configurations/BaseTarget.xcconfig:
2546         * WebKit2.xcodeproj/project.pbxproj:
2547         * WebKit2Prefix.h:
2548         * WebKit2_Prefix.pch: Removed.
2549
2550 2010-04-22  Anders Carlsson  <andersca@apple.com>
2551
2552         Reviewed by Sam Weinig.
2553
2554         Don't pass the new size when calling didSetSize, it's possible to get
2555         the size from the update chunk.
2556
2557         * UIProcess/mac/DrawingAreaProxyUpdateChunk.h:
2558         * UIProcess/mac/DrawingAreaProxyUpdateChunk.mm:
2559         (WebKit::DrawingAreaProxyUpdateChunk::didSetSize):
2560         (WebKit::DrawingAreaProxyUpdateChunk::didReceiveMessage):
2561         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp:
2562         (WebKit::DrawingAreaUpdateChunk::setSize):
2563
2564 2010-04-22  Anders Carlsson  <andersca@apple.com>
2565
2566         Reviewed by Sam Weinig.
2567
2568         Rename SetFrame and DidSetFrame to SetSize and DidSetSize.
2569
2570         * Shared/CoreIPCSupport/DrawingAreaMessageKinds.h:
2571         (DrawingAreaMessage::):
2572         * Shared/CoreIPCSupport/DrawingAreaProxyMessageKinds.h:
2573         (DrawingAreaProxyMessage::):
2574         * UIProcess/mac/DrawingAreaProxyUpdateChunk.mm:
2575         (WebKit::DrawingAreaProxyUpdateChunk::drawRectIntoContext):
2576         (WebKit::DrawingAreaProxyUpdateChunk::setSize):
2577         (WebKit::DrawingAreaProxyUpdateChunk::didReceiveMessage):
2578         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp:
2579         (WebKit::DrawingAreaUpdateChunk::setSize):
2580         (WebKit::DrawingAreaUpdateChunk::didReceiveMessage):
2581
2582 2010-04-22  Sam Weinig  <sam@webkit.org>
2583
2584         Reviewed by Anders Carlsson.
2585
2586         Fix for https://bugs.webkit.org/show_bug.cgi?id=38002
2587         Add rudimentary statistics gathering for WebKit2
2588
2589         * UIProcess/API/C/WKContext.cpp:
2590         (WKContextGetStatistics):
2591         * UIProcess/API/C/WKContextPrivate.h: Copied from WebKit2/UIProcess/API/C/WKContext.h.
2592         * UIProcess/API/C/WKPageNamespace.cpp:
2593         (WKPageNamespaceGetContext):
2594         * UIProcess/API/C/WKPageNamespace.h:
2595         * UIProcess/WebContext.cpp:
2596         (WebKit::WebContext::getStatistics):
2597         * UIProcess/WebContext.h:
2598         * UIProcess/WebPageNamespace.cpp:
2599         (WebKit::WebPageNamespace::getStatistics):
2600         * UIProcess/WebPageNamespace.h:
2601         * UIProcess/WebPageProxy.cpp:
2602         (WebKit::WebPageProxy::getStatistics):
2603         * UIProcess/WebPageProxy.h:
2604         * UIProcess/WebProcessProxy.cpp:
2605         (WebKit::WebProcessProxy::numberOfPages):
2606         * UIProcess/WebProcessProxy.h:
2607         * WebKit2.xcodeproj/project.pbxproj:
2608         * win/WebKit2.vcproj:
2609
2610 2010-04-20  Anders Carlsson  <andersca@apple.com>
2611
2612         Reviewed by Sam Weinig.
2613
2614         Don't paint the web page before we've blit the last update chunk to the backing store.
2615
2616         * UIProcess/win/DrawingAreaProxy.cpp:
2617         (WebKit::DrawingAreaProxy::update):
2618         (WebKit::DrawingAreaProxy::didReceiveMessage):
2619         * UIProcess/win/DrawingAreaProxy.h:
2620         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp:
2621         (WebKit::DrawingAreaUpdateChunk::DrawingAreaUpdateChunk):
2622         (WebKit::DrawingAreaUpdateChunk::display):
2623         (WebKit::DrawingAreaUpdateChunk::scheduleDisplay):
2624         (WebKit::DrawingAreaUpdateChunk::setSize):
2625         (WebKit::DrawingAreaUpdateChunk::didUpdate):
2626         (WebKit::DrawingAreaUpdateChunk::didReceiveMessage):
2627         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.h:
2628
2629 2010-04-20  Anders Carlsson  <andersca@apple.com>
2630
2631         Fix build.
2632
2633         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2634         (WebKit::WebFrameLoaderClient::receivedData):
2635
2636 2010-04-20  Anders Carlsson  <andersca@apple.com>
2637
2638         Reviewed by Sam Weinig.
2639
2640         Don't paint the web page before we've blit the last update chunk to the backing store
2641         https://bugs.webkit.org/show_bug.cgi?id=37896
2642
2643         * Shared/CoreIPCSupport/DrawingAreaMessageKinds.h:
2644         (DrawingAreaMessage::):
2645         * UIProcess/mac/DrawingAreaProxyUpdateChunk.h:
2646         * UIProcess/mac/DrawingAreaProxyUpdateChunk.mm:
2647         (WebKit::DrawingAreaProxyUpdateChunk::drawUpdateChunkIntoBackingStore):
2648         (WebKit::DrawingAreaProxyUpdateChunk::update):
2649         (WebKit::DrawingAreaProxyUpdateChunk::didReceiveMessage):
2650         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp:
2651         (WebKit::DrawingAreaUpdateChunk::DrawingAreaUpdateChunk):
2652         (WebKit::DrawingAreaUpdateChunk::display):
2653         (WebKit::DrawingAreaUpdateChunk::scheduleDisplay):
2654         (WebKit::DrawingAreaUpdateChunk::setSize):
2655         (WebKit::DrawingAreaUpdateChunk::didUpdate):
2656         (WebKit::DrawingAreaUpdateChunk::didReceiveMessage):
2657         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.h:
2658
2659 2010-04-20  Anders Carlsson  <andersca@apple.com>
2660
2661         Fix build.
2662
2663         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2664         (WebKit::WebChromeClient::chooseIconForFiles):
2665         * WebProcess/WebCoreSupport/WebChromeClient.h:
2666
2667 2010-04-19  Anders Carlsson  <andersca@apple.com>
2668
2669         Fix build.
2670
2671         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2672         (WebKit::WebFrameLoaderClient::dispatchDidChangeIcons):
2673         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
2674
2675 2010-04-17  Sam Weinig  <weinig@apple.com>
2676
2677         Reviewed by Jon "The Belly" Honeycutt.
2678
2679         Remove the need for a .defs file! Define WK_EXPORT.
2680
2681         * UIProcess/API/C/WKBase.h:
2682         * WebProcess/win/WebProcessMain.h:
2683         * win/WebKit2.def: Removed.
2684         * win/WebKit2.vcproj:
2685
2686 2010-04-17  Sam Weinig  <weinig@apple.com>
2687
2688         Reviewed by Adam Roben.
2689
2690         Teach windows MiniBrowser how to work with window.open()
2691         and targeted links.
2692
2693         Export WKPageSetPageUIClient.
2694
2695         * win/WebKit2.def:
2696
2697 2010-04-16  Sam Weinig  <sam@webkit.org>
2698
2699         Reviewed by Anders Carlsson.
2700
2701         Fix window.open() and targeted links.
2702
2703         * UIProcess/WebPageProxy.cpp:
2704         (WebKit::WebPageProxy::didReceiveSyncMessage): Pass in the new pageID
2705         instead of 0.
2706
2707         * WebProcess/WebProcess.cpp:
2708         (WebKit::WebProcess::createWebPage): Allow for the page to have already
2709         been created, as is the case with programmatic window opening from within
2710         WebCore (e.g. window.open() or <a target="_blank">).
2711
2712 2010-04-16  Sam Weinig  <sam@webkit.org>
2713
2714         Reviewed by Mark Rowe.
2715
2716         Don't optimize debug builds.
2717
2718         * WebKit2.xcodeproj/project.pbxproj: Define GCC_OPTIMIZATION_LEVEL correctly.
2719
2720 2010-04-16  Anders Carlsson  <andersca@apple.com>
2721
2722         Fix build.
2723
2724         * WebProcess/WebPage/WebPage.cpp:
2725         (WebKit::WebPage::runJavaScriptInMainFrame):
2726
2727 2010-04-16  Anders Carlsson  <andersca@apple.com>
2728
2729         Reviewed by Sam Weinig.
2730
2731         Fix windows build.
2732
2733         * Platform/win/RunLoopWin.cpp:
2734         (RunLoop::run):
2735         * UIProcess/Launcher/win/WebProcessLauncher.cpp:
2736         (WebKit::webThreadBody):
2737         (WebKit::launchWebProcess):
2738         * WebProcess/win/WebProcessMain.cpp:
2739         (WebKit::WebProcessMain):
2740
2741 2010-04-16  Sam Weinig  <weinig@apple.com>
2742
2743         Reviewed by Anders Carlsson.
2744
2745         Make resizing responsive on Windows.
2746
2747         - Use the same waitFor logic as do for the Mac resizing
2748           DrawingAreaUpdateChunk code.
2749
2750         * Shared/win/UpdateChunk.cpp:
2751         (WebKit::UpdateChunk::UpdateChunk):
2752         * Shared/win/UpdateChunk.h:
2753          Add a constructor that only takes an IntRect and allocates
2754          the shared memory mapping for you.
2755         * UIProcess/win/DrawingAreaProxy.cpp:
2756         (WebKit::DrawingAreaProxy::DrawingAreaProxy):
2757         (WebKit::DrawingAreaProxy::ensureBackingStore):
2758         (WebKit::DrawingAreaProxy::paint):
2759         (WebKit::DrawingAreaProxy::drawUpdateChunkIntoBackingStore):
2760         (WebKit::DrawingAreaProxy::setSize):
2761         (WebKit::DrawingAreaProxy::didSetSize):
2762         (WebKit::DrawingAreaProxy::didReceiveMessage):
2763         * UIProcess/win/DrawingAreaProxy.h:
2764         Perform wait in paint as we do on the mac.
2765
2766         * UIProcess/win/WebView.cpp:
2767         (WebKit::WebView::onSizeEvent):
2768         Change to use an IntSize.
2769
2770         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp:
2771         (WebKit::DrawingAreaUpdateChunk::paintIntoUpdateChunk):
2772         (WebKit::DrawingAreaUpdateChunk::display):
2773         (WebKit::DrawingAreaUpdateChunk::setSize):
2774         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.h:
2775         Specialize setSize() drawing and factor out painting
2776         into a helper function.
2777
2778 2010-04-16  Anders Carlsson  <andersca@apple.com>
2779
2780         Reviewed by David Hyatt.
2781
2782         Make run loops be allocated as thread specific data.
2783         https://bugs.webkit.org/show_bug.cgi?id=37723
2784
2785         * Platform/RunLoop.cpp:
2786         (RunLoop::initializeMainRunLoop):
2787         (RunLoop::current):
2788         (RunLoop::main):
2789         * Platform/RunLoop.h:
2790         * Platform/mac/RunLoopMac.mm:
2791         (RunLoop::run):
2792         (RunLoop::stop):
2793         * UIProcess/Launcher/mac/WebProcessLauncher.mm:
2794         (WebKit::webThreadBody):
2795         (WebKit::launchWebProcess):
2796         * UIProcess/ResponsivenessTimer.cpp:
2797         (WebKit::ResponsivenessTimer::ResponsivenessTimer):
2798         * WebProcess/Launching/mac/WebProcessMain.mm:
2799         (main):
2800         * WebProcess/WebProcess.cpp:
2801         (WebKit::WebProcess::isSeparateProcess):
2802
2803 2010-04-16  Sam Weinig  <weinig@apple.com>
2804
2805         Reviewed by Adam Roben.
2806
2807         Use GDI text rendering on Windows by default.
2808
2809         * WebProcess/WebPage/win/WebPageWin.cpp:
2810         (WebKit::WebPage::platformInitialize): Use the AlternateRenderingMode
2811         setting.
2812
2813 2010-04-16  Sam Weinig  <weinig@apple.com>
2814
2815         Reviewed by Adam Roben.
2816
2817         Fix crash when trying to load an invalid URL.
2818
2819         * WebProcess/WebPage/WebPage.cpp:
2820         (WebKit::WebPage::loadURL): Use constructor for ResourceRequest
2821         that takes a KURL instead of the one that takes a String. The one
2822         that takes a string expects a valid URL.
2823
2824 2010-04-16  Sam Weinig  <weinig@apple.com>
2825
2826         Reviewed by Adam Roben.
2827
2828         Make tooltips work. Thanks Adam!
2829
2830         * UIProcess/win/WebView.cpp:
2831         (WebKit::WebView::toolTipChanged): Pass the WebView's HWND, not the tooltip's.
2832
2833 2010-04-15  Anders Carlsson  <andersca@apple.com>
2834
2835         Reviewed by Adam Roben.
2836
2837         Fix build dependencies.
2838
2839         * WebKit2.sln:
2840
2841 2010-04-15  Adam Roben  <aroben@apple.com>
2842
2843         Fix Windows WebKit2 build.
2844
2845         * UIProcess/WebPageProxy.cpp:
2846         (WebKit::WebPageProxy::processDidExit):
2847         * win/WebKit2Generated.make:
2848
2849 2010-04-15  Sam Weinig  <sam@webkit.org>
2850
2851         Reviewed by Anders Carlsson.
2852
2853         Add WebHistoryClient support.
2854         https://bugs.webkit.org/show_bug.cgi?id=37671
2855
2856         Adds the following callbacks:
2857             didNavigateWithNavigationData
2858             didPerformClientRedirect
2859             didPerformServerRedirect
2860             didUpdateHistoryTitle
2861
2862         * Shared/CoreIPCSupport/WebPageProxyMessageKinds.h:
2863         (WebPageProxyMessage::):
2864         * Shared/WebNavigationDataStore.h: Added.
2865         * UIProcess/API/C/WKAPICast.h:
2866         * UIProcess/API/C/WKBase.h:
2867         * UIProcess/API/C/WKNavigationData.cpp: Added.
2868         * UIProcess/API/C/WKNavigationData.h: Added.
2869         * UIProcess/API/C/WKPage.cpp:
2870         * UIProcess/API/C/WKPage.h:
2871         * UIProcess/API/C/WebKit2.h:
2872         * UIProcess/WebHistoryClient.cpp: Copied from UIProcess/WebUIClient.cpp.
2873         * UIProcess/WebHistoryClient.h: Copied from UIProcess/WebUIClient.h.
2874         * UIProcess/WebNavigationData.cpp: Added.
2875         * UIProcess/WebNavigationData.h: Added.
2876         * UIProcess/WebPageProxy.cpp:
2877         * UIProcess/WebPageProxy.h:
2878         * WebKit2.xcodeproj/project.pbxproj:
2879         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2880         * win/WebKit2.vcproj:
2881
2882 2010-04-15  Sam Weinig  <sam@webkit.org>
2883
2884         Reviewed by Adam Roben.
2885
2886         Remove empty file configurations.
2887
2888         * win/WebKit2.vcproj:
2889
2890 2010-04-15  Sam Weinig  <sam@webkit.org>
2891
2892         Reviewed by Anders Carlsson.
2893
2894         Fix WebKit2s build. Don't return temporaries.
2895
2896         * UIProcess/API/C/cf/WKStringCF.cpp:
2897         (WKStringCreateWithCFString):
2898         * UIProcess/API/C/cf/WKURLCF.cpp:
2899         (WKURLCreateWithCFURL):
2900         (WKURLCopyCFURL):
2901
2902 2010-04-12  Geoffrey Garen  <ggaren@apple.com>
2903
2904         Reviewed by Anders Carlsson.
2905
2906         Fixed complexity and performance FIXME created by using KURL in the UI
2907         process -- it turned out that everywhere we were using KURL, we could
2908         have just used String instead. (That's how Windows WebKit works, too.)
2909
2910         I kept WKURLRef and WKStringRef distinct opaque types in the API for now,
2911         though, since there may be profit in changing their backing stores in the
2912         future, and it's nice for the API to encode a difference between generic
2913         strings and strings that are valid, canonical URLs.
2914
2915         * Shared/KURLWrapper.h: Removed. Yay!
2916
2917         * Shared/WebCoreTypeArgumentMarshalling.h: Nixed KURL marshalling functions.
2918         Old callers marshal Strings now, instead. (This is what KURL was doing
2919         under the covers, anyway.)
2920
2921         * UIProcess/API/C/WKAPICast.h:
2922         (toWK): Backed by StringImpl* now.
2923         (toURLRef): Added a disambiguating function for specifying that you want
2924         a WKURLRef, since StringImpl* converts to WKStringRef by default.
2925
2926         * UIProcess/API/C/WKFrame.cpp:
2927         (WKFrameGetProvisionalURL):
2928         (WKFrameGetURL):
2929         * UIProcess/API/C/WKPage.cpp:
2930         (WKPageLoadURL):
2931         * UIProcess/API/C/WKURL.cpp:
2932         * UIProcess/API/C/cf/WKURLCF.cpp:
2933         (WKURLCreateWithCFURL):
2934         (WKURLCopyCFURL):
2935         * UIProcess/WebFrameProxy.cpp:
2936         (WebKit::WebFrameProxy::didStartProvisionalLoad):
2937         (WebKit::WebFrameProxy::didCommitLoad):
2938         * UIProcess/WebFrameProxy.h:
2939         (WebKit::WebFrameProxy::url):
2940         (WebKit::WebFrameProxy::provisionalURL):
2941         * UIProcess/WebPageProxy.cpp:
2942         (WebKit::WebPageProxy::loadURL):
2943         (WebKit::WebPageProxy::didReceiveMessage):
2944         (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
2945         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
2946         (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
2947         (WebKit::WebPageProxy::decidePolicyForMIMEType):
2948         (WebKit::WebPageProxy::processDidExit):
2949         * UIProcess/WebPageProxy.h:
2950         (WebKit::WebPageProxy::urlAtProcessExit):
2951         * UIProcess/WebPolicyClient.cpp:
2952         (WebKit::WebPolicyClient::decidePolicyForNavigationAction):
2953         (WebKit::WebPolicyClient::decidePolicyForNewWindowAction):
2954         (WebKit::WebPolicyClient::decidePolicyForMIMEType):
2955         * UIProcess/WebPolicyClient.h:
2956         * WebKit2.xcodeproj/project.pbxproj:
2957         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2958         (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
2959         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
2960         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
2961         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2962         * WebProcess/WebPage/WebPage.cpp:
2963         (WebKit::WebPage::loadURL):
2964         (WebKit::WebPage::didReceiveMessage):
2965         * WebProcess/WebPage/WebPage.h: Replaced KURL / KURLWrapper with String.
2966
2967 2010-04-14  Anders Carlsson  <andersca@apple.com>
2968
2969         Reviewed by Sam Weinig.
2970
2971         Fix horizontal scrollbar repainting
2972         https://bugs.webkit.org/show_bug.cgi?id=37626
2973
2974         Make sure that the update chunk is flipped because that's what WebCore expects.
2975         
2976         * Shared/mac/UpdateChunk.cpp:
2977         (WebKit::UpdateChunk::createImage):
2978         * Shared/mac/UpdateChunk.h:
2979         Add new createImage member function that creates a CGImageRef from the update chunk.
2980         
2981         * UIProcess/mac/DrawingAreaProxyUpdateChunk.mm:
2982         (WebKit::DrawingAreaProxyUpdateChunk::drawUpdateChunkIntoBackingStore):
2983         Pass the right rectangle here; CoreGraphics wants it in non-flipped coordinates.
2984         
2985         (WebKit::DrawingAreaProxyUpdateChunk::ensureBackingStore):
2986         Create a flipped backing store.
2987
2988         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp:
2989         (WebKit::DrawingAreaUpdateChunk::paintIntoUpdateChunk):
2990         Flip the update chunk.
2991
2992 2010-04-14  Sam Weinig  <sam@webkit.org>
2993
2994         Reviewed by Anders Carlsson.
2995
2996         Add WKRetainPtr helper class as private header
2997         https://bugs.webkit.org/show_bug.cgi?id=37603
2998
2999         WKRetainPtr is just like RetainPtr, but works for WK types instead of
3000         CF/NS types.
3001
3002         * UIProcess/API/cpp: Added.
3003         * UIProcess/API/cpp/WKRetainPtr.h: Added.
3004         * WebKit2.xcodeproj/project.pbxproj: Add new file.
3005         * win/WebKit2.vcproj: Ditto.
3006
3007 2010-04-14  Sam Weinig  <sam@webkit.org>
3008
3009         Reviewed by Anders Carlsson.
3010
3011         Make the WebProcess a LSUIElement to suppress its icon from the Dock.
3012
3013         * WebKit2.xcodeproj/project.pbxproj:
3014         * WebProcess/Info.plist:
3015
3016 2010-04-14  Anders Carlsson  <andersca@apple.com>
3017
3018         Reviewed by Sam Weinig.
3019
3020         Factor code to paint into an update chunk out into a separate function.
3021         https://bugs.webkit.org/show_bug.cgi?id=37594
3022
3023         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp:
3024         (WebKit::DrawingAreaUpdateChunk::paintIntoUpdateChunk):
3025         (WebKit::DrawingAreaUpdateChunk::display):
3026         (WebKit::DrawingAreaUpdateChunk::setSize):
3027         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.h:
3028
3029 2010-04-13  Sam Weinig  <sam@webkit.org>
3030
3031         Reviewed by Anders Carlsson.
3032
3033         Fix reported leaks when quitting MiniBrowser with open pages.
3034
3035         * WebProcess/WebPage/WebPage.h: Make close() public.
3036         * WebProcess/WebProcess.cpp:
3037         (WebKit::WebProcess::WebProcess):
3038         (WebKit::WebProcess::removeWebPage):
3039         (WebKit::WebProcess::didClose): If the UIProcess disappears, close
3040         the live pages in an effort to not leak.
3041         * WebProcess/WebProcess.h:
3042
3043 2010-04-13  Sam Weinig  <sam@webkit.org>
3044
3045         Reviewed by Anders Carlsson.
3046
3047         Do a JS collection and clear the memory cache to improve leaks output
3048         when exiting. Only do this in debug builds as it is slow.
3049
3050         * UIProcess/API/mac/WKView.h:
3051         * UIProcess/WebProcessProxy.cpp:
3052         * WebProcess/WebPage/WebPage.cpp:
3053         * WebProcess/WebProcess.cpp:
3054         (WebKit::WebProcess::shutdown):
3055         (WebKit::WebProcess::didClose):
3056
3057 2010-04-13  Sam Weinig  <sam@webkit.org>
3058
3059         Reviewed by Adele Peterson.
3060
3061         Post a null event after calling [NSApp stop] to flush the run loop
3062         and finish teardown.
3063
3064         * Platform/mac/RunLoopMac.mm:
3065         (RunLoop::stop):
3066
3067 2010-04-12  Sam Weinig  <sam@webkit.org>
3068
3069         Reviewed by Anders Carlsson.
3070
3071         Add #ifdef so that WKView is not included on the mac if not
3072         compiling objective-c.
3073
3074         * UIProcess/API/C/WebKit2.h:
3075
3076 2010-04-12  Anders Carlsson  <andersca@apple.com>
3077
3078         Reviewed by Adam Roben.
3079
3080         Add WebKit2 solution file.
3081
3082         * WebKit2.sln: Added.
3083
3084 2010-04-11  Sam Weinig  <sam@webkit.org>
3085
3086         Reviewed by Darin Adler.
3087
3088         Fix for https://bugs.webkit.org/show_bug.cgi?id=37417
3089         Move duplicated internal CoreIPC message kinds to a
3090         header.
3091
3092         * Platform/CoreIPC/Connection.cpp:
3093         (CoreIPC::Connection::processIncomingMessage):
3094         * Platform/CoreIPC/CoreIPCMessageKinds.h: Added.
3095         (CoreIPC::CoreIPCMessage::):
3096         (CoreIPC::):
3097         * Platform/CoreIPC/mac/ConnectionMac.cpp:
3098         * WebKit2.xcodeproj/project.pbxproj:
3099         * win/WebKit2.vcproj:
3100
3101 2010-04-11  Sam Weinig  <sam@webkit.org>
3102
3103         Rubber-stamped by Anders Carlsson.
3104
3105         Disable not-implemented warnings by default for now.
3106
3107         * Shared/NotImplemented.h:
3108
3109 2010-04-10  Sam Weinig  <sam@webkit.org>
3110
3111         Reviewed by Anders Carlsson.
3112
3113         Fix for https://bugs.webkit.org/show_bug.cgi?id=37399
3114         Remove use of STL data structures from CoreIPC code
3115
3116         * Platform/CoreIPC/ArgumentDecoder.cpp:
3117         (CoreIPC::ArgumentDecoder::ArgumentDecoder):
3118         (CoreIPC::ArgumentDecoder::decodeBytes):
3119         (CoreIPC::ArgumentDecoder::removeAttachment):
3120         * Platform/CoreIPC/ArgumentDecoder.h:
3121         Use WTF::Deque instead of std::queue and WTF::Vector
3122         instead of std::vector. Replace use of malloc/free with 
3123         fastMalloc/fastFree.
3124
3125         * Platform/CoreIPC/ArgumentEncoder.cpp:
3126         (CoreIPC::ArgumentEncoder::addAttachment):
3127         (CoreIPC::ArgumentEncoder::releaseAttachments):
3128         * Platform/CoreIPC/ArgumentEncoder.h:
3129         Use WTF::Vector instead of std::list. Replace use of malloc/free
3130         with fastMalloc/fastFree.
3131
3132         * Platform/CoreIPC/Connection.cpp:
3133         (CoreIPC::Connection::sendMessage):
3134         (CoreIPC::Connection::waitForMessage):
3135         (CoreIPC::Connection::processIncomingMessage):
3136         (CoreIPC::Connection::sendOutgoingMessages):
3137         (CoreIPC::Connection::dispatchMessages):
3138         * Platform/CoreIPC/Connection.h:
3139         * Platform/CoreIPC/mac/ConnectionMac.cpp:
3140         (CoreIPC::Connection::sendOutgoingMessage):
3141         (CoreIPC::createArgumentDecoder):
3142         Use WTF::Vector instead of std::queue.
3143
3144         * Platform/RunLoop.cpp:
3145         (RunLoop::performWork):
3146         (RunLoop::scheduleWork):
3147         * Platform/RunLoop.h:
3148         Ditto.
3149
3150         * Platform/WorkQueue.h:
3151         * Platform/win/WorkQueueWin.cpp:
3152         (WorkQueue::scheduleWork):
3153         (WorkQueue::performWork):
3154         Ditto.
3155
3156 2010-04-10  Mark Rowe  <mrowe@apple.com>
3157
3158         Fix an obviously incorrect part of the Xcode configuration cleanup that resulted in debug builds
3159         asserting shortly after launch.
3160
3161         * WebKit2.xcodeproj/project.pbxproj: Fix the setting of DEBUG_DEFINES for the Debug configuration.
3162
3163 2010-04-09  Mark Rowe  <mrowe@apple.com>
3164
3165         Reviewed by Sam Weinig.
3166
3167         Bring the WebKit2 Xcode configuration in to sync with recent changes to the WebKit Xcode configuration files.
3168
3169         In particular, this updates the FEATURE_DEFINES to match those used in the other projects, and brings in
3170         the changes to support building WebKit for older Mac OS X versions from the current Mac OS X version.
3171
3172         * Configurations/Base.xcconfig:
3173         * Configurations/DebugRelease.xcconfig:
3174         * Configurations/FeatureDefines.xcconfig:
3175         * Configurations/Version.xcconfig:
3176
3177 2010-04-09  Mark Rowe  <mrowe@apple.com>
3178
3179         Reviewed by Sam Weinig.
3180
3181         Clean up the Xcode project configuration.
3182
3183         Common target settings are pulled out in to BaseTarget.xcconfig.  The majority of setting overrides are
3184         removed from the Xcode project itself.  Info.plist files are updated to match those used in other frameworks.
3185
3186         * Configurations/BaseTarget.xcconfig: Copied from WebKit2/Configurations/WebKit2.xcconfig.
3187         * Configurations/WebKit2.xcconfig:
3188         * Configurations/WebProcess.xcconfig: Copied from WebKit2/Configurations/WebKit2.xcconfig.
3189         * Info.plist:
3190         * WebKit2.xcodeproj/project.pbxproj:
3191         * WebProcess-Info.plist: Removed.
3192         * WebProcess/Info.plist: Moved from WebProcess-Info.plist.
3193
3194 2010-04-09  Mark Rowe  <mrowe@apple.com>
3195
3196         Build fix.
3197
3198         * WebProcess/WebCoreSupport/mac/WebSystemInterface.m:
3199         (InitWebCoreSystemInterface): Update for recent WKSI changes.
3200
3201 2010-04-09  Sam Weinig  <sam@webkit.org>
3202
3203         Reviewed by Darin Adler.
3204
3205         Fix for https://bugs.webkit.org/show_bug.cgi?id=37351
3206         Cannot build with build-webkit --webkit2
3207
3208         Add some headers that it seems others are not getting
3209         already.
3210
3211         * Platform/mac/WorkQueueMac.cpp: #inlude <mach/mach_port.h>
3212         * Shared/mac/UpdateChunk.cpp: #inlude <mach/vm_map.h>
3213
3214 2010-04-09  Anders Carlsson  <andersca@apple.com>
3215
3216         More build fixes.
3217         
3218         * WebProcess/win/WebProcessMain.h:
3219         Include windows.h here.
3220         
3221         * win/WebKit2.def:
3222         Add new exports.
3223
3224         * win/WebKit2.vcproj:
3225         Add new files.
3226
3227 2010-04-09  Sam Weinig  <sam@webkit.org>
3228
3229         Reviewed by Anders Carlsson.
3230
3231         Add new WKString.h and WKURL.h headers to top
3232         level include.
3233
3234         * UIProcess/API/C/WebKit2.h:
3235
3236 2010-04-09  Anders Carlsson  <andersca@apple.com>
3237
3238         More Windows build fixes.
3239         
3240         * Shared/NotImplemented.h:
3241         * UIProcess/API/C/cf/WKURLCF.cpp:
3242         Fix typo.
3243         
3244         (WKURLCreateWithCFURL):
3245         * UIProcess/API/C/cf/WKURLCF.h:
3246         Ditto.
3247         
3248         * win/WebKit2Generated.make:
3249         Copy the new CF headers.
3250
3251 2010-04-09  Sam Weinig  <sam@webkit.org>
3252
3253         Reviewed by Anders Carlsson.
3254
3255         Two more #include sorting issues.
3256
3257         * Shared/NotImplemented.h:
3258         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp:
3259
3260 2010-04-09  Sam Weinig  <sam@webkit.org>
3261
3262         Reviewed by Anders Carlsson.
3263
3264         Fix minor style nits found by the style-script.
3265
3266         * Platform/CoreIPC/ArgumentDecoder.h:
3267         * Platform/CoreIPC/ArgumentEncoder.cpp:
3268         * Platform/CoreIPC/Attachment.cpp:
3269         * Platform/CoreIPC/Connection.cpp:
3270         * Platform/CoreIPC/Connection.h:
3271         * Platform/CoreIPC/mac/ConnectionMac.cpp:
3272         * Platform/CoreIPC/win/ConnectionWin.cpp:
3273         * Platform/WorkQueue.h:
3274         * Platform/mac/WorkQueueMac.cpp:
3275         * Platform/win/RunLoopWin.cpp:
3276         * Shared/KURLWrapper.h:
3277         * Shared/WebCoreTypeArgumentMarshalling.h:
3278         * Shared/mac/UpdateChunk.cpp:
3279         * UIProcess/API/C/WKPage.cpp:
3280         * UIProcess/API/C/WKURL.cpp:
3281         * UIProcess/Launcher/win/WebProcessLauncher.cpp:
3282         * UIProcess/ResponsivenessTimer.cpp:
3283         * UIProcess/WebLoaderClient.cpp:
3284         * UIProcess/WebPageProxy.h:
3285         * UIProcess/WebPolicyClient.cpp:
3286         * UIProcess/WebUIClient.cpp:
3287         * UIProcess/win/DrawingAreaProxy.cpp:
3288         * UIProcess/win/WebView.cpp:
3289         * WebProcess/Launching/win/WebProcessWinMain.cpp:
3290         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3291         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3292         * WebProcess/WebCoreSupport/mac/WebSystemInterface.h:
3293         * WebProcess/WebCoreSupport/win/WebCoreLocalizedStrings.cpp:
3294         * WebProcess/WebCoreSupport/win/WebErrorsWin.cpp:
3295         * WebProcess/WebPage/WebFrame.h:
3296         * WebProcess/WebPage/WebPage.cpp:
3297         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp:
3298         * WebProcess/WebProcess.h:
3299         * WebProcess/win/WebLocalizableStrings.cpp:
3300         * WebProcess/win/WebLocalizableStrings.h:
3301         * WebProcess/win/WebProcessMain.cpp:
3302
3303 2010-04-09  Anders Carlsson  <andersca@apple.com>
3304
3305         Fix Windows build.
3306
3307         * Shared/NotImplemented.h:
3308         Include stdio.h.
3309
3310 2010-04-09  Sam Weinig  <sam@webkit.org>
3311
3312         Reviewed by Anders Carlsson.
3313
3314         Fix for https://bugs.webkit.org/show_bug.cgi?id=37347
3315         Don't use CF types in the new C API
3316
3317         Replace all uses of CF types in the C API.
3318         - Replace CFStringRef with WKStringRef.
3319         - Replace CFURLRef with WKURLRef.
3320
3321         * WebKit2.xcodeproj/project.pbxproj: Add new files.
3322
3323         * Shared/KURLWrapper.h: Added. RefCounted wrapper around KURL.
3324         * UIProcess/API/C/WKAPICast.h: Add new conversions.
3325         * UIProcess/API/C/WKBase.h: Add new types.
3326         * UIProcess/API/C/WKFrame.cpp:
3327         * UIProcess/API/C/WKFrame.h: 
3328         * UIProcess/API/C/WKPage.cpp:
3329         * UIProcess/API/C/WKPage.h:
3330         Replace uses of CF types with WK equivalents.
3331
3332         * UIProcess/API/C/WKString.cpp: Added.
3333         * UIProcess/API/C/WKString.h: Added.
3334         Represents a WebCore::StringImpl*.
3335
3336         * UIProcess/API/C/WKURL.cpp: Added.
3337         * UIProcess/API/C/WKURL.h: Added.
3338         Represents a WebKit::KURLWrapper*.
3339
3340         * UIProcess/API/C/cf: Added.
3341         * UIProcess/API/C/cf/WKStringCF.cpp: Added.
3342         * UIProcess/API/C/cf/WKStringCF.h: Added.
3343         * UIProcess/API/C/cf/WKURLCF.cpp: Added.
3344         * UIProcess/API/C/cf/WKURLCF.h: Added.
3345         CoreFoundation conversion files. Allows converting
3346          WKStringRef <-> CFStringRef
3347          WKURLRef <-> CFURLRef
3348
3349         * UIProcess/ScriptReturnValueCallback.cpp:
3350         (WebKit::ScriptReturnValueCallback::performCallbackWithReturnValue):
3351         * UIProcess/ScriptReturnValueCallback.h:
3352         * UIProcess/WebFrameProxy.cpp:
3353         (WebKit::WebFrameProxy::didStartProvisionalLoad):
3354         (WebKit::WebFrameProxy::didCommitLoad):
3355         * UIProcess/WebFrameProxy.h:
3356         (WebKit::WebFrameProxy::url):
3357         (WebKit::WebFrameProxy::provisionalURL):
3358         * UIProcess/WebLoaderClient.cpp:
3359         (WebKit::WebLoaderClient::didReceiveTitleForFrame):
3360         * UIProcess/WebLoaderClient.h:
3361         * UIProcess/WebPageProxy.cpp:
3362         (WebKit::WebPageProxy::close):
3363         (WebKit::WebPageProxy::didReceiveTitleForFrame):
3364         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
3365         (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
3366         (WebKit::WebPageProxy::decidePolicyForMIMEType):
3367         (WebKit::WebPageProxy::runJavaScriptAlert):
3368         (WebKit::WebPageProxy::didRunJavaScriptInMainFrame):
3369         (WebKit::WebPageProxy::processDidExit):
3370         * UIProcess/WebPageProxy.h:
3371         (WebKit::WebPageProxy::pageTitle):
3372         (WebKit::WebPageProxy::urlAtProcessExit):
3373         * UIProcess/WebPolicyClient.cpp:
3374         (WebKit::WebPolicyClient::decidePolicyForNavigationAction):
3375         (WebKit::WebPolicyClient::decidePolicyForNewWindowAction):
3376         (WebKit::WebPolicyClient::decidePolicyForMIMEType):
3377         * UIProcess/WebPolicyClient.h:
3378         * UIProcess/WebUIClient.cpp:
3379         (WebKit::WebUIClient::runJavaScriptAlert):
3380         * UIProcess/WebUIClient.h:
3381         Don't use CF types internally at all.
3382
3383         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3384         (WebKit::WebFrameLoaderClient::frameLoaderDestroyed):
3385         Fix typo.
3386
3387 2010-04-08  Sam Weinig  <sam@webkit.org>
3388
3389         Reviewed by Anders Carlsson.
3390
3391         Add build support for WebKit2.
3392
3393         * Configurations: Added.
3394         * Configurations/Base.xcconfig: Added.
3395         * Configurations/DebugRelease.xcconfig: Added.
3396         * Configurations/FeatureDefines.xcconfig: Added.
3397         * Configurations/Version.xcconfig: Added.
3398         * Configurations/WebKit2.xcconfig: Added.
3399         * English.lproj: Added.
3400         * English.lproj/InfoPlist.strings: Added.
3401         * Info.plist: Added.
3402         * Makefile: Added.
3403         * WebKit2.xcodeproj: Added.
3404         * WebKit2.xcodeproj/project.pbxproj: Added.
3405         * WebKit2Prefix.cpp: Added.
3406         * WebKit2Prefix.h: Added.
3407         * WebKit2_Prefix.pch: Added.
3408         * WebProcess-Info.plist: Added.
3409         * version.plist: Added.
3410         * win: Added.
3411         * win/WebKit2.def: Added.
3412         * win/WebKit2.vcproj: Added.
3413         * win/WebKit2Generated.make: Added.
3414         * win/WebKit2Generated.vcproj: Added.
3415         * win/WebKit2WebProcess.vcproj: Added.
3416
3417 2010-04-08  Anders Carlsson  <andersca@apple.com>
3418
3419         Reviewed by Sam Weinig.
3420
3421         https://bugs.webkit.org/show_bug.cgi?id=37301
3422         Add WebKit2/UIProcess directory.
3423
3424         * UIProcess: Added.
3425         * UIProcess/API: Added.
3426         * UIProcess/API/C: Added.
3427         * UIProcess/API/C/WKAPICast.h: Added.
3428         * UIProcess/API/C/WKBase.h: Added.
3429         * UIProcess/API/C/WKContext.cpp: Added.
3430         * UIProcess/API/C/WKContext.h: Added.
3431         * UIProcess/API/C/WKFrame.cpp: Added.
3432         * UIProcess/API/C/WKFrame.h: Added.
3433         * UIProcess/API/C/WKFramePolicyListener.cpp: Added.
3434         * UIProcess/API/C/WKFramePolicyListener.h: Added.
3435         * UIProcess/API/C/WKPage.cpp: Added.
3436         * UIProcess/API/C/WKPage.h: Added.
3437         * UIProcess/API/C/WKPageNamespace.cpp: Added.
3438         * UIProcess/API/C/WKPageNamespace.h: Added.
3439         * UIProcess/API/C/WKPreferences.cpp: Added.
3440         * UIProcess/API/C/WKPreferences.h: Added.
3441         * UIProcess/API/C/WebKit2.h: Added.
3442         * UIProcess/API/mac: Added.
3443         * UIProcess/API/mac/PageClientImpl.h: Added.
3444         * UIProcess/API/mac/PageClientImpl.mm: Added.
3445         * UIProcess/API/mac/WKView.h: Added.
3446         * UIProcess/API/mac/WKView.mm: Added.
3447         * UIProcess/API/mac/WKViewInternal.h: Added.
3448         * UIProcess/API/win: Added.
3449         * UIProcess/API/win/WKAPICastWin.h: Added.
3450         * UIProcess/API/win/WKBaseWin.h: Added.
3451         * UIProcess/API/win/WKView.cpp: Added.
3452         * UIProcess/API/win/WKView.h: Added.
3453         * UIProcess/Launcher: Added.
3454         * UIProcess/Launcher/WebProcessLauncher.h: Added.
3455         * UIProcess/Launcher/mac: Added.
3456         * UIProcess/Launcher/mac/WebProcessLauncher.mm: Added.
3457         * UIProcess/Launcher/win: Added.
3458         * UIProcess/Launcher/win/WebProcessLauncher.cpp: Added.
3459         * UIProcess/PageClient.h: Added.
3460         * UIProcess/ProcessModel.h: Added.
3461         * UIProcess/ResponsivenessTimer.cpp: Added.
3462         * UIProcess/ResponsivenessTimer.h: Added.
3463         * UIProcess/ScriptReturnValueCallback.cpp: Added.
3464         * UIProcess/ScriptReturnValueCallback.h: Added.
3465         * UIProcess/WebContext.cpp: Added.
3466         * UIProcess/WebContext.h: Added.
3467         * UIProcess/WebFramePolicyListenerProxy.cpp: Added.
3468         * UIProcess/WebFramePolicyListenerProxy.h: Added.
3469         * UIProcess/WebFrameProxy.cpp: Added.
3470         * UIProcess/WebFrameProxy.h: Added.
3471         * UIProcess/WebLoaderClient.cpp: Added.
3472         * UIProcess/WebLoaderClient.h: Added.
3473         * UIProcess/WebPageNamespace.cpp: Added.
3474         * UIProcess/WebPageNamespace.h: Added.
3475         * UIProcess/WebPageProxy.cpp: Added.
3476         * UIProcess/WebPageProxy.h: Added.
3477         * UIProcess/WebPolicyClient.cpp: Added.
3478         * UIProcess/WebPolicyClient.h: Added.
3479         * UIProcess/WebPreferences.cpp: Added.
3480         * UIProcess/WebPreferences.h: Added.
3481         * UIProcess/WebProcessManager.cpp: Added.
3482         * UIProcess/WebProcessManager.h: Added.
3483         * UIProcess/WebProcessProxy.cpp: Added.
3484         * UIProcess/WebProcessProxy.h: Added.
3485         * UIProcess/WebUIClient.cpp: Added.
3486         * UIProcess/WebUIClient.h: Added.
3487         * UIProcess/mac: Added.
3488         * UIProcess/mac/DrawingAreaProxy.h: Added.
3489         * UIProcess/mac/DrawingAreaProxy.mm: Added.
3490         * UIProcess/mac/DrawingAreaProxyUpdateChunk.h: Added.
3491         * UIProcess/mac/DrawingAreaProxyUpdateChunk.mm: Added.
3492         * UIProcess/win: Added.
3493         * UIProcess/win/DrawingAreaProxy.cpp: Added.
3494         * UIProcess/win/DrawingAreaProxy.h: Added.
3495         * UIProcess/win/WebView.cpp: Added.
3496         * UIProcess/win/WebView.h: Added.
3497
3498 2010-04-08  Anders Carlsson  <andersca@apple.com>
3499
3500         Reviewed by Sam Weinig and Oliver Hunt.
3501
3502         https://bugs.webkit.org/show_bug.cgi?id=37300
3503         Add WebKit2/WebProcess directory.
3504
3505         * WebProcess: Added.
3506         * WebProcess/Launching: Added.
3507         * WebProcess/Launching/mac: Added.
3508         * WebProcess/Launching/mac/WebProcessMain.mm: Added.
3509         * WebProcess/Launching/win: Added.
3510         * WebProcess/Launching/win/WebProcessWinMain.cpp: Added.
3511         * WebProcess/WebCoreSupport: Added.
3512         * WebProcess/WebCoreSupport/WebChromeClient.cpp: Added.
3513         * WebProcess/WebCoreSupport/WebChromeClient.h: Added.
3514         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp: Added.
3515         * WebProcess/WebCoreSupport/WebContextMenuClient.h: Added.
3516         * WebProcess/WebCoreSupport/WebDragClient.cpp: Added.
3517         * WebProcess/WebCoreSupport/WebDragClient.h: Added.
3518         * WebProcess/WebCoreSupport/WebEditorClient.cpp: Added.
3519         * WebProcess/WebCoreSupport/WebEditorClient.h: Added.
3520         * WebProcess/WebCoreSupport/WebErrors.h: Added.
3521         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: Added.
3522         * WebProcess/WebCoreSupport/WebInspectorClient.h: Added.
3523         * WebProcess/WebCoreSupport/mac: Added.
3524         * WebProcess/WebCoreSupport/mac/WebErrorsMac.mm: Added.
3525         * WebProcess/WebCoreSupport/mac/WebSystemInterface.h: Added.
3526         * WebProcess/WebCoreSupport/mac/WebSystemInterface.m: Added.
3527         * WebProcess/WebCoreSupport/win: Added.
3528         * WebProcess/WebCoreSupport/win/WebCoreLocalizedStrings.cpp: Added.
3529         * WebProcess/WebCoreSupport/win/WebErrorsWin.cpp: Added.
3530         * WebProcess/WebPage: Added.
3531         * WebProcess/WebPage/DrawingArea.cpp: Added.
3532         * WebProcess/WebPage/DrawingArea.h: Added.
3533         * WebProcess/WebPage/WebFrame.cpp: Added.
3534         * WebProcess/WebPage/WebFrame.h: Added.
3535         * WebProcess/WebPage/WebPage.cpp: Added.
3536         * WebProcess/WebPage/WebPage.h: Added.
3537         * WebProcess/WebPage/mac: Added.
3538         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp: Added.
3539         * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.h: Added.
3540         * WebProcess/WebPage/mac/WebPageMac.mm: Added.
3541         * WebProcess/WebPage/win: Added.
3542         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp: Added.
3543         * WebProcess/WebPage/win/DrawingAreaUpdateChunk.h: Added.
3544         * WebProcess/WebPage/win/WebPageWin.cpp: Added.
3545         * WebProcess/WebProcess.cpp: Added.
3546         * WebProcess/WebProcess.h: Added.
3547         * WebProcess/win: Added.
3548         * WebProcess/win/DllMain.cpp: Added.
3549         * WebProcess/win/WebLocalizableStrings.cpp: Added.
3550         * WebProcess/win/WebLocalizableStrings.h: Added.
3551         * WebProcess/win/WebProcessMain.cpp: Added.
3552         * WebProcess/win/WebProcessMain.h: Added.
3553
3554 2010-04-08  Sam Weinig  <sam@webkit.org>
3555
3556         Reviewed by Anders Carlsson.
3557
3558         https://bugs.webkit.org/show_bug.cgi?id=37295
3559         Add WebKit2/Shared directory.
3560
3561         * Shared: Added.
3562         * Shared/CoreIPCSupport: Added.
3563         * Shared/CoreIPCSupport/DrawingAreaMessageKinds.h: Added.
3564         * Shared/CoreIPCSupport/DrawingAreaProxyMessageKinds.h: Added.
3565         * Shared/CoreIPCSupport/WebPageMessageKinds.h: Added.
3566         * Shared/CoreIPCSupport/WebPageProxyMessageKinds.h: Added.
3567         * Shared/CoreIPCSupport/WebProcessMessageKinds.h: Added.
3568         * Shared/NotImplemented.h: Added.
3569         * Shared/WebCoreTypeArgumentMarshalling.h: Added.
3570         * Shared/WebEvent.h: Added.
3571         * Shared/WebEventConversion.cpp: Added.
3572         * Shared/WebEventConversion.h: Added.
3573         * Shared/WebPreferencesStore.cpp: Added.
3574         * Shared/WebPreferencesStore.h: Added.
3575         * Shared/mac: Added.
3576         * Shared/mac/UpdateChunk.cpp: Added.
3577         * Shared/mac/UpdateChunk.h: Added.
3578         * Shared/mac/WebEventFactory.h: Added.
3579         * Shared/mac/WebEventFactory.mm: Added.
3580         * Shared/win: Added.
3581         * Shared/win/UpdateChunk.cpp: Added.
3582         * Shared/win/UpdateChunk.h: Added.
3583         * Shared/win/WebEventFactory.cpp: Added.
3584         * Shared/win/WebEventFactory.h: Added.
3585
3586 2010-04-08  Sam Weinig  <sam@webkit.org>
3587
3588         Reviewed by Anders Carlsson.
3589
3590         https://bugs.webkit.org/show_bug.cgi?id=37293
3591         Add WebKit2/Platform directory.
3592
3593         * Platform: Added.
3594         * Platform/CoreIPC: Added.
3595         * Platform/CoreIPC/ArgumentDecoder.cpp: Added.
3596         * Platform/CoreIPC/ArgumentDecoder.h: Added.
3597         * Platform/CoreIPC/ArgumentEncoder.cpp: Added.
3598         * Platform/CoreIPC/ArgumentEncoder.h: Added.
3599         * Platform/CoreIPC/Arguments.h: Added.
3600         * Platform/CoreIPC/Attachment.cpp: Added.
3601         * Platform/CoreIPC/Attachment.h: Added.
3602         * Platform/CoreIPC/Connection.cpp: Added.
3603         * Platform/CoreIPC/Connection.h: Added.
3604         * Platform/CoreIPC/MessageID.h: Added.
3605         * Platform/CoreIPC/mac: Added.
3606         * Platform/CoreIPC/mac/ConnectionMac.cpp: Added.
3607         * Platform/CoreIPC/mac/MachPort.h: Added.
3608         * Platform/CoreIPC/win: Added.
3609         * Platform/CoreIPC/win/ConnectionWin.cpp: Added.
3610         * Platform/PlatformProcessIdentifier.h: Added.
3611         * Platform/RunLoop.cpp: Added.
3612         * Platform/RunLoop.h: Added.
3613         * Platform/WorkItem.h: Added.
3614         * Platform/WorkQueue.cpp: Added.
3615         * Platform/WorkQueue.h: Added.
3616         * Platform/mac: Added.
3617         * Platform/mac/RunLoopMac.mm: Added.
3618         * Platform/mac/WorkQueueMac.cpp: Added.
3619         * Platform/win: Added.
3620         * Platform/win/RunLoopWin.cpp: Added.
3621
3622 2010-04-08  Sam Weinig  <sam@webkit.org>
3623
3624         Rubber-stamped by Mark Rowe.
3625
3626         Add WebKit2 directory.