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