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