WebKitQt:
[WebKit-https.git] / WebKitQt / ChangeLog
1 2007-07-27  Holger Hans Peter Freyther  <zecke@selfish.org>
2
3         Reviewed by Mark.
4
5         Don't create an app bundle on OSX to keep WebKitTools/Scripts/run-launcher working.
6
7         * QtLauncher/QtLauncher.pro:
8
9 2007-07-27  Simon Hausmann  <hausmann@kde.org>
10
11         Reviewed by Lars.
12
13         Fix compilation with MSVC.
14
15         * Api/qwebpagehistory.cpp:
16         (QWebPageHistory::operator=):
17         * Api/qwebpagehistory.h:
18         * Api/qwebsettings.cpp:
19         (QWebSettings::operator=):
20         * Api/qwebsettings.h:
21
22 2007-07-26  Qing Zhao  <qing@staikos.net>
23
24         Reviewed by George Staikos.
25
26         Add a signal for history notification.
27
28         * Api/qwebpage.h:
29         * WebCoreSupport/FrameLoaderClientQt.cpp:
30
31 2007-07-24  Adam Treat  <treat@kde.org>
32
33         Reviewed by Niko and Lars.
34
35         These are no longer necessary or used.
36
37         * WebCoreSupport/FrameLoaderClientQt.cpp:
38         * WebCoreSupport/FrameLoaderClientQt.h:
39
40 2007-07-20  Adam Treat  <adam@staikos.net>
41
42         Reviewed by George Staikos.
43
44         Add a signal for first layout and add the action type for the policy
45         function.
46
47         * Api/qwebpage.cpp:
48         (QWebPagePrivate::navigationRequested):
49         (QWebPage::navigationRequested):
50         * Api/qwebpage.h:
51         * Api/qwebpage_p.h:
52         * WebCoreSupport/FrameLoaderClientQt.cpp:
53         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
54         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
55
56 2007-07-19  Adam Treat  <treat@kde.org>
57
58         Reviewed by George.
59
60         Do a recursive layout on the frame's children.  This fixes a
61         segfault found when rendering some framesets.
62
63         * Api/qwebframe.cpp:
64         (QWebFrame::render):
65         (QWebFrame::layout):
66         * Api/qwebframe.h:
67
68 2007-07-18  Timothy Hatcher  <timothy@apple.com>
69
70         Reviewed by Adam.
71
72         Make the Page with the now required InspectorClient.
73
74         * Api/qwebpage.cpp:
75         (QWebPagePrivate::QWebPagePrivate):
76         * WebKitPart/WebKitPart.cpp:
77         (WebKitPart::initView):
78
79 2007-07-18  Sam Weinig  <sam@webkit.org>
80
81         Build fix.
82
83         * Api/qwebnetworkinterface.cpp:
84         (QWebNetworkManager::started):
85         * WebCoreSupport/FrameLoaderClientQt.cpp:
86         (WebCore::FrameLoaderClientQt::canShowMIMEType):
87         (WebCore::FrameLoaderClientQt::objectContentType):
88
89 2007-07-18  Lars Knoll <lars@trolltech.com>
90
91         Reviewed by Zack & Simon
92
93         Reallow setting of scrollbar policies on QWebFrame.
94
95         * Api/qwebframe.cpp:
96         (QWebFrame::verticalScrollBarPolicy):
97         (QWebFrame::setVerticalScrollBarPolicy):
98         (QWebFrame::horizontalScrollBarPolicy):
99         * Api/qwebframe.h:
100
101 2007-07-17  Adam Treat <treat@kde.org>
102
103         Build fix.
104
105         * WebCoreSupport/FrameLoaderClientQt.cpp:
106         (WebCore::FrameLoaderClientQt::createFrame):
107
108 2007-07-17  Holger Hans Peter Freyther  <zecke@selfish.org>
109
110         Blind build fix for Qt after r24366 by adding the additional
111         WebCore::ResourceRequest& parameter to the download method.
112
113         * WebCoreSupport/FrameLoaderClientQt.cpp:
114         (WebCore::FrameLoaderClientQt::download):
115         * WebCoreSupport/FrameLoaderClientQt.h:
116
117 2007-07-17  Adam Roben  <aroben@apple.com>
118
119         Remove ContextMenuClientQt::shouldIncludeInspectElementItem
120
121         Reviewed by Tim.
122
123         * WebCoreSupport/ContextMenuClientQt.cpp:
124         * WebCoreSupport/ContextMenuClientQt.h:
125
126 2007-07-16  Adam Roben  <aroben@apple.com>
127
128         Updated ChromeClientQt for ChromeClient changes.
129
130         Reviewed by Darin.
131
132         * WebCoreSupport/ChromeClientQt.cpp:
133         (WebCore::ChromeClientQt::print): Added a Frame* parameter.
134         * WebCoreSupport/ChromeClientQt.h: Ditto.
135
136 2007-07-13  Mark Rowe  <mrowe@apple.com>
137
138         Reviewed by Mitz.
139
140         Build fix.  Stub out ChromeClientQt::print.
141
142         * WebCoreSupport/ChromeClientQt.cpp:
143         (WebCore::ChromeClientQt::print):
144         * WebCoreSupport/ChromeClientQt.h:
145
146 2007-07-12  George Staikos  <staikos@kde.org>
147
148         Qt build fix for assertions.
149
150         * Api/qwebnetworkinterface.cpp:
151         (QWebNetworkManager::add):
152
153 2007-07-12  George Staikos  <staikos@kde.org>
154
155         Qt build fix.
156
157         * Api/qwebnetworkinterface.cpp:
158         (QWebNetworkManager::add):
159
160 2007-07-10  Mark Rowe  <mrowe@apple.com>
161
162         Qt build fix after r24126.
163
164         * Api/qwebframe.cpp:
165         (QWebFrame::evaluateJavaScript):
166
167 2007-07-10  Eli Fidler  <eli@staikos.net>
168
169         Reviewed by George Staikos.
170
171         Properly url-decode data urls.
172
173         * Api/qwebnetworkinterface.cpp:
174         (QWebNetworkInterfacePrivate::parseDataUrl):
175
176 2007-07-09  Adam Treat  <adam@staikos.net>
177
178         Reviewed by George Staikos.
179
180         Convert QWebFrame from a QFrame to a pure QObject to eliminate all
181         traces of widgets.
182
183         * Api/qwebframe.cpp:
184         (QWebFramePrivate::init):
185         (QWebFramePrivate::parentFrame):
186         (QWebFrame::QWebFrame):
187         (QWebFrame::render):
188         (QWebFrame::pos):
189         (QWebFrame::geometry):
190         (QWebFrame::evaluateJavaScript):
191         (QWebFrame::mouseMoveEvent):
192         (QWebFrame::mousePressEvent):
193         (QWebFrame::mouseDoubleClickEvent):
194         (QWebFrame::mouseReleaseEvent):
195         (QWebFrame::wheelEvent):
196         * Api/qwebframe.h:
197         * Api/qwebobjectpluginconnector.cpp:
198         (QWebObjectPluginConnector::pluginParentWidget):
199         * Api/qwebpage.cpp:
200         (QWebPagePrivate::QWebPagePrivate):
201         (QWebPagePrivate::createMainFrame):
202         (QWebPage::QWebPage):
203         (QWebPage::javaScriptAlert):
204         (QWebPage::javaScriptConfirm):
205         (QWebPage::javaScriptPrompt):
206         (QWebPage::resizeEvent):
207         (QWebPage::paintEvent):
208         (QWebPage::mouseMoveEvent):
209         (QWebPage::mousePressEvent):
210         (QWebPage::mouseDoubleClickEvent):
211         (QWebPage::mouseReleaseEvent):
212         (QWebPage::wheelEvent):
213         (QWebPage::keyPressEvent):
214         (QWebPage::keyReleaseEvent):
215         (QWebPage::focusInEvent):
216         (QWebPage::focusOutEvent):
217         (QWebPage::focusNextPrevChild):
218         (QWebPage::chooseFile):
219         * Api/qwebpage.h:
220         * Api/qwebpage_p.h:
221         * WebCoreSupport/ChromeClientQt.cpp:
222         (WebCore::ChromeClientQt::addToDirtyRegion):
223
224 2007-07-09  George Staikos  <staikos@kde.org>
225
226         Fix a minor memory leak in the loader.
227
228         * Api/qwebnetworkinterface.cpp:
229         (gCleanupInterface):
230         (QWebNetworkInterface::setDefaultInterface):
231         (QWebNetworkInterface::defaultInterface):
232
233 2007-07-09  George Staikos  <staikos@kde.org>
234
235         Fix a massive memory leak in the loader.
236
237         * Api/qwebnetworkinterface.cpp:
238         (QWebNetworkManager::httpConnectionClosed):
239         (WebCoreHttp::~WebCoreHttp):
240
241 2007-07-09  George Staikos  <staikos@kde.org>
242
243         Reviewed by Simon.
244
245         Rework much of the HTTP stuff to make it more stable, and add SSL and
246         proxy support.  Major memory leak also discovered but it needs more
247         research as the obvious fix causes crashes.
248
249         * Api/qwebnetworkinterface.cpp:
250         (QWebNetworkManager::add):
251         (QWebNetworkManager::started):
252         (QWebNetworkManager::data):
253         (WebCoreHttp::WebCoreHttp):
254         (WebCoreHttp::~WebCoreHttp):
255         (WebCoreHttp::request):
256         (WebCoreHttp::scheduleNextRequest):
257         (WebCoreHttp::getConnection):
258         (WebCoreHttp::onResponseHeaderReceived):
259         (WebCoreHttp::onReadyRead):
260         (WebCoreHttp::onRequestFinished):
261         (WebCoreHttp::onDone):
262         (WebCoreHttp::onStateChanged):
263         (WebCoreHttp::onSslErrors):
264         (WebCoreHttp::onAuthenticationRequired):
265         (WebCoreHttp::onProxyAuthenticationRequired):
266         * Api/qwebnetworkinterface.h:
267         * Api/qwebnetworkinterface_p.h:
268         (WebCore::WebCoreHttp::HttpConnection::HttpConnection):
269
270 2007-07-06  Adam Treat  <adam@staikos.net>
271
272         Reviewed by George Staikos.
273
274         Convert QWebFrame to a QFrame from a scroll area.
275
276         * Api/qwebframe.cpp:
277         (QWebFramePrivate::init):
278         (QWebFramePrivate::parentFrame):
279         (QWebFramePrivate::horizontalScrollBar):
280         (QWebFramePrivate::verticalScrollBar):
281         (QWebFrame::QWebFrame):
282         (QWebFrame::resizeEvent):
283         (QWebFrame::suppressScrollbars):
284         (QWebFrame::paintEvent):
285         (QWebFrame::mouseMoveEvent):
286         (QWebFrame::mousePressEvent):
287         (QWebFrame::mouseDoubleClickEvent):
288         (QWebFrame::mouseReleaseEvent):
289         (QWebFrame::wheelEvent):
290         (QWebFrame::keyPressEvent):
291         (QWebFrame::focusInEvent):
292         (QWebFrame::focusOutEvent):
293         (QWebFrame::evaluateJavaScript):
294         * Api/qwebframe.h:
295         * Api/qwebframe_p.h:
296         * Api/qwebobjectpluginconnector.cpp:
297         (QWebObjectPluginConnector::pluginParentWidget):
298
299 2007-07-04  Adam Roben  <aroben@apple.com>
300
301         Added a stub for ChromeClientQt::setToolTip
302
303         Reviewed by Sam.
304
305         * WebCoreSupport/ChromeClientQt.cpp:
306         (WebCore::ChromeClientQt::setToolTip):
307         * WebCoreSupport/ChromeClientQt.h:
308
309 2007-07-04  Adam Roben  <aroben@apple.com>
310
311         Added a stub for ChromeClientQt::mouseDidMoveOverElement
312
313         Reviewed by Sam.
314
315         * WebCoreSupport/ChromeClientQt.cpp:
316         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
317         * WebCoreSupport/ChromeClientQt.h:
318
319 2007-06-28  Simon Hausmann  <hausmann@kde.org>
320
321         Reviewed by Zack.
322
323         Propagate mouse double click events from Qt to WebCore.
324
325         * Api/qwebframe.cpp:
326         (QWebFrame::mouseDoubleClickEvent):
327         * Api/qwebframe.h:
328
329 2007-06-28  Simon Hausmann  <hausmann@kde.org>
330
331         Reviewed by Zack.
332
333         Implemented clipboard functions in QWebPage, in particular can(Cut|Copy|Paste), cut/copy/paste as slot as well as a selectionChanged() signal.
334
335         * Api/qwebpage.cpp:
336         (QWebPage::canCut):
337         (QWebPage::canCopy):
338         (QWebPage::canPaste):
339         (QWebPage::cut):
340         (QWebPage::copy):
341         (QWebPage::paste):
342         * Api/qwebpage.h:
343         * WebCoreSupport/EditorClientQt.cpp:
344
345 2007-06-27  George Staikos  <staikos@kde.org>
346
347         Compile with various Qt configurations.
348
349         * Api/qwebnetworkinterface.cpp:
350         (WebCoreHttp::scheduleNextRequest):
351         * Api/qwebpage.cpp:
352         (QWebPage::javaScriptPrompt):
353         (QWebPage::dragEnterEvent):
354         (QWebPage::dragLeaveEvent):
355         (QWebPage::dragMoveEvent):
356         (QWebPage::dropEvent):
357         (QWebPage::chooseFile):
358         * Api/qwebpage.h:
359         * Api/qwebpage_p.h:
360         * WebCoreSupport/DragClientQt.cpp:
361         (WebCore::DragClientQt::startDrag):
362
363 2007-06-27  Eli Fidler  <eli@staikos.net>
364
365         Reviewed by George Staikos.
366
367         Check for QT_NO_IMAGE_TEXT and compile either way.
368
369         * Plugins/ICOHandler.cpp:
370         (ICOHandler::read):
371
372 2007-06-27  Eli Fidler  <eli@staikos.net>
373
374         Reviewed by George Staikos.
375
376         Remove QT3_SUPPORT dependency in the ICO plugin.
377
378         * Plugins/ICOHandler.cpp:
379         (IcoHeader::loadFromDIB):
380
381 2007-06-25  George Staikos  <staikos@kde.org>
382
383         Reviewed by Zack.
384
385         Start to add proxy and SSL support to WebKit Qt.  Proxy works
386         unauthenticated.  Added hooks to be able to add authentication.
387         Also fixes some network errors.
388
389         * Api/qwebnetworkinterface.cpp:
390         (QWebNetworkRequestPrivate::setURL):
391         (QWebNetworkJob::frame):
392         (WebCoreHttp::WebCoreHttp):
393         (WebCoreHttp::scheduleNextRequest):
394         (WebCoreHttp::onRequestFinished):
395         (WebCoreHttp::onDone):
396         (WebCoreHttp::onSslErrors):
397         (WebCoreHttp::onAuthenticationRequired):
398         (WebCoreHttp::onProxyAuthenticationRequired):
399         * Api/qwebnetworkinterface.h:
400         * Api/qwebnetworkinterface_p.h:
401         * Api/qwebpage.cpp:
402         (QWebPage::setNetworkProxy):
403         (QWebPage::networkProxy):
404         * Api/qwebpage.h:
405         * Api/qwebpage_p.h:
406
407 2007-06-21  Adam Treat  <adam@staikos.net>
408
409         Reviewed by George Staikos.
410
411         Implement the default resources on Qt.
412
413         * Api/qwebpage.cpp:
414         (QWebPage::icon):
415         * Api/qwebsettings.cpp:
416         (QWebSettings::setWebGraphic):
417         (QWebSettings::webGraphic):
418         (loadResourcePixmap):
419         * Api/qwebsettings.h:
420
421 2007-06-15  Adam Treat  <adam@staikos.net>
422
423         Reviewed by George Staikos.
424
425         Add ICO support to the Qt build.
426
427         * Api/qwebpage.cpp:
428         (QWebPage::icon):
429         * Api/qwebpage.h:
430         * Api/qwebsettings.cpp:
431         (QWebSettings::setIconDatabaseEnabled):
432         (QWebSettings::iconDatabaseEnabled):
433         * Api/qwebsettings.h:
434         * Plugins: Added.
435         * Plugins/ICOHandler.cpp: Added.
436         (IcoHeader::operator >>):
437         (IcoHeader::BMP_INFOHDR::):
438         (IcoHeader::operator<<):
439         (IcoHeader::LessDifference::LessDifference):
440         (IcoHeader::LessDifference::operator ()):
441         (IcoHeader::loadFromDIB):
442         (ICOHandler::ICOHandler):
443         (ICOHandler::canRead):
444         (ICOHandler::read):
445         (ICOHandler::write):
446         (ICOHandler::name):
447         (ICOPlugin::keys):
448         (ICOPlugin::capabilities):
449         (ICOPlugin::create):
450         * Plugins/ICOHandler.h: Added.
451         * Plugins/Plugins.pro: Added.
452         * WebCoreSupport/FrameLoaderClientQt.cpp:
453         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
454
455 2007-06-15  George Staikos  <staikos@kde.org>
456
457         Fixing the Qt build.
458
459         * WebCoreSupport/ContextMenuClientQt.cpp:
460         (WebCore::ContextMenuClientQt::shouldIncludeInspectElementItem):
461         * WebCoreSupport/ContextMenuClientQt.h:
462
463 2007-06-20  Adam Roben  <aroben@apple.com>
464
465         More speculative Qt build fixes.
466
467         Add a stub implementation of InspectorClientQt.
468
469         * WebCoreSupport/InspectorClientQt.cpp: Added.
470         (WebCore::InspectorClientQt::inspectorDestroyed):
471         (WebCore::InspectorClientQt::createPage):
472         (WebCore::InspectorClientQt::showWindow):
473         (WebCore::InspectorClientQt::closeWindow):
474         (WebCore::InspectorClientQt::attachWindow):
475         (WebCore::InspectorClientQt::detachWindow):
476         (WebCore::InspectorClientQt::highlight):
477         (WebCore::InspectorClientQt::hideHighlight):
478         * WebCoreSupport/InspectorClientQt.h: Added.
479
480 2007-06-19  George Staikos  <staikos@kde.org>
481
482         Reviewed by Tim Hatcher.
483
484         Add https support.
485
486         * Api/qwebnetworkinterface.cpp:
487         (QWebNetworkInterface::addJob):
488         (QWebNetworkInterface::cancelJob):
489         (WebCoreHttp::WebCoreHttp):
490
491 2007-06-14  George Staikos  <staikos@kde.org>
492
493         Reviewed by Lars.
494
495         Add evaluateJavaScript() method.
496
497         * Api/qwebframe.cpp:
498         (QWebFrame::evaluateJavaScript):
499         * Api/qwebframe.h:
500
501 2007-06-14  George Staikos  <staikos@kde.org>
502
503         Reviewed by Lars.
504
505         Implement most of the editing commands, better focus handling, fix some
506         keyboard and mouse handling, and add keyboard navigation.  May be
507         refactored later as the key switches are ugly.
508
509         * Api/qwebframe.cpp:
510         (QWebFramePrivate::init):
511         (QWebFrame::mousePressEvent):
512         (QWebFrame::mouseReleaseEvent):
513         (QWebFrame::wheelEvent):
514         (QWebFrame::keyPressEvent):
515         (QWebFrame::keyReleaseEvent):
516         (QWebFrame::focusInEvent):
517         (QWebFrame::focusOutEvent):
518         (QWebFrame::focusNextPrevChild):
519         * Api/qwebframe.h:
520         * Api/qwebframe_p.h:
521         * WebCoreSupport/EditorClientQt.cpp:
522         (WebCore::EditorClientQt::handleKeypress):
523
524 2007-06-14  George Staikos  <staikos@kde.org>
525
526         Reviewed by Lars.
527
528         Implement all of the Javascript dialogs and file chooser.
529         Also makes the statusbar virtual into a signal and shuffles some
530         virtuals around a bit.  The helper in FrameLoaderClientQt may go away
531         shortly.
532
533         * Api/qwebpage.cpp:
534         (QWebPagePrivate::QWebPagePrivate):
535         (QWebPage::javaScriptAlert):
536         (QWebPage::javaScriptConfirm):
537         (QWebPage::javaScriptPrompt):
538         (QWebPage::chooseFile):
539         * Api/qwebpage.h:
540         * WebCoreSupport/ChromeClientQt.cpp:
541         (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
542         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
543         (WebCore::ChromeClientQt::runJavaScriptAlert):
544         (WebCore::ChromeClientQt::runJavaScriptConfirm):
545         (WebCore::ChromeClientQt::runJavaScriptPrompt):
546         (WebCore::ChromeClientQt::setStatusbarText):
547         * WebCoreSupport/FrameLoaderClientQt.cpp:
548         (WebCore::FrameLoaderClientQt::chooseFile):
549         * WebCoreSupport/FrameLoaderClientQt.h:
550
551 2007-06-14  Simon Hausmann  <hausmann@kde.org>
552
553         Reviewed by Zack.
554
555         Removed QWebHistoryItem::parent() as it is not implemented and WebCore's
556
557         HistoryItem itself doesn't seem to have a parent pointer either.
558
559         * Api/qwebpagehistory.h:
560
561 2007-06-14  Simon Hausmann  <hausmann@kde.org>
562
563         Reviewed by Zack.
564
565         Make it possible to copy QWebHistoryItem objects.
566
567         * Api/qwebpagehistory.cpp:
568         * Api/qwebpagehistory.h:
569
570 2007-06-14  Lars Knoll <lars@trolltech.com>
571
572         Reviewed by George
573
574         Fix a crash when a request from the plugin resulted
575         in a HTTP redirect.
576
577         * Api/qwebnetworkinterface.cpp:
578         (QWebNetworkManager::started):
579
580 2007-06-14  Lars Knoll <lars@trolltech.com>
581
582         Reviewed by George.
583
584         Work around a bug in Qt's QHttp implementation and
585         get web pages to load again.
586
587         * Api/qwebpage.cpp:
588         (QWebPage::open):
589
590 2007-06-13  Simon Hausmann  <hausmann@kde.org>
591
592         Reviewed by Lars.
593
594         Added a make install target that installs the Qt port and renamed
595         WebKitQt to QtWebKit
596
597         * Api/headers.pri: Added.
598         * Api/qtwebkit.prf: Added.
599
600 2007-06-13  Simon Hausmann  <hausmann@kde.org>
601
602         Reviewed by Lars.
603
604         Added httpHeaderField setter/getter to QWebNetworkRequest for convenience.
605
606         * Api/qwebnetworkinterface.cpp:
607         * Api/qwebnetworkinterface.h:
608
609 2007-06-13  Simon Hausmann  <hausmann@kde.org>
610
611         Reviewed by Lars.
612
613         Changed QWebObjectPluginConnector::requestUrl to take a QWebNetworkRequest as argument.
614
615         * Api/qwebnetworkinterface.h:
616         * Api/qwebobjectpluginconnector.cpp:
617         (QWebObjectPluginConnector::requestUrl):
618         * Api/qwebobjectpluginconnector.h:
619
620 2007-06-13  Simon Hausmann  <hausmann@kde.org>
621
622         Reviewed by Lars.
623
624         Added a QWebNetworkRequest convenience constructor.
625
626         * Api/qwebnetworkinterface.cpp:
627         * Api/qwebnetworkinterface.h:
628         * Api/qwebpage.cpp:
629         (QWebPage::open):
630
631 2007-06-13  Simon Hausmann  <hausmann@kde.org>
632
633         Reviewed by Lars.
634
635         Changed the QWebPage::open(const QUrl &url, const QHttpRequestHeader &httpHeader, const QByteArray &postData)
636         overload to take a QWebNetworkRequest instead.
637
638         * Api/qwebpage.cpp:
639         (QWebPage::open):
640         * Api/qwebpage.h:
641
642 2007-06-13  Simon Hausmann  <hausmann@kde.org>
643
644         Reviewed by Lars.
645
646         In QWebPage::open(const QUrl &, const QHttpRequestHeader &, ...) don't make the population
647         of the WebCore::ResourceRequest depend on the validity of the QHttpRequestHeader but just
648         pick the individual fields if we can use them.
649
650         * Api/qwebpage.cpp:
651         (QWebPage::open):
652
653 2007-06-13  Simon Hausmann  <hausmann@kde.org>
654
655         Reviewed by Lars.
656
657         Minor QWebNetworkRequet API fixlet
658
659         * Api/qwebnetworkinterface.cpp:
660         * Api/qwebnetworkinterface.h:
661
662 2007-06-13  Simon Hausmann  <hausmann@kde.org>
663
664         Reviewed by Lars.
665
666         Use QWebNetworkRequest for QWebPage::navigationRequested.
667
668         * Api/qwebnetworkinterface.cpp:
669         * Api/qwebnetworkinterface.h:
670         * Api/qwebpage.cpp:
671         (QWebPagePrivate::navigationRequested):
672         (QWebPage::navigationRequested):
673         * Api/qwebpage.h:
674         * Api/qwebpage_p.h:
675         * WebCoreSupport/FrameLoaderClientQt.cpp:
676         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
677
678 2007-06-13  Simon Hausmann  <hausmann@kde.org>
679
680         Reviewed by Lars.
681
682         Some docs for QWebNetworkRequest
683
684         * Api/qwebnetworkinterface.cpp:
685         (QWebNetworkRequest::QWebNetworkRequest):
686         (QWebNetworkRequest::~QWebNetworkRequest):
687
688 2007-06-13  Simon Hausmann  <hausmann@kde.org>
689
690         Reviewed by Lars.
691
692         Moved QWebNetworkJob::Method enum into QWebNetworkRequest.
693
694         * Api/qwebnetworkinterface.h:
695         * Api/qwebobjectpluginconnector.cpp:
696         (QWebObjectPluginConnector::requestUrl):
697         * Api/qwebobjectpluginconnector.h:
698
699 2007-06-13  Simon Hausmann  <hausmann@kde.org>
700
701         Reviewed by Lars.
702
703         Rename QWebNetworkJob::request() into QWebNetworkJob::httpHeader() and added
704
705         * Api/qwebnetworkinterface.cpp:
706         (QWebNetworkJob::postData):
707         (WebCoreHttp::WebCoreHttp):
708         (WebCoreHttp::scheduleNextRequest):
709         * Api/qwebnetworkinterface.h:
710
711 2007-06-13  Simon Hausmann  <hausmann@kde.org>
712
713         Reviewed by Lars.
714
715         Introduce QWebNetworkRequest in the public API.
716
717         * Api/qwebnetworkinterface.cpp:
718         (QWebNetworkRequestPrivate::init):
719         * Api/qwebnetworkinterface.h:
720         * Api/qwebnetworkinterface_p.h:
721         * WebCoreSupport/FrameLoaderClientQt.cpp:
722         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
723
724 2007-06-13  Simon Hausmann  <hausmann@kde.org>
725
726         Reviewed by Lars.
727
728         Changed QWebNetworkJobPrivate to aggregate a QWebNetworkRequest instead of inheriting from it.
729
730         * Api/qwebnetworkinterface.cpp:
731         (QWebNetworkManager::add):
732         (QWebNetworkManager::started):
733         (QWebNetworkManager::data):
734         (QWebNetworkManager::finished):
735         * Api/qwebnetworkinterface_p.h:
736         * Api/qwebobjectpluginconnector.cpp:
737         (QWebObjectPluginConnector::requestUrl):
738
739 2007-06-13  Simon Hausmann  <hausmann@kde.org>
740
741         Reviewed by Lars.
742
743         Rename QWebNetworkRequest::request into QWebNetworkRequest::httpHeader.
744
745         * Api/qwebnetworkinterface.cpp:
746         (QWebNetworkRequest::init):
747         (QWebNetworkRequest::setURL):
748         (QWebNetworkManager::add):
749         (QWebNetworkManager::started):
750         * Api/qwebnetworkinterface_p.h:
751         * WebCoreSupport/FrameLoaderClientQt.cpp:
752         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
753
754 2007-06-12  Lars Knoll <lars@trolltech.com>
755
756         Reviewed by George Staikos.
757
758         Remove duplicate symbols.
759
760         * Api/qwebobjectplugin_p.h:
761
762 2007-06-13  Lars Knoll <lars@trolltech.com>
763
764         Reviewed by Niko.
765
766         Fix compilation, and remove dependency on Qt
767         private header.
768
769         * Api/qwebobjectplugin_p.h:
770         (QWebFactoryLoader::supportsMimeType):
771
772 2007-06-13  Lars Knoll <lars@trolltech.com>
773
774         Reviewed by Niko.
775
776         Parts of the patch done by Zack.
777         Fix up some parts in the implementation of QWebNetworkInterface
778         so it can be used by plugins.
779         Change the plugin API so we can actually get all the information
780         required by the JS bridge from them as well.
781
782         * Api/qwebnetworkinterface.cpp:
783         (QWebNetworkJob::cancelled):
784         (QWebNetworkManager::cancel):
785         (QWebNetworkManager::started):
786         (QWebNetworkManager::finished):
787         * Api/qwebobjectplugin.cpp:
788         (QWebFactoryLoader::QWebFactoryLoader):
789         (QWebFactoryLoader::descriptionForName):
790         (QWebFactoryLoader::mimetypesForName):
791         (QWebFactoryLoader::mimeTypeForExtension):
792         (QWebFactoryLoader::extensions):
793         (QWebFactoryLoader::nameForMimetype):
794         (QWebFactoryLoader::create):
795         (QWebObjectPlugin::descriptionForKey):
796         (QWebObjectPlugin::mimetypesForKey):
797         * Api/qwebobjectplugin.h:
798         * Api/qwebobjectplugin_p.h:
799         (QWebFactoryLoader::names):
800         * Api/qwebobjectpluginconnector.cpp:
801         (QWebObjectPluginConnector::requestUrl):
802         * Api/qwebpage.cpp:
803         (QWebPage::networkInterface):
804
805 2007-06-11  Simon Hausmann  <hausmann@kde.org>
806
807         Reviewed by Lars.
808
809         Added a QWebPage::open overload to allow specifying the http header and post data.
810         (it's an overload instead of a merged openUrl to avoid including qhttp.h in qwebpage.h,
811         which would imply that one has to have QT += network in the .pro file for using WebKitQt)
812
813         * Api/qwebpage.cpp:
814         * Api/qwebpage.h:
815
816 2007-06-11  Simon Hausmann  <hausmann@kde.org>
817
818         Reviewed by Lars.
819
820         Added the possibility to intercept url requests through QWebPage::navigationRequested.
821
822         * Api/qwebpage.cpp:
823         (QWebPagePrivate::QWebPagePrivate):
824         (QWebPage::createFrame):
825         * Api/qwebpage.h:
826         * Api/qwebpage_p.h:
827         * WebCoreSupport/FrameLoaderClientQt.cpp:
828
829 2007-06-11  Simon Hausmann  <hausmann@kde.org>
830
831         Reviewed by Lars.
832
833         Added a QWebNetworkRequest::init overload that takes a WebCore::ResourceRequest,
834         to be called from FrameLoaderClientQt in the near future.
835
836         * Api/qwebnetworkinterface.cpp:
837         (QWebNetworkManager::add):
838         * Api/qwebnetworkinterface_p.h:
839
840 2007-06-11  Simon Hausmann  <hausmann@kde.org>
841
842         Reviewed by Lars.
843
844         Moved the postData setup into QWebNetworkRequest::init.
845
846         * Api/qwebnetworkinterface.cpp:
847         (QWebNetworkRequest::init):
848         (QWebNetworkManager::add):
849
850 2007-06-11  Simon Hausmann  <hausmann@kde.org>
851
852         Reviewed by Lars.
853
854         Moved HTTP header field propagation to QWebNetworkRequest::init.
855
856         * Api/qwebnetworkinterface.cpp:
857         (QWebNetworkRequest::init):
858         (QWebNetworkManager::add):
859
860 2007-06-11  Simon Hausmann  <hausmann@kde.org>
861
862         Reviewed by Lars.
863
864         Started moving the code to separate a WebCore::ResourceRequest into a QUrl, postData
865         and QHttpRequestHeader into a separate little QWebNetworkRequest struct.
866
867         * Api/qwebnetworkinterface.cpp:
868         (QWebNetworkRequest::init):
869         (QWebNetworkManager::add):
870         * Api/qwebnetworkinterface_p.h:
871         * Api/qwebobjectpluginconnector.cpp:
872         (QWebObjectPluginConnector::requestUrl):
873
874 2007-06-11  Zack Rusin <zrusin@trolltech.com>
875
876         Reviewed by Lars
877
878         Forgot to export the plugin connector.
879
880         * Api/qwebobjectpluginconnector.h
881
882 2007-06-08  Lars Knoll <lars@trolltech.com>
883
884         Reviewed by Zack.
885
886         Add a QWebObjectPluginConnector class. The class will
887         facility communication between the plugin and WebKit.
888         Currently it's used to make the plugin network capable.
889
890         * Api/qwebnetworkinterface.cpp:
891         (QWebNetworkJobPrivate::setDefaults):
892         (QWebNetworkManager::add):
893         (QWebNetworkManager::started):
894         (QWebNetworkManager::data):
895         (QWebNetworkManager::finished):
896         * Api/qwebnetworkinterface.h:
897         * Api/qwebnetworkinterface_p.h:
898         (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
899         * Api/qwebobjectplugin.cpp:
900         (QWebFactoryLoader::create):
901         * Api/qwebobjectplugin.h:
902         * Api/qwebobjectplugin_p.h:
903         * Api/qwebobjectpluginconnector.cpp: Added.
904         (QWebObjectPluginConnector::QWebObjectPluginConnector):
905         (QWebObjectPluginConnector::frame):
906         (QWebObjectPluginConnector::pluginParentWidget):
907         (QWebObjectPluginConnector::requestUrl):
908         * Api/qwebobjectpluginconnector.h: Added.
909         (QWebObjectPluginConnector::):
910         * WebCoreSupport/FrameLoaderClientQt.cpp:
911         (WebCore::FrameLoaderClientQt::createPlugin):
912
913 2007-06-06  Lars Knoll <lars@trolltech.com>
914
915         Reviewed by Zack
916
917         Add an API to create and load plugins.
918         Don't include moc files by hand anymore, rather let
919         qmake handle them.
920
921         * Api/qcookiejar.cpp:
922         (QCookieJar::cookieJar):
923         * Api/qwebframe.cpp:
924         (QWebFrame::scrollContentsBy):
925         * Api/qwebnetworkinterface.cpp:
926         * Api/qwebobjectplugin.cpp: Added.
927         (QWebFactoryLoader::QWebFactoryLoader):
928         (QWebFactoryLoader::self):
929         (QWebFactoryLoader::mimeTypeForExtension):
930         (QWebFactoryLoader::create):
931         (QWebObjectPlugin::QWebObjectPlugin):
932         (QWebObjectPlugin::~QWebObjectPlugin):
933         (QWebObjectPlugin::extensionsForMimetype):
934         * Api/qwebobjectplugin.h: Added.
935         * Api/qwebobjectplugin_p.h: Added.
936         (QWebFactoryLoader::mimeTypes):
937         (QWebFactoryLoader::extensions):
938         (QWebFactoryLoader::supportsMimeType):
939         * Api/qwebpage.cpp:
940         (QWebPage::settings):
941         * WebCoreSupport/FrameLoaderClientQt.cpp:
942         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
943         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
944         (WebCore::FrameLoaderClientQt::objectContentType):
945         (WebCore::FrameLoaderClientQt::createPlugin):
946
947 2007-05-28  Zack Rusin  <zrusin@trolltech.com>
948
949         Reviewed by andersca and simon
950
951         Adding public settings Api to the Qt port.
952         QWebSetting's is a value based settings
953         object settable on the QWebPage.
954
955         * Api/qwebpage.cpp:
956         (QWebPagePrivate::QWebPagePrivate):
957         (QWebPage::QWebPage):
958         (QWebPage::setSettings):
959         (QWebPage::settings):
960         * Api/qwebpage.h:
961         * Api/qwebsettings.cpp: Added.
962         (QWebSettingsPrivate::QWebSettingsPrivate):
963         (QWebSettings::QWebSettings):
964         (QWebSettings::~QWebSettings):
965         (QWebSettings::setMinimumFontSize):
966         (QWebSettings::minimumFontSize):
967         (QWebSettings::setMinimumLogicalFontSize):
968         (QWebSettings::minimumLogicalFontSize):
969         (QWebSettings::setDefaultFontSize):
970         (QWebSettings::defaultFontSize):
971         (QWebSettings::setDefaultFixedFontSize):
972         (QWebSettings::defaultFixedFontSize):
973         (QWebSettings::setUserStyleSheetLocation):
974         (QWebSettings::userStyleSheetLocation):
975         (QWebSettings::setGlobal):
976         (QWebSettings::global):
977         (QWebSettings::setFontFamily):
978         (QWebSettings::fontFamily):
979         (QWebSettings::setAttribute):
980         (QWebSettings::testAttribute):
981         * Api/qwebsettings.h: Added.
982         * QtLauncher/main.cpp:
983         (main):
984 2007-05-27  Kevin Ollivier  <kevino@theolliviers.com>
985
986         Reviewed by Sam Weinig.
987         
988         Consolidate all notImplemented() macro definitions into
989         one header file for all platforms.
990
991         * WebCoreSupport/ChromeClientQt.cpp:
992         * WebCoreSupport/ContextMenuClientQt.cpp:
993         * WebCoreSupport/EditorClientQt.cpp:
994         * WebCoreSupport/FrameLoaderClientQt.cpp:
995
996 2007-05-25  George Staikos  <staikos@kde.org>
997
998         Reviewed by Simon.
999
1000         The http loader should only ask for .... http cookies!
1001
1002         * Api/qwebnetworkinterface.cpp:
1003         (QWebNetworkManager::add):
1004
1005 2007-05-24  Simon Hausmann  <hausmann@kde.org>
1006
1007         Reviewed by Zack.
1008
1009         Fix multipart/form-data HTTP POSTs. The content-type wasn't set
1010         correctly. Fortunately WebCore does it already, so there's no need
1011         for us to do it since we already transfer all HTTP header fields :)
1012
1013         * Api/qwebnetworkinterface.cpp:
1014         (QWebNetworkManager::add):
1015
1016 2007-05-23  Simon Hausmann  <hausmann@kde.org>
1017
1018         Reviewed by Zack, idea from Lars.
1019
1020         Share WebCoreHttp and therefore HTTP connections among multiple
1021         QWebNetworkInterface instances by moving the code into
1022         QWebNetworkManager.
1023
1024         * Api/qwebnetworkinterface.cpp:
1025         (QWebNetworkManager::addHttpJob):
1026         (QWebNetworkManager::cancelHttpJob):
1027         (QWebNetworkManager::httpConnectionClosed):
1028         (QWebNetworkInterface::addJob):
1029         (QWebNetworkInterface::cancelJob):
1030         (WebCoreHttp::scheduleNextRequest):
1031         (WebCoreHttp::onResponseHeaderReceived):
1032         (WebCoreHttp::onReadyRead):
1033         (WebCoreHttp::onRequestFinished):
1034         (WebCoreHttp::cancel):
1035         * Api/qwebnetworkinterface.h:
1036         * Api/qwebnetworkinterface_p.h:
1037
1038 2007-05-23  Simon Hausmann  <hausmann@kde.org>
1039
1040         Reviewed by Zack, discussed also with Lars.
1041
1042         Make it possible to specify a per-QWebPage network interface (needed
1043         for the KDE KIO integration).
1044
1045         Merged the file and the network loader into
1046         QWebNetworkInterface(Private), which simplifies the loading code.
1047
1048         When receiving a redirection don't emit the data of the redirected job
1049         to the document. (otherwise the kind of "This page has moved" text
1050         appears right on top of the real page content)
1051
1052         * Api/qwebnetworkinterface.cpp:
1053         (qHash):
1054         (operator==):
1055         (QWebNetworkJob::QWebNetworkJob):
1056         (QWebNetworkJob::networkInterface):
1057         (QWebNetworkManager::add):
1058         (QWebNetworkManager::cancel):
1059         (QWebNetworkManager::data):
1060         (QWebNetworkManager::finished):
1061         (QWebNetworkInterfacePrivate::sendFileData):
1062         (QWebNetworkInterfacePrivate::parseDataUrl):
1063         (QWebNetworkInterfacePrivate::addHttpJob):
1064         (QWebNetworkInterfacePrivate::httpConnectionClosed):
1065         (QWebNetworkInterface::setDefaultInterface):
1066         (QWebNetworkInterface::QWebNetworkInterface):
1067         (QWebNetworkInterface::addJob):
1068         (QWebNetworkInterface::cancelJob):
1069         (WebCoreHttp::scheduleNextRequest):
1070         (WebCoreHttp::onResponseHeaderReceived):
1071         (WebCoreHttp::onReadyRead):
1072         (WebCoreHttp::onRequestFinished):
1073         (WebCoreHttp::cancel):
1074         * Api/qwebnetworkinterface.h:
1075         * Api/qwebnetworkinterface_p.h:
1076         * Api/qwebpage.cpp:
1077         (QWebPagePrivate::QWebPagePrivate):
1078         (QWebPage::setNetworkInterface):
1079         * Api/qwebpage.h:
1080         * Api/qwebpage_p.h:
1081
1082 2007-05-23  Lars Knoll <lars@trolltech.com>
1083
1084         Reviewed by Zack
1085
1086         Don't do HTTP downloads in a second thread. Simplifies
1087         the code significantly and fixes crashes on some
1088         Web pages.
1089
1090         * Api/qwebnetworkinterface.cpp:
1091         (QWebNetworkManager::add):
1092         (QWebNetworkInterface::QWebNetworkInterface):
1093         (QWebNetworkInterface::addJob):
1094         (QWebNetworkInterface::cancelJob):
1095         (LoaderThread::LoaderThread):
1096         (LoaderThread::run):
1097         (WebCoreHttp::cancel):
1098         (NetworkLoader::NetworkLoader):
1099         (NetworkLoader::request):
1100         (NetworkLoader::cancel):
1101         * Api/qwebnetworkinterface_p.h:
1102         * WebCoreSupport/FrameLoaderClientQt.cpp:
1103         (WebCore::FrameLoaderClientQt::committedLoad):
1104         (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
1105
1106 2007-05-23  Lars Knoll <lars@trolltech.com>
1107
1108         Reviewed by Simon.
1109
1110         * Api/qwebnetworkinterface.cpp:
1111         (QWebNetworkJobPrivate::setURL):
1112         (QWebNetworkManager::started):
1113             Fix Host: line in HTTP headers and resolving of relative URLs
1114             when redirecting.
1115         * Api/qwebnetworkinterface_p.h:
1116             Clean up qHash forward declaration a bit.
1117
1118 2007-05-23  Simon Hausmann  <hausmann@kde.org>
1119
1120         Reviewed by Zack.
1121
1122         * QtLauncher/main.cpp:
1123         (MainWindow::MainWindow): Fix loading progress signal/slot connection.
1124
1125 2007-05-22  Simon Hausmann  <hausmann@kde.org>
1126
1127         Reviewed by Lars.
1128
1129         * Api/qwebnetworkinterface.cpp:
1130         (QWebNetworkManager::add): Fix http headers for POST.
1131
1132 2007-05-21  Lars Knoll <lars@trolltech.com>
1133
1134         Reviewed by Simon
1135
1136         Remove the userHandle methods from QWebnetworkJob again.
1137         They don't really give us anything and just clutter the API.
1138
1139         * Api/qwebnetworkinterface.cpp:
1140         * Api/qwebnetworkinterface.h:
1141         * Api/qwebnetworkinterface_p.h:
1142
1143 2007-05-21  Simon Hausmann  <hausmann@kde.org>
1144
1145         Reviewed by Zack.
1146
1147         * Api/qwebnetworkinterface.h: Export the net API.
1148
1149 2007-05-21  Lars Knoll <lars@trolltech.com>
1150
1151         Reviewed by Zack.
1152
1153         Add an API layer for network downloads. Basically QWebnetworkInterface
1154         is an interface class for downloading resources. QWebnetworkJob describes
1155         the actual object to download.
1156
1157         QWebNetworkInterface has a default implementation that replaces the
1158         old ResourceHandleManager class in the Qt port.
1159
1160         * Api/qwebnetworkinterface.cpp: Added.
1161         (QWebNetworkJobPrivate::setURL):
1162         (QWebNetworkJob::QWebNetworkJob):
1163         (QWebNetworkJob::~QWebNetworkJob):
1164         (QWebNetworkJob::url):
1165         (QWebNetworkJob::postData):
1166         (QWebNetworkJob::request):
1167         (QWebNetworkJob::response):
1168         (QWebNetworkJob::setResponse):
1169         (QWebNetworkJob::cancelled):
1170         (QWebNetworkJob::ref):
1171         (QWebNetworkJob::deref):
1172         (QWebNetworkJob::setUserHandle):
1173         (QWebNetworkJob::userHandle):
1174         (QWebNetworkManager::QWebNetworkManager):
1175         (QWebNetworkManager::self):
1176         (QWebNetworkManager::add):
1177         (QWebNetworkManager::cancel):
1178         (QWebNetworkManager::started):
1179         (QWebNetworkManager::data):
1180         (QWebNetworkManager::finished):
1181         (QWebNetworkInterface::setDefaultInterface):
1182         (QWebNetworkInterface::defaultInterface):
1183         (QWebNetworkInterface::QWebNetworkInterface):
1184         (QWebNetworkInterface::~QWebNetworkInterface):
1185         (QWebNetworkInterface::addJob):
1186         (QWebNetworkInterface::cancelJob):
1187         (LoaderThread::LoaderThread):
1188         (LoaderThread::run):
1189         (FileLoader::FileLoader):
1190         (FileLoader::request):
1191         (FileLoader::sendData):
1192         (FileLoader::parseDataUrl):
1193         (WebCoreHttp::WebCoreHttp):
1194         (WebCoreHttp::~WebCoreHttp):
1195         (WebCoreHttp::request):
1196         (WebCoreHttp::scheduleNextRequest):
1197         (WebCoreHttp::getConnection):
1198         (WebCoreHttp::onResponseHeaderReceived):
1199         (WebCoreHttp::onReadyRead):
1200         (WebCoreHttp::onRequestFinished):
1201         (WebCoreHttp::onStateChanged):
1202         (WebCoreHttp::cancel):
1203         (HostInfo::HostInfo):
1204         (qHash):
1205         (operator==):
1206         (NetworkLoader::NetworkLoader):
1207         (NetworkLoader::~NetworkLoader):
1208         (NetworkLoader::request):
1209         (NetworkLoader::connectionClosed):
1210         (NetworkLoader::cancel):
1211         * Api/qwebnetworkinterface.h: Added.
1212         (QWebNetworkJob::setHandle):
1213         (QWebNetworkJob::handle):
1214         * Api/qwebnetworkinterface_p.h: Added.
1215         (WebCore::LoaderThread::):
1216         (WebCore::LoaderThread::waitForSetup):
1217         (WebCore::HostInfo::HostInfo):
1218
1219 2007-05-18  Simon Hausmann  <hausmann@kde.org>
1220
1221         Reviewed by Nikolas.
1222
1223         * Api/qwebpage.h: Changed the loadProgressChanged API to use an
1224         percent integer instead of a double precision floating pointer number.
1225         * WebCoreSupport/FrameLoaderClientQt.cpp:
1226         (WebCore::FrameLoaderClientQt::setFrame):
1227         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
1228         * WebCoreSupport/FrameLoaderClientQt.h:
1229
1230 2007-05-18  Marius Bugge Monsen  <mbm@trolltech.com>
1231
1232         Reviewed by Zack Rusin.
1233
1234         The default constructed KeyboardEvent has
1235         no PlatformKeyboardEvent.
1236
1237         * WebCoreSupport/EditorClientQt.cpp:
1238         (WebCore::EditorClientQt::handleKeypress):
1239
1240 2007-05-17  Adam Treat <adam@staikos.net>
1241
1242         Reviewed by George Staikos.
1243
1244         - Implement frameLoadCompleted
1245         - Fix build (by George)
1246
1247         * WebCoreSupport/FrameLoaderClientQt.cpp:
1248         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
1249         (WebCore::FrameLoaderClientQt::createFrame):
1250
1251 2007-05-17  Adam Treat  <adam@staikos.net>
1252
1253         Reviewed by George Staikos.
1254
1255         Implement canShowMIMEType
1256
1257         * WebCoreSupport/FrameLoaderClientQt.cpp:
1258         (WebCore::FrameLoaderClientQt::canShowMIMEType):
1259
1260 2007-05-16  Lars Knoll <lars@trolltech.com>
1261
1262         Reviewed by Zack
1263
1264         pass the mouse events to the event handler, not the frameview.
1265
1266         * Api/qwebframe.cpp:
1267         (QWebFrame::mouseMoveEvent):
1268         (QWebFrame::mouseReleaseEvent):
1269
1270 2007-05-14  Lars Knoll <lars@trolltech.com>
1271
1272         Reviewed by Zack
1273
1274         Updates after Maciej's frame change.
1275
1276         * Api/qwebpage.cpp:
1277         (QWebPage::stop):
1278               Call stopForUserCancel() instead of stopAllLoaders()
1279         * WebCoreSupport/FrameLoaderClientQt.cpp:
1280         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
1281         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
1282         (WebCore::FrameLoaderClientQt::didFinishLoad):
1283         (WebCore::FrameLoaderClientQt::setMainDocumentError):
1284         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
1285         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
1286         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
1287         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
1288               Call QWebFrame::loadDone() from the places it's supposed to be
1289               called from.
1290
1291 2007-05-12  Maciej Stachowiak  <mjs@apple.com>
1292
1293         Reviewed by Rob Buis.
1294         
1295         - call Frame::init as needed - this prevents crashes but pages don't appear.
1296
1297         * Api/qwebframe.cpp:
1298         (QWebFramePrivate::init):
1299         * WebKitPart/WebKitPart.cpp:
1300         (WebKitPart::initView):
1301
1302 2007-05-08  Steve Falkenburg  <sfalken@apple.com>
1303
1304         Reviewed by Ada.
1305         
1306         Slight modification to last editor method fix.
1307
1308         * WebCoreSupport/EditorClientQt.cpp:
1309         (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
1310         * WebCoreSupport/EditorClientQt.h:
1311
1312 2007-05-03  Steve Falkenburg  <sfalken@apple.com>
1313
1314         Reviewed by Oliver.
1315
1316         Add missing user description parameter to spelling-related editor client method.
1317
1318         * WebCoreSupport/EditorClientQt.cpp:
1319         (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
1320         * WebCoreSupport/EditorClientQt.h:
1321
1322 2007-04-29  Oliver Hunt  <oliver@apple.com>
1323
1324         Reviewed by Zack.
1325
1326         Tie QT drag events to the DragController logic
1327         to allow drag and drop events to be handled by
1328         webkit.
1329
1330         * Api/qwebframe.cpp:
1331         * Api/qwebframe.h:
1332         * Api/qwebpage.cpp:
1333         (QWebPagePrivate::QWebPagePrivate):
1334         (QWebPage::QWebPage):
1335         (dropActionToDragOp):
1336         (dragOpToDropAction):
1337         (QWebPage::dragEnterEvent):
1338         (QWebPage::dragLeaveEvent):
1339         (QWebPage::dragMoveEvent):
1340         (QWebPage::dropEvent):
1341         * Api/qwebpage.h:
1342         * WebCoreSupport/DragClientQt.cpp:
1343         (WebCore::DragClientQt::startDrag):
1344         * WebCoreSupport/DragClientQt.h:
1345         (WebCore::DragClientQt::DragClientQt):
1346
1347 2007-04-27  Holger Freyther <freyther@kde.org>
1348
1349         Reviewed by Maciej.
1350
1351         Remove unmaintained CMake build system.
1352
1353         * QtLauncher/CMakeLists.txt: Removed.
1354         * WebKitPart/CMakeLists.txt: Removed.
1355
1356 2007-04-25  Steve Falkenburg  <sfalken@apple.com>
1357
1358         Reviewed by Adam.
1359         
1360         Fix spelling error in spelling method name.
1361
1362         * WebCoreSupport/EditorClientQt.cpp:
1363         (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
1364         * WebCoreSupport/EditorClientQt.h:
1365
1366 2007-04-24  Steve Falkenburg  <sfalken@apple.com>
1367
1368         Reviewed by Oliver.
1369         
1370         Spelling and grammar stubs
1371
1372         * WebCoreSupport/EditorClientQt.cpp:
1373         (WebCore::EditorClientQt::ignoreWordInSpellDocument):
1374         (WebCore::EditorClientQt::learnWord):
1375         (WebCore::EditorClientQt::checkSpellingOfString):
1376         (WebCore::EditorClientQt::checkGrammarOfString):
1377         (WebCore::EditorClientQt::udpateSpellingUIWithGrammarString):
1378         (WebCore::EditorClientQt::updateSpellingUIWithMisspelledWord):
1379         (WebCore::EditorClientQt::showSpellingUI):
1380         (WebCore::EditorClientQt::spellingUIIsShowing):
1381         (WebCore::EditorClientQt::getGuessesForWord):
1382         * WebCoreSupport/EditorClientQt.h:
1383
1384 2007-04-11  MorganL  <morganl.webkit@yahoo.com>
1385
1386         Reviewed by Maciej.
1387
1388         Add a Frame pointer to ChromeClient methods:
1389         http://bugs.webkit.org/show_bug.cgi?id=13127
1390
1391         * WebCoreSupport/ChromeClientQt.cpp:
1392         (WebCore::ChromeClientQt::createWindow):
1393         (WebCore::ChromeClientQt::createModalDialog):
1394         * WebCoreSupport/ChromeClientQt.h:
1395
1396 2007-04-12  Mark Rowe  <mrowe@apple.com>
1397
1398         Second part of Qt build fix.
1399
1400         * WebCoreSupport/FrameLoaderClientQt.cpp:
1401         (WebCore::FrameLoaderClientQt::loadedFromCachedPage):
1402         (WebCore::FrameLoaderClientQt::setDocumentViewFromCachedPage):
1403         (WebCore::FrameLoaderClientQt::saveDocumentViewToCachedPage):
1404         * WebCoreSupport/FrameLoaderClientQt.h:
1405
1406 2007-03-27  Zack Rusin  <zrusin@trolltech.com>
1407
1408         Fix the rendering crashes due triggered
1409         asserts. Improve a bit the layout
1410         scheduling.
1411
1412         * Api/qwebframe.cpp:
1413         (QWebFrame::resizeEvent):
1414         (QWebFrame::paintEvent):
1415         * WebCoreSupport/FrameLoaderClientQt.cpp:
1416         (WebCore::FrameLoaderClientQt::forceLayout):
1417
1418 2007-03-16  Lars Knoll <lars@trolltech.com>
1419
1420         Fix the Qt build once again.
1421
1422         * WebCoreSupport/EditorClientQt.cpp:
1423         (WebCore::EditorClientQt::handleKeypress):
1424         * WebCoreSupport/FrameLoaderClientQt.cpp:
1425         (WebCore::FrameLoaderClientQt::blockedError):
1426         * WebCoreSupport/FrameLoaderClientQt.h:
1427
1428 2007-03-13  Lars Knoll <lars@trolltech.com>
1429
1430         Reviewed by George.
1431
1432         Don't try to load <object> tags with an invalid url.
1433         Fixes LayoutTests/fast/dom/object-plugin-hides-properties.html
1434         which hit an assertion in the frameloader.
1435
1436         * WebCoreSupport/FrameLoaderClientQt.cpp:
1437         (WebCore::FrameLoaderClientQt::objectContentType):
1438
1439 2007-03-13  Lars Knoll <lars@trolltech.com>
1440
1441         Reviewed by Anders.
1442
1443         Fix some crashes in the Qt build.
1444
1445         * Api/qwebframe.cpp:
1446         (QWebFrame::markup):
1447             Check for null pointer
1448         * WebCoreSupport/FrameLoaderClientQt.cpp:
1449         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
1450             Don't use an async callback into the FrameLoader.
1451         (WebCore::FrameLoaderClientQt::createFrame):
1452
1453 2007-03-11  Oliver Hunt  <oliver@apple.com>
1454
1455         Reviewed by Adele.
1456
1457         Stub for EditorClientQt::respondToChangedSelection
1458
1459         * WebCoreSupport/EditorClientQt.cpp:
1460         (WebCore::EditorClientQt::respondToChangedSelection):
1461         * WebCoreSupport/EditorClientQt.h:
1462
1463 2007-03-07  Adele Peterson  <adele@apple.com>
1464
1465         Reviewed by Darin.
1466
1467         WebKitQT part of fix for:
1468         http://bugs.webkit.org/show_bug.cgi?id=10871
1469         http://bugs.webkit.org/show_bug.cgi?id=12677
1470         <rdar://problem/4823129> REGRESSION: IME key events different in nightly
1471         <rdar://problem/4759563> REGRESSION: Return key is always sent when you confirm a clause in kotoeri
1472
1473         * WebCoreSupport/EditorClientQt.cpp:
1474         (WebCore::EditorClientQt::handleKeypress): Changed handleKeyPress to handleKeypress.
1475         (WebCore::EditorClientQt::handleInputMethodKeypress): Added.
1476         * WebCoreSupport/EditorClientQt.h:
1477
1478 2007-03-07  Darin Adler  <darin@apple.com>
1479
1480         * WebCoreSupport/FrameLoaderClientQt.h: Oops, forgot the header.
1481
1482 2007-03-07  Darin Adler  <darin@apple.com>
1483
1484         * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::userAgent):
1485         Try to fix the build by correcting the parameter here.
1486
1487 2007-03-02  Sam Weinig  <sam@webkit.org>
1488
1489         Reviewed by Anders.
1490
1491         Try to fix the Qt build
1492
1493         * WebCoreSupport/DragClientQt.cpp:
1494         (WebCore::DragClientQt::willPerformDragDestinationAction):
1495         (WebCore::DragClientQt::dragControllerDestroyed):
1496         (WebCore::DragClientQt::createDragImageForLink):
1497
1498 2007-02-26  Maciej Stachowiak  <mjs@apple.com>
1499
1500         Reviewed by Kevin McCullough.
1501
1502         - fix Qt build for earlier SVG changes.
1503
1504         * WebCoreSupport/EditCommandQt.cpp:
1505
1506 2007-02-24  Zack Rusin  <zrusin@trolltech.com>
1507
1508         Adjust the animation a little bit to make it more natural.
1509
1510         * QtLauncher/main.cpp:
1511         (HoverLabel::paintEvent):
1512
1513 2007-02-23  Zack Rusin  <zrusin@trolltech.com>
1514
1515         Adding a little bit of eye-candy to the last
1516         commit (animations on hover events)
1517
1518         * QtLauncher/main.cpp:
1519         (HoverLabel::HoverLabel):
1520         (HoverLabel::setHoverLink):
1521         (HoverLabel::sizeForFont):
1522         (HoverLabel::sizeHint):
1523         (HoverLabel::resetAnimation):
1524         (HoverLabel::paintEvent):
1525         (HoverLabel::interpolate):
1526         (SearchEdit::resizeEvent):
1527
1528 2007-02-23  Zack Rusin  <zrusin@trolltech.com>
1529
1530         Reviewed by Lars
1531
1532         Adding API and code for notification of when the
1533         mouse is hovering over a link and adding code to
1534         the sample app to showcase it.
1535
1536         * Api/qwebframe.cpp:
1537         (QWebFrame::mouseMoveEvent):
1538         * Api/qwebframe.h:
1539         * Api/qwebframe_p.h:
1540         (QWebFramePrivate::QWebFramePrivate):
1541         * Api/qwebpage.cpp:
1542         (QWebPage::createFrame):
1543         * Api/qwebpage.h:
1544         * QtLauncher/main.cpp:
1545         (HoverLabel::HoverLabel):
1546         (HoverLabel::setHoverLink):
1547         (HoverLabel::sizeHint):
1548         (HoverLabel::updateSize):
1549         (HoverLabel::paintEvent):
1550         (ClearButton::ClearButton):
1551         (ClearButton::paintEvent):
1552         (SearchEdit::SearchEdit):
1553         (SearchEdit::resizeEvent):
1554         (SearchEdit::moveEvent):
1555         (MainWindow::MainWindow):
1556         (MainWindow::showLinkHover):
1557         (MainWindow::resizeEvent):
1558
1559 2007-02-22  Zack Rusin  <zrusin@trolltech.com>
1560
1561         Reviewed by Lars
1562
1563         Fixing the default scroll offset, cleaning
1564         up private methods and making the default
1565         look not use any frames.
1566
1567         * Api/qwebframe.cpp:
1568         (QWebFramePrivate::init):
1569         (QWebFramePrivate::_q_handleKeyEvent):
1570         (QWebFrame::QWebFrame):
1571         (QWebFrame::wheelEvent):
1572         (QWebFrame::keyPressEvent):
1573         (QWebFrame::keyReleaseEvent):
1574         * Api/qwebframe.h:
1575         * Api/qwebframe_p.h:
1576
1577 2007-02-22  Zack Rusin  <zrusin@trolltech.com>
1578
1579         Reviewed by Lars
1580
1581         Make the qwebframe act as a proper canvas.
1582         Implement it on top of QAbstractScrollArea.
1583
1584         * Api/qwebframe.cpp:
1585         (QWebFramePrivate::init):
1586         (QWebFramePrivate::_q_adjustScrollbars):
1587         (QWebFrame::init):
1588         (QWebFrame::QWebFrame):
1589         (QWebFrame::resizeEvent):
1590         (QWebFrame::childFrames):
1591         (QWebFrame::paintEvent):
1592         (QWebFrame::mouseMoveEvent):
1593         (QWebFrame::mousePressEvent):
1594         (QWebFrame::mouseReleaseEvent):
1595         (QWebFrame::wheelEvent):
1596         (QWebFrame::keyPressEvent):
1597         (QWebFrame::keyReleaseEvent):
1598         (QWebFrame::dragEnterEvent):
1599         (QWebFrame::dragLeaveEvent):
1600         (QWebFrame::dragMoveEvent):
1601         (QWebFrame::handleKeyEvent):
1602         (QWebFrame::scrollContentsBy):
1603         * Api/qwebframe.h:
1604         * Api/qwebframe_p.h:
1605         (QWebFramePrivate::QWebFramePrivate):
1606
1607 2007-02-21  George Staikos  <staikos@kde.org>
1608
1609         Reviewed by Zack.
1610
1611         Add more editing support, and undo/redo.  Requires some nasty evil
1612         hacks that have to be sorted out in WebCore/editor.
1613
1614         * Api/qwebpage.cpp:
1615         (QWebPagePrivate::QWebPagePrivate):
1616         (QWebPagePrivate::~QWebPagePrivate):
1617         (QWebPage::undoStack):
1618         * Api/qwebpage.h:
1619         * Api/qwebpage_p.h:
1620         * WebCoreSupport/EditorClientQt.cpp:
1621         (WebCore::EditorClientQt::didBeginEditing):
1622         (WebCore::EditorClientQt::didEndEditing):
1623         (WebCore::EditorClientQt::isEditable):
1624         (WebCore::EditorClientQt::registerCommandForUndo):
1625         (WebCore::EditorClientQt::registerCommandForRedo):
1626         (WebCore::EditorClientQt::clearUndoRedoOperations):
1627         (WebCore::EditorClientQt::canUndo):
1628         (WebCore::EditorClientQt::canRedo):
1629         (WebCore::EditorClientQt::undo):
1630         (WebCore::EditorClientQt::redo):
1631         (WebCore::EditorClientQt::handleKeyPress):
1632         (WebCore::EditorClientQt::EditorClientQt):
1633         (WebCore::EditorClientQt::textFieldDidBeginEditing):
1634         (WebCore::EditorClientQt::textFieldDidEndEditing):
1635         (WebCore::EditorClientQt::isEditing):
1636         * WebCoreSupport/EditorClientQt.h:
1637
1638 2007-02-21  Zack Rusin  <zrusin@trolltech.com>
1639
1640         Fix compilation.
1641
1642         * WebCoreSupport/ContextMenuClientQt.cpp:
1643         * WebCoreSupport/ContextMenuClientQt.h:
1644
1645 2007-02-21  George Staikos  <staikos@kde.org>
1646
1647         Fix compile.
1648
1649         * Api/qwebpage.cpp:
1650         (QWebPage::stop):
1651
1652 2007-02-20  Zack Rusin  <zrusin@trolltech.com>
1653
1654         Reviewed by Lars
1655
1656         Make editing of forms work plus make sure that non-void methods
1657         always return something.
1658
1659         * WebCoreSupport/ChromeClientQt.cpp:
1660         (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
1661         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
1662         (WebCore::ChromeClientQt::runJavaScriptConfirm):
1663         (WebCore::ChromeClientQt::runJavaScriptPrompt):
1664         (WebCore::ChromeClientQt::shouldInterruptJavaScript):
1665         * WebCoreSupport/EditorClientQt.cpp:
1666         (WebCore::EditorClientQt::shouldDeleteRange):
1667         (WebCore::EditorClientQt::shouldBeginEditing):
1668         (WebCore::EditorClientQt::shouldEndEditing):
1669         (WebCore::EditorClientQt::shouldInsertText):
1670         (WebCore::EditorClientQt::shouldChangeSelectedRange):
1671         (WebCore::EditorClientQt::shouldApplyStyle):
1672         (WebCore::EditorClientQt::shouldInsertNode):
1673         * WebCoreSupport/FrameLoaderClientQt.cpp:
1674         (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
1675         (WebCore::FrameLoaderClientQt::dispatchCreatePage):
1676
1677 2007-02-17  Lars Knoll <lars@trolltech.com>
1678
1679         Reviewed by Maciej.
1680
1681         Additional coding by Maciej, additional review by Oliver.
1682
1683         Add stubs for the new methods in ChormeClient and EditorClient,
1684         remove all references to FrameQt.
1685
1686         * Api/qwebframe.cpp:
1687         (QWebFrame::QWebFrame):
1688         * Api/qwebframe_p.h:
1689         * Api/qwebpage.cpp:
1690         * WebCoreSupport/ChromeClientQt.cpp:
1691         (WebCore::ChromeClientQt::shouldInterruptJavaScript):
1692         * WebCoreSupport/ChromeClientQt.h:
1693         * WebCoreSupport/EditorClientQt.cpp:
1694         (WebCore::EditorClientQt::shouldChangeSelectedRange):
1695         (WebCore::EditorClientQt::isEditable):
1696         * WebCoreSupport/EditorClientQt.h:
1697         * WebCoreSupport/FrameLoaderClientQt.cpp:
1698         (WebCore::FrameLoaderClientQt::setFrame):
1699         (WebCore::FrameLoaderClientQt::webFrame):
1700         * WebCoreSupport/FrameLoaderClientQt.h:
1701
1702 2007-02-18  Oliver Hunt  <oliver@apple.com>
1703
1704         Reviewed by NOBODY (Buildfix).
1705
1706         Build fix -- adding DragClientQt method stubs
1707
1708         * WebCoreSupport/DragClientQt.cpp:
1709         (WebCore::DragClientQt::willPerformDragSourceAction):
1710         (WebCore::DragClientQt::startDrag):
1711         (WebCore::DragClientQt::createDragImageForLink):
1712         * WebCoreSupport/DragClientQt.h:
1713
1714 2007-02-15  Brady Eidson  <beidson@apple.com>
1715
1716         Reviewed by Adam
1717
1718         Moved scroll state down into the cross platform FrameLoader - 
1719         Blind attempt at keeping Qt building
1720
1721         * WebCoreSupport/FrameLoaderClientQt.cpp:
1722         (WebCore::FrameLoaderClientQt::restoreViewState):
1723         (WebCore::FrameLoaderClientQt::saveViewStateToItem):
1724         * WebCoreSupport/FrameLoaderClientQt.h:
1725
1726 2007-02-07  Anders Carlsson  <acarlsson@apple.com>
1727
1728         Try fixing the Qt build.
1729
1730         * WebCoreSupport/ChromeClientQt.cpp:
1731         (WebCore::ChromeClientQt::shouldInterruptJavaScript):
1732         * WebCoreSupport/ChromeClientQt.h:
1733
1734 2007-02-02  Zack Rusin  <zrusin@trolltech.com>
1735
1736         Compilation fix: forward declare d-ptr.
1737
1738         * Api/qcookiejar.h:
1739
1740 2007-02-02  Zack Rusin  <zrusin@trolltech.com>
1741
1742         Reviewed by Lars
1743
1744         Make the frames white by default and get the
1745         files that WebCore can handle render inside
1746         the frames.
1747
1748         * Api/qwebframe.cpp:
1749         (QWebFrame::QWebFrame):
1750         * WebCoreSupport/FrameLoaderClientQt.cpp:
1751         (WebCore::FrameLoaderClientQt::createFrame):
1752         (WebCore::FrameLoaderClientQt::objectContentType):
1753
1754 2007-02-01  George Staikos  <staikos@kde.org>
1755
1756         Reviewed by Zack and Lars.
1757
1758         Add a cookie interface for the Qt build.
1759
1760         * Api/qcookiejar.cpp: Added.
1761         (QCookieJarPrivate::QCookieJarPrivate):
1762         (qHash):
1763         (QCookieJar::QCookieJar):
1764         (QCookieJar::~QCookieJar):
1765         (QCookieJar::setCookies):
1766         (QCookieJar::cookies):
1767         (QCookieJar::isEnabled):
1768         (QCookieJar::setEnabled):
1769         (gCleanupJar):
1770         (QCookieJar::setCookieJar):
1771         (QCookieJar::cookieJar):
1772         * Api/qcookiejar.h: Added.
1773
1774 2007-02-01  Lars Knoll <lars@trolltech.com>
1775
1776         Reviewed by Adam.
1777
1778         Fix form loading for the Qt build.
1779
1780         * WebCoreSupport/FrameLoaderClientQt.cpp:
1781         (WebCore::FrameLoaderClientQt::callPolicyFunction):
1782         (WebCore::FrameLoaderClientQt::slotCallPolicyFunction):
1783         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
1784         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
1785         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
1786         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
1787
1788 2007-01-31  Zack Rusin  <zrusin@trolltech.com>
1789
1790         Expose the fact that the form has been edited
1791         in the public api.
1792
1793         * Api/qwebpage.cpp:
1794         (QWebPagePrivate::QWebPagePrivate):
1795         (QWebPage::isModified):
1796         * Api/qwebpage.h:
1797         * Api/qwebpage_p.h:
1798         * WebCoreSupport/EditorClientQt.cpp:
1799         (WebCore::EditorClientQt::respondToChangedContents):
1800         (WebCore::EditorClientQt::isEditable):
1801
1802 2007-01-31  Zack Rusin  <zrusin@trolltech.com>
1803
1804         Reviewed by Lars
1805
1806         Properly propagate key events.
1807
1808         * Api/qwebframe.cpp:
1809         (QWebFrame::addToJSWindowObject):
1810         (QWebFrame::innerText):
1811         (QWebFrame::renderTreeDump):
1812         * Api/qwebpage.cpp:
1813         (QWebPagePrivate::QWebPagePrivate):
1814         * Api/qwebpage.h:
1815         * WebCoreSupport/EditorClientQt.cpp:
1816         (WebCore::EditorClientQt::pageDestroyed):
1817         (WebCore::EditorClientQt::handleKeyPress):
1818         (WebCore::EditorClientQt::EditorClientQt):
1819         * WebCoreSupport/EditorClientQt.h:
1820
1821 2007-01-31  George Staikos  <staikos@kde.org>
1822
1823         Remove focusFrame() - misguided - and add childFrames().  Fix a crash
1824         on exit.
1825
1826         Reviewed by Zack.
1827
1828         * Api/qwebframe.cpp:
1829         (QWebFrame::resizeEvent):
1830         (QWebFrame::childFrames):
1831         * Api/qwebframe.h:
1832         * Api/qwebpage.cpp:
1833         * Api/qwebpage.h:
1834         * WebCoreSupport/FrameLoaderClientQt.cpp:
1835         (WebCore::FrameLoaderClientQt::webFrame):
1836         * WebCoreSupport/FrameLoaderClientQt.h:
1837
1838 2007-01-30  Zack Rusin  <zrusin@trolltech.com>
1839
1840         Improve QtLauncher to make it more useful as a testing tool.
1841
1842         * QtLauncher/main.cpp:
1843         (ClearButton::ClearButton):
1844         (ClearButton::paintEvent):
1845         (SearchEdit::SearchEdit):
1846         (SearchEdit::~SearchEdit):
1847         (SearchEdit::paintEvent):
1848         (SearchEdit::resizeEvent):
1849         (SearchEdit::moveEvent):
1850         (MainWindow::MainWindow):
1851         (MainWindow::changeLocation):
1852         (MainWindow::loadFinished):
1853
1854 2007-01-30  Simon Hausmann  <hausmann@kde.org>
1855
1856         Reviewed by Zack.
1857
1858         Added import/export macros needed for build with ELF visibility and
1859         for a build on Windows (in the future).
1860
1861         * Api/qwebframe.h:
1862         * Api/qwebkitglobal.h: Added.
1863         * Api/qwebpage.h:
1864         * Api/qwebpagehistory.h:
1865
1866 2007-01-30  Zack Rusin  <zack@kde.org>
1867
1868         Change the signature of handleKeyPress
1869         (make it compile)
1870
1871         * WebCoreSupport/EditorClientQt.cpp:
1872         (WebCore::EditorClientQt::handleKeyPress):
1873         * WebCoreSupport/EditorClientQt.h:
1874
1875 2007-01-29  Zack Rusin  <zack@kde.org>
1876
1877         Reviewed by Lars
1878
1879         Set the allows-scrolling property on the view.
1880
1881         * Api/qwebframe.cpp:
1882         (QWebFrame::QWebFrame):
1883
1884 2007-01-29  Oliver Hunt  <oliver@apple.com>
1885
1886         Reviewed by Adam.
1887
1888         Stub for new DragClient method
1889
1890         * WebCoreSupport/DragClientQt.cpp:
1891         (WebCore::DragClientQt::dragSourceActionMaskForPoint):
1892         * WebCoreSupport/DragClientQt.h:
1893
1894 2007-01-29  Maciej Stachowiak  <mjs@apple.com>
1895
1896         Reviewed by Mark.
1897
1898         - updated for cross-platform data loading support
1899
1900         * WebCoreSupport/FrameLoaderClientQt.cpp:
1901         (WebCore::FrameLoaderClientQt::createDocumentLoader):
1902         * WebCoreSupport/FrameLoaderClientQt.h:
1903
1904 2007-01-29  George Staikos  <staikos@kde.org>
1905
1906         Make window resizing work.
1907
1908         * Api/qwebpage.cpp:
1909         (QWebPage::setWindowGeometry):
1910         * Api/qwebpage.h:
1911         * WebCoreSupport/ChromeClientQt.cpp:
1912         (WebCore::ChromeClientQt::setWindowRect):
1913
1914 2007-01-29  George Staikos  <staikos@kde.org>
1915
1916         Make popup windows work.
1917
1918         * Api/qwebpage.cpp:
1919         (QWebPage::createWindow):
1920         * Api/qwebpage.h:
1921         * WebCoreSupport/ChromeClientQt.cpp:
1922         (WebCore::ChromeClientQt::createWindow):
1923
1924 2007-01-29  Lars Knoll <lars@trolltech.com>
1925
1926         Reviewed by Zack
1927
1928         Fix the way we handle native widgets (QWidget) inside
1929         WebCore. Now WebCore::Widget owns the QWidget in all
1930         cases. This is the only way to get well defined semantics
1931         for all teh native widgets we have (currently ScrollView
1932         and ScrollBar, but plugins will follow).
1933
1934         This has the side effect that one cannot rely on a defined 
1935         lifetime of a QWebFrame when using the API. 
1936
1937         * Api/qwebframe.cpp:
1938         (QWebFrame::~QWebFrame):
1939         * Api/qwebpage.cpp:
1940         (QWebPage::~QWebPage):
1941         * Api/qwebpage_p.h:
1942         * WebCoreSupport/FrameLoaderClientQt.cpp:
1943         (WebCore::FrameLoaderClientQt::detachedFromParent3):
1944         (WebCore::FrameLoaderClientQt::detachedFromParent4):
1945         (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
1946         * WebCoreSupport/FrameLoaderClientQt.h:
1947
1948 2007-01-29  George Staikos  <staikos@kde.org>
1949
1950         Reviewed by Zack.
1951
1952         Implement more functions
1953
1954         * Api/qwebpage.cpp:
1955         (QWebPage::javaScriptConsoleMessage):
1956         (QWebPage::statusTextChanged):
1957         (QWebPage::runJavaScriptAlert):
1958         * Api/qwebpage.h:
1959         * Api/qwebpagehistory.cpp:
1960         (QWebPageHistory::canGoBack):
1961         (QWebPageHistory::canGoForward):
1962         * Api/qwebpagehistory.h:
1963         * WebCoreSupport/ChromeClientQt.cpp:
1964         (WebCore::ChromeClientQt::addMessageToConsole):
1965         (WebCore::ChromeClientQt::runJavaScriptAlert):
1966         * WebCoreSupport/FrameLoaderClientQt.cpp:
1967         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
1968
1969 2007-01-26  George Staikos  <staikos@kde.org>
1970
1971         Reviewed by Zack.
1972
1973         Qt implementation.
1974
1975         * Api/qwebframe.cpp:
1976         (QWebFrame::QWebFrame):
1977         (QWebFrame::title):
1978         (QWebFrame::selectedText):
1979         * Api/qwebframe.h:
1980         * Api/qwebframe_p.h:
1981         * Api/qwebpage.cpp:
1982         (QWebPage::createFrame):
1983         (QWebPage::open):
1984         (QWebPage::url):
1985         (QWebPage::title):
1986         (QWebPage::focusFrame):
1987         (QWebPage::stop):
1988         * Api/qwebpage.h:
1989         * WebCoreSupport/FrameLoaderClientQt.cpp:
1990         (WebCore::FrameLoaderClientQt::setFrame):
1991         (WebCore::FrameLoaderClientQt::detachFrameLoader):
1992         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
1993         (WebCore::FrameLoaderClientQt::didChangeTitle):
1994         (WebCore::FrameLoaderClientQt::setTitle):
1995         * WebCoreSupport/FrameLoaderClientQt.h:
1996
1997 2007-01-26  Lars Knoll <lars@trolltech.com>
1998
1999         Make it compile again with Qt 4.2 and add the copyright
2000         headers where forgotten in the last submit.
2001
2002         * Api/qwebpagehistory.cpp:
2003         * Api/qwebpagehistory.h:
2004         (QExplicitlySharedDataPointer::operator*):
2005         (QExplicitlySharedDataPointer::operator->):
2006         (QExplicitlySharedDataPointer::operator T *):
2007         (QExplicitlySharedDataPointer::operator const T *):
2008         (QExplicitlySharedDataPointer::data):
2009         (QExplicitlySharedDataPointer::constData):
2010         (QExplicitlySharedDataPointer::operator==):
2011         (QExplicitlySharedDataPointer::operator!=):
2012         (QExplicitlySharedDataPointer::QExplicitlySharedDataPointer):
2013         (QExplicitlySharedDataPointer::~QExplicitlySharedDataPointer):
2014         (QExplicitlySharedDataPointer::operator=):
2015         (QExplicitlySharedDataPointer::operator!):
2016         (::QExplicitlySharedDataPointer):
2017
2018 2007-01-26  Zack Rusin  <zrusin@trolltech.com>
2019
2020         Reviewed by Lars
2021
2022         Implement history support on platform Qt.
2023
2024         * Api/qwebpage.cpp:
2025         (QWebPage::history):
2026         (QWebPage::goBack):
2027         (QWebPage::goForward):
2028         (QWebPage::goToHistoryItem):
2029         * Api/qwebpage.h:
2030         * Api/qwebpagehistory.cpp: Added.
2031         (QWebHistoryItem::~QWebHistoryItem):
2032         (QWebHistoryItem::originalUrl):
2033         (QWebHistoryItem::currentUrl):
2034         (QWebHistoryItem::title):
2035         (QWebHistoryItem::lastVisited):
2036         (QWebHistoryItem::icon):
2037         (QWebHistoryItem::QWebHistoryItem):
2038         (QWebPageHistory::QWebPageHistory):
2039         (QWebPageHistory::itemAtIndex):
2040         (QWebPageHistory::~QWebPageHistory):
2041         (QWebPageHistory::items):
2042         (QWebPageHistory::backItems):
2043         (QWebPageHistory::forwardItems):
2044         (QWebPageHistory::goBack):
2045         (QWebPageHistory::goForward):
2046         (QWebPageHistory::goToItem):
2047         (QWebPageHistory::backItem):
2048         (QWebPageHistory::currentItem):
2049         (QWebPageHistory::forwardItem):
2050         * Api/qwebpagehistory.h: Added.
2051         * Api/qwebpagehistory_p.h: Added.
2052         (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
2053         (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
2054         (QWebPageHistoryPrivate::QWebPageHistoryPrivate):
2055         (QWebPageHistoryPrivate::~QWebPageHistoryPrivate):
2056
2057 2007-01-26  Lars Knoll <lars@trolltech.com>
2058
2059         Get rid of FrameQtClient. It's unused since we moved over
2060         to the loader.
2061
2062         * Api/qwebframe.cpp:
2063         (QWebFrame::QWebFrame):
2064
2065 2007-01-26  Zack Rusin  <zack@kde.org>
2066
2067         Reviewed by Lars
2068
2069         Correctly position child frames within the 
2070         toplevel frame. We were placed it on the widget
2071         itself instead of the vieweport.
2072
2073         * Api/qwebframe.cpp:
2074         (QWebFrame::QWebFrame):
2075
2076 2007-01-26  Lars Knoll <lars@trolltech.com>
2077
2078         Reviewed by Zack
2079
2080         Make sure we resize the HTML when resizing a 
2081         QWebFrame. Also ensure that the render tree
2082         is up to date before dumping it.
2083
2084         * Api/qwebframe.cpp:
2085         (QWebFrame::innerText):
2086         (QWebFrame::renderTreeDump):
2087         (QWebFrame::resizeEvent):
2088         * Api/qwebframe.h:
2089         * Api/qwebpage.cpp:
2090         (QWebPagePrivate::createMainFrame):
2091
2092 2007-01-26  Zack Rusin  <zack@kde.org>
2093
2094         Reviewed by Lars
2095
2096         Display pages inside a mainwindow instead
2097         of a custom qwidget.
2098
2099         * QtLauncher/main.cpp:
2100         (MainWindow::MainWindow):
2101         (main):
2102
2103 2007-01-25  Lars Knoll <lars@trolltech.com>
2104
2105         Reviewed by Zack
2106
2107         Emit the loadDone() signal from teh onload event callback
2108         again. This hangs on one or two test cases, but removes
2109         hundreds of failures elsewhere.
2110
2111         * WebCoreSupport/FrameLoaderClientQt.cpp:
2112         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
2113         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
2114
2115 2007-01-24  Lars Knoll <lars@trolltech.com>
2116
2117         Reviewed by Zack
2118
2119         Implement some bits and pieces required by the loader.
2120         Fixes quite a few crashes and hangs in the lyout tests
2121
2122         * Api/qwebframe.h:
2123         * WebCoreSupport/FrameLoaderClientQt.cpp:
2124         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
2125         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
2126         (WebCore::FrameLoaderClientQt::finishedLoading):
2127         (WebCore::FrameLoaderClientQt::setMainDocumentError):
2128         (WebCore::FrameLoaderClientQt::committedLoad):
2129         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
2130         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
2131         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2132         (WebCore::FrameLoaderClientQt::createFrame):
2133
2134 2007-01-24  Lars Knoll <lars@trolltech.com>
2135
2136         Fix compilation again.
2137
2138         * WebCoreSupport/EditorClientQt.cpp:
2139         (WebCore::EditorClientQt::handleKeyPress):
2140         * WebCoreSupport/EditorClientQt.h:
2141
2142 2007-01-23  Lars Knoll <lars@trolltech.com>
2143
2144         Reviewed by Zack
2145
2146         Fix refcounting of FrameViews (they get created with a
2147         refcount of 1) and add a few safety checks to the 
2148         FrameLoaderClientQt.
2149
2150         * Api/qwebframe.cpp:
2151         (QWebFrame::QWebFrame):
2152         (QWebFrame::~QWebFrame):
2153         * WebCoreSupport/FrameLoaderClientQt.cpp:
2154         (WebCore::FrameLoaderClientQt::detachedFromParent3):
2155         (WebCore::FrameLoaderClientQt::detachedFromParent4):
2156         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
2157         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
2158         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
2159         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
2160         (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
2161         (WebCore::FrameLoaderClientQt::windowObjectCleared):
2162
2163 2007-01-23  Zack Rusin  <zack@kde.org>
2164
2165         Adjust the DragClientQt to latest changes.
2166
2167         * Api/qwebpage.cpp:
2168         (QWebPagePrivate::QWebPagePrivate):
2169         * WebCoreSupport/DragClientQt.cpp:
2170         (WebCore::DragClientQt::dragControllerDestroyed):
2171         * WebCoreSupport/DragClientQt.h:
2172
2173 2007-01-23  Zack Rusin  <zack@kde.org>
2174
2175         Fix the Qt build
2176
2177         * WebCoreSupport/DragClientQt.cpp:
2178         (WebCore::DragClientQt::willPerformDragDestinationAction):
2179         * WebCoreSupport/DragClientQt.h:
2180
2181 2007-01-23  Lars Knoll <lars@trolltech.com>
2182
2183         Reviewed by Maciej
2184
2185         Add support for Frames to the Qt build and fix some issues
2186         in the API classes.
2187
2188         * Api/qwebframe.cpp:
2189         (QWebFrame::QWebFrame):
2190         (QWebFrame::~QWebFrame):
2191         * Api/qwebframe.h:
2192         * Api/qwebframe_p.h:
2193         * Api/qwebpage.cpp:
2194         (QWebPagePrivate::QWebPagePrivate):
2195         (QWebPagePrivate::createMainFrame):
2196         (QWebPage::createFrame):
2197         * Api/qwebpage.h:
2198         * WebCoreSupport/FrameLoaderClientQt.cpp:
2199         (WebCore::FrameLoaderClientQt::detachedFromParent3):
2200         (WebCore::FrameLoaderClientQt::detachedFromParent4):
2201         (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
2202         (WebCore::FrameLoaderClientQt::windowObjectCleared):
2203         (WebCore::FrameLoaderClientQt::createFrame):
2204         (WebCore::FrameLoaderClientQt::objectContentType):
2205         (WebCore::FrameLoaderClientQt::createPlugin):
2206         (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
2207         (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
2208         (WebCore::FrameLoaderClientQt::overrideMediaType):
2209         * WebCoreSupport/FrameLoaderClientQt.h:
2210
2211 2007-01-23  Oliver Hunt  <oliver@apple.com>
2212
2213         Reviewed by Adam.
2214
2215         Qt build stubs for Drop logic
2216
2217         * WebCoreSupport/DragClientQt.cpp: Added.
2218         (WebCore::DragClientQt::actionMaskForDrag):
2219         (WebCore::DragClientQt::willPerformDragDestinationAction):
2220         * WebCoreSupport/DragClientQt.h: Added.
2221         * WebKitPart/WebKitPart.cpp:
2222         (WebKitPart::initView):
2223
2224 2007-01-19  John Sullivan  <sullivan@apple.com>
2225
2226         Added stubs for new callbacks, to try to avoid breaking the Qt port.
2227
2228         * WebCoreSupport/FrameLoaderClientQt.cpp:
2229         (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
2230         * WebCoreSupport/FrameLoaderClientQt.h:
2231
2232 2007-01-19  Anders Carlsson  <acarlsson@apple.com>
2233
2234         Try fixing the QT build.
2235         
2236         * WebCoreSupport/ChromeClientQt.cpp:
2237         (WebCore::ChromeClientQt::runJavaScriptAlert):
2238         (WebCore::ChromeClientQt::runJavaScriptConfirm):
2239         (WebCore::ChromeClientQt::runJavaScriptPrompt):
2240         (WebCore::ChromeClientQt::setStatusbarText):
2241         * WebCoreSupport/ChromeClientQt.h:
2242
2243 2007-01-18  Zack Rusin  <zack@kde.org>
2244
2245         Reviewed by Lars.
2246
2247         Implementing a little bit of load progress tracking in the Qt port.
2248
2249         * Api/qwebframe.cpp:
2250         (QWebFrame::QWebFrame):
2251         (QWebFrame::page):
2252         * Api/qwebframe.h:
2253         * Api/qwebframe_p.h:
2254         (QWebFramePrivate::QWebFramePrivate):
2255         * Api/qwebpage.h:
2256         * QtLauncher/main.cpp:
2257         (main):
2258         * WebCoreSupport/FrameLoaderClientQt.cpp:
2259         (WebCore::FrameLoaderClientQt::setFrame):
2260         (WebCore::FrameLoaderClientQt::detachFrameLoader):
2261         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
2262         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
2263         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
2264         * WebCoreSupport/FrameLoaderClientQt.h:
2265
2266 2007-01-17  Alice Liu  <alice.liu@apple.com>
2267
2268         Added these stubs to keep the Qt build from failing.
2269
2270         * WebCoreSupport/EditorClientQt.cpp:
2271         (WebCore::EditorClientQt::didSetSelectionTypesForPasteboard):
2272         * WebCoreSupport/EditorClientQt.h:
2273
2274 2007-01-17  Lars Knoll <lars@trolltech.com>
2275
2276         Reviewed by Zack
2277
2278         Remove the inheritance from Shared<XxxClient> in the
2279         client classes.
2280
2281         Answer asynchronously to most of the Policy checking methods
2282         in FrameLoaderClientQt to avoid some crashes in the loader.
2283
2284         * WebCoreSupport/ChromeClientQt.cpp:
2285         * WebCoreSupport/ChromeClientQt.h:
2286         * WebCoreSupport/ContextMenuClientQt.cpp:
2287         * WebCoreSupport/ContextMenuClientQt.h:
2288         * WebCoreSupport/EditorClientQt.cpp:
2289         * WebCoreSupport/EditorClientQt.h:
2290         * WebCoreSupport/FrameLoaderClientQt.cpp:
2291         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
2292         (WebCore::FrameLoaderClientQt::callPolicyFunction):
2293         (WebCore::FrameLoaderClientQt::slotCallPolicyFunction):
2294         (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
2295         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
2296         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2297         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
2298         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2299         * WebCoreSupport/FrameLoaderClientQt.h:
2300
2301 2007-01-17  Lars Knoll <lars@trolltech.com>
2302
2303         Reviewed by Zack
2304
2305         change all notImplemented() macros to use qDebug
2306         instead of fprintf(stder, ...)
2307
2308         * WebCoreSupport/ChromeClientQt.cpp:
2309         * WebCoreSupport/ContextMenuClientQt.cpp:
2310         * WebCoreSupport/EditorClientQt.cpp:
2311         * WebCoreSupport/FrameLoaderClientQt.cpp:
2312
2313 2007-01-16  Alice Liu  <alice.liu@apple.com>
2314
2315         Added these stubs to keep the Qt build from failing.
2316
2317         * WebCoreSupport/EditorClientQt.cpp:
2318         (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
2319         * WebCoreSupport/EditorClientQt.h:
2320
2321 2007-01-16  Lars Knoll <lars@trolltech.com>
2322
2323         Reviewed by Zack
2324
2325         Added the start of a public API to the Qt build
2326         of WebKit. Currently we have QWebPage and QWebFrame
2327         with a few small methods.
2328
2329         Converted the QtLauncher to use the new public API.
2330
2331         * Api/qwebframe.cpp: Added.
2332         (QWebFrame::QWebFrame):
2333         (QWebFrame::~QWebFrame):
2334         (QWebFrame::addToJSWindowObject):
2335         (QWebFrame::markup):
2336         (QWebFrame::innerText):
2337         (QWebFrame::renderTreeDump):
2338         * Api/qwebframe.h: Added.
2339         * Api/qwebframe_p.h: Added.
2340         (QWebFramePrivate::QWebFramePrivate):
2341         * Api/qwebpage.cpp: Added.
2342         (QWebPagePrivate::QWebPagePrivate):
2343         (QWebPagePrivate::~QWebPagePrivate):
2344         (QWebPagePrivate::createMainFrame):
2345         (QWebPage::QWebPage):
2346         (QWebPage::~QWebPage):
2347         (QWebPage::createFrame):
2348         (QWebPage::open):
2349         (QWebPage::mainFrame):
2350         (QWebPage::sizeHint):
2351         * Api/qwebpage.h: Added.
2352         * Api/qwebpage_p.h: Added.
2353         * QtLauncher/main.cpp:
2354         (main):
2355         * WebCoreSupport/ChromeClientQt.cpp:
2356         (WebCore::ChromeClientQt::ChromeClientQt):
2357         (WebCore::ChromeClientQt::setWindowRect):
2358         (WebCore::ChromeClientQt::windowRect):
2359         (WebCore::ChromeClientQt::pageRect):
2360         (WebCore::ChromeClientQt::focus):
2361         (WebCore::ChromeClientQt::unfocus):
2362         (WebCore::ChromeClientQt::canTakeFocus):
2363         (WebCore::ChromeClientQt::takeFocus):
2364         (WebCore::ChromeClientQt::createWindow):
2365         (WebCore::ChromeClientQt::createModalDialog):
2366         (WebCore::ChromeClientQt::show):
2367         (WebCore::ChromeClientQt::addMessageToConsole):
2368         (WebCore::ChromeClientQt::chromeDestroyed):
2369         (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
2370         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
2371         (WebCore::ChromeClientQt::closeWindowSoon):
2372         * WebCoreSupport/ChromeClientQt.h:
2373         * WebCoreSupport/FrameLoaderClientQt.cpp:
2374         (WebCore::FrameLoaderClientQt::setFrame):
2375         (WebCore::FrameLoaderClientQt::detachFrameLoader):
2376         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
2377         (WebCore::FrameLoaderClientQt::partClearedInBegin):
2378         * WebCoreSupport/FrameLoaderClientQt.h:
2379
2380 2007-01-15  Anders Carlsson  <acarlsson@apple.com>
2381
2382         Fix build.
2383         
2384         * WebCoreSupport/FrameLoaderClientQt.cpp:
2385         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
2386         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
2387         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
2388         * WebCoreSupport/FrameLoaderClientQt.h:
2389
2390 2007-01-13  Lars Knoll <lars@trolltech.com>
2391
2392         Compile again after yesterdays changes.
2393
2394         * WebCoreSupport/FrameLoaderClientQt.cpp:
2395         (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
2396         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
2397         (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge):
2398         (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge):
2399         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
2400         (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
2401         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
2402         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
2403         (WebCore::FrameLoaderClientQt::incrementProgress):
2404         (WebCore::FrameLoaderClientQt::completeProgress):
2405         * WebCoreSupport/FrameLoaderClientQt.h:
2406
2407 2007-01-11  Brady Eidson  <beidson@apple.com>
2408
2409         Keep the fancy new FrameLoaderClientQt building with a small api change in WebCore
2410         Yay for the loader on QT!
2411
2412         * WebCoreSupport/FrameLoaderClientQt.cpp:
2413         (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge):
2414         (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge):
2415         * WebCoreSupport/FrameLoaderClientQt.h:
2416
2417 2007-01-11  Lars Knoll <lars@trolltech.com>
2418
2419         Reviewed by Darin
2420
2421         Start using the loader in the Qt port.
2422
2423         * QtLauncher/main.cpp:
2424         (main):
2425         * WebCoreSupport/FrameLoaderClientQt.cpp:
2426         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
2427         (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
2428         (WebCore::FrameLoaderClientQt::setFrame):
2429         (WebCore::FrameLoaderClientQt::detachFrameLoader):
2430         (WebCore::FrameLoaderClientQt::makeDocumentView):
2431         (WebCore::FrameLoaderClientQt::makeRepresentation):
2432         (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
2433         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
2434         (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
2435         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
2436         (WebCore::FrameLoaderClientQt::progressStarted):
2437         (WebCore::FrameLoaderClientQt::progressCompleted):
2438         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
2439         (WebCore::FrameLoaderClientQt::clearArchivedResources):
2440         (WebCore::FrameLoaderClientQt::canShowMIMEType):
2441         (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
2442         (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
2443         (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
2444         (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
2445         (WebCore::FrameLoaderClientQt::canHandleRequest):
2446         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
2447         (WebCore::FrameLoaderClientQt::canCachePage):
2448         (WebCore::FrameLoaderClientQt::committedLoad):
2449         (WebCore::FrameLoaderClientQt::cancelledError):
2450         (WebCore::FrameLoaderClientQt::cannotShowURLError):
2451         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2452         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2453         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2454         (WebCore::FrameLoaderClientQt::shouldFallBack):
2455         (WebCore::FrameLoaderClientQt::createDocumentLoader):
2456         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
2457         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
2458         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2459         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
2460         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2461         (WebCore::FrameLoaderClientQt::willUseArchive):
2462         * WebCoreSupport/FrameLoaderClientQt.h:
2463
2464 2007-01-11  George Staikos  <staikos@kde.org>
2465
2466         Fix Qt Build.
2467
2468         * WebCoreSupport/ContextMenuClientQt.cpp:
2469         (WebCore::ContextMenuClientQt::searchWithGoogle):
2470         * WebCoreSupport/ContextMenuClientQt.h:
2471
2472 2007-01-06  George Staikos  <staikos@kde.org>
2473
2474         Reviewed by Brady.
2475
2476         Make it link.
2477
2478         * WebCoreSupport/FrameLoaderClientQt.cpp:
2479         (WebCore::FrameLoaderClientQt::setMainDocumentError):
2480         (WebCore::FrameLoaderClientQt::committedLoad):
2481         (WebCore::FrameLoaderClientQt::cancelledError):
2482         (WebCore::FrameLoaderClientQt::cannotShowURLError):
2483         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2484         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2485         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2486         (WebCore::FrameLoaderClientQt::shouldFallBack):
2487         (WebCore::FrameLoaderClientQt::createDocumentLoader):
2488         (WebCore::FrameLoaderClientQt::download):
2489         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
2490         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
2491         (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
2492         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
2493         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
2494         (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
2495         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
2496         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
2497         (WebCore::FrameLoaderClientQt::dispatchCreatePage):
2498         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2499         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
2500         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2501         (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
2502         (WebCore::FrameLoaderClientQt::incrementProgress):
2503         (WebCore::FrameLoaderClientQt::completeProgress):
2504         (WebCore::FrameLoaderClientQt::startDownload):
2505         (WebCore::FrameLoaderClientQt::willUseArchive):
2506         * WebCoreSupport/FrameLoaderClientQt.h:
2507
2508 2007-01-05  Lars Knoll <lars@trolltech.com>
2509
2510         Make the Qt build compile again
2511
2512         * WebCoreSupport/ChromeClientQt.cpp:
2513         (WebCore::ChromeClientQt::canTakeFocus):
2514         (WebCore::ChromeClientQt::takeFocus):
2515         * WebCoreSupport/ChromeClientQt.h:
2516         * WebCoreSupport/ContextMenuClientQt.cpp:
2517         (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
2518         * WebCoreSupport/ContextMenuClientQt.h:
2519
2520 2007-01-03  Lars Knoll <lars@trolltech.com>
2521
2522         Fix the Qt build
2523
2524         * WebCoreSupport/FrameLoaderClientQt.cpp:
2525         (WebCore::FrameLoaderClientQt::setDocumentViewFromPageCache):
2526         (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
2527         (WebCore::FrameLoaderClientQt::updateGlobalHistoryForReload):
2528         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
2529         (WebCore::FrameLoaderClientQt::saveScrollPositionAndViewStateToItem):
2530         (WebCore::FrameLoaderClientQt::saveDocumentViewToPageCache):
2531         (WebCore::FrameLoaderClientQt::canCachePage):
2532         * WebCoreSupport/FrameLoaderClientQt.h:
2533
2534 2006-12-29  George Staikos  <staikos@kde.org>
2535
2536         Add missing notimplemented.
2537
2538         * WebCoreSupport/FrameLoaderClientQt.cpp:
2539         (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
2540         (WebCore::FrameLoaderClientQt::canHandleRequest):
2541         (WebCore::FrameLoaderClientQt::partClearedInBegin):
2542
2543 2006-12-21  Lars Knoll <lars@trolltech.com>
2544
2545         Reviewed by Zack
2546
2547         * WebCoreSupport/FrameLoaderClientQt.cpp:
2548         (WebCore::FrameLoaderClientQt::hasWebView):
2549         (WebCore::FrameLoaderClientQt::hasFrameView):
2550         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
2551         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
2552         (WebCore::FrameLoaderClientQt::setTitle):
2553         (WebCore::FrameLoaderClientQt::partClearedInBegin):
2554         * WebCoreSupport/FrameLoaderClientQt.h:
2555                  Remove some runtimw warnings
2556                  Add partClearedInBegin forwarding call, so
2557                  I can catch this in the layout tests.
2558
2559 2006-12-19  Lars Knoll <lars@trolltech.com>
2560
2561         Reviewed by Rob.
2562
2563         * WebCoreSupport/ChromeClientQt.cpp:
2564         (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
2565         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
2566         (WebCore::ChromeClientQt::closeWindowSoon):
2567         * WebCoreSupport/ChromeClientQt.h:
2568                 Make it compile.
2569
2570 2006-12-16  Zack Rusin  <zack@kde.org>
2571
2572         Adjust the client to the most recent interface.
2573
2574         * WebCoreSupport/ContextMenuClientQt.cpp:
2575         (WebCore::ContextMenuClientQt::contextMenuDestroyed):
2576         (WebCore::ContextMenuClientQt::addCustomContextMenuItems):
2577         (WebCore::ContextMenuClientQt::contextMenuItemSelected):
2578         (WebCore::ContextMenuClientQt::downloadURL):
2579         (WebCore::ContextMenuClientQt::copyImageToClipboard):
2580         (WebCore::ContextMenuClientQt::lookUpInDictionary):
2581         * WebCoreSupport/ContextMenuClientQt.h:
2582
2583 2006-12-14  Simon Hausmann  <hausmann@kde.org>
2584
2585         Reviewed by Zack.
2586
2587         * QtLauncher/QtLauncher.pro: Link this little test program
2588         with rpath, for convenience. (This is never going to get installed
2589         anyway)
2590
2591 2006-12-12  George Staikos  <staikos@kde.org>
2592
2593         Reviewed by Alexey.
2594
2595         Fix the Qt build again.
2596
2597         * WebCoreSupport/ContextMenuClientQt.cpp:
2598         (WebCore::ContextMenuClientQt::speak):
2599         (WebCore::ContextMenuClientQt::stopSpeaking):
2600         * WebCoreSupport/ContextMenuClientQt.h:
2601         * WebCoreSupport/EditorClientQt.cpp:
2602         (WebCore::EditorClientQt::toggleContinuousSpellChecking):
2603         (WebCore::EditorClientQt::toggleGrammarChecking):
2604         * WebCoreSupport/EditorClientQt.h:
2605
2606 2006-12-10  George Staikos  <staikos@kde.org>
2607
2608         Reviewed by Zack.
2609
2610         Add a default user agent for now.
2611
2612         * WebCoreSupport/FrameLoaderClientQt.cpp:
2613         (WebCore::FrameLoaderClientQt::userAgent):
2614
2615 2006-12-10  Lars Knoll <lars@trolltech.com>
2616
2617         Reviewed by Zack
2618
2619         Comment out a notImplemented() warning
2620
2621         * WebCoreSupport/EditorClientQt.cpp:
2622         (WebCore::EditorClientQt::clearUndoRedoOperations):
2623
2624 2006-12-10  Zack Rusin  <zack@kde.org>
2625
2626         Print out the method name if it's unimplemented.
2627
2628         * WebCoreSupport/FrameLoaderClientQt.cpp:
2629
2630 2006-12-10  Zack Rusin  <zack@kde.org>
2631
2632         Moving the clients from platform to their final location.
2633
2634         * WebCoreSupport/FrameLoaderClientQt.cpp: Added.
2635         * WebCoreSupport/FrameLoaderClientQt.h: Added.
2636         * WebCoreSupport/ChromeClientQt.cpp: Added.
2637         * WebCoreSupport/ChromeClientQt.h: Added.
2638         * WebCoreSupport/ContextMenuClientQt.cpp: Added.
2639         * WebCoreSupport/ContextMenuClientQt.h: Added.
2640         * WebCoreSupport/EditorClientQt.cpp: Added.
2641         * WebCoreSupport/EditorClientQt.h: Added.
2642
2643 2006-12-10  Zack Rusin  <zack@kde.org>
2644
2645         Adjusting to the changes in platform/qt.
2646
2647         * QtLauncher/main.cpp:
2648         (main):
2649
2650 2006-12-09  Lars Knoll <lars@trolltech.com>
2651
2652         Reviewed by Zack
2653
2654         Make it possible to build WebKit with qmake.
2655
2656         * QtLauncher/QtLauncher.pro: Added.
2657         * QtLauncher/main.cpp:
2658
2659 2006-12-08  Zack Rusin  <zack@kde.org>
2660
2661         Reviewed by Maciej.
2662
2663         Fix the build after the recent changes.
2664
2665         * QtLauncher/main.cpp:
2666         (main):
2667         * WebKitPart/WebKitPart.cpp:
2668         (WebKitPart::initView):
2669
2670 2006-11-19  Simon Hausmann  <hausmann@kde.org>
2671
2672         Reviewed by Zack.
2673
2674         http://bugs.webkit.org/show_bug.cgi?id=11649
2675         Fix Qt-only build
2676
2677         * QtLauncher/CMakeLists.txt:
2678
2679 2006-11-17  Zack Rusin  <zack@kde.org>
2680
2681         Reviewed by Mitz. Landed by Niko.
2682
2683         Adjusting to the new api.
2684
2685         * QtLauncher/main.cpp:
2686         (main):
2687         * WebKitPart/WebKitPart.cpp:
2688         (WebKitPart::initView):
2689
2690 2006-11-10  Zack Rusin  <zack@kde.org>
2691
2692         Reviewed and landed by Anders.
2693
2694         Adjusting to the recent loader changes, making it compile
2695         and work.
2696
2697         * QtLauncher/main.cpp:
2698         (main):
2699         * WebKitPart/WebKitPart.cpp:
2700         (WebKitPart::closeUrl):
2701         (WebKitPart::initView):
2702
2703 2006-11-03  Zack Rusin  <zack@kde.org>
2704
2705         Reviewed by Maciej.
2706
2707         Fixing compile on both Qt and KDE platforms.
2708
2709         * QtLauncher/main.cpp:
2710         (main): url has already been defined
2711         * WebKitPart/WebKitPartBrowserExtension.cpp: removing
2712         duplicate implementation of this class
2713
2714 2006-10-31  Simon Hausmann  <hausmann@kde.org>
2715
2716         Reviewed by Maciej, landed by Anders.
2717
2718         * QtLauncher/CMakeLists.txt: Make linkage against kde libraries
2719           optional
2720         * QtLauncher/main.cpp: Make it compile without KDE.
2721         (main):
2722
2723 2006-11-02  Simon Hausmann  <hausmann@kde.org>
2724
2725         Reviewed by Maciej, landed by Anders.
2726
2727         * QtLauncher/main.cpp:
2728         (main): Declare our frame as main frame to the Page object.
2729         Fixes crashes on various web sites
2730
2731 2006-10-31  Zack Rusin  <zack@kde.org>
2732
2733         Reviewed by Mitz.
2734
2735         Fix the Qt build after last nights changes.
2736
2737         * QtLauncher/CMakeLists.txt:
2738         * WebKitPart/CMakeLists.txt:
2739
2740 2006-10-26  Nikolas Zimmermann  <zimmermann@kde.org>
2741
2742         Reviewed by Darin.
2743
2744         Fix Qt/Linux build.
2745
2746         * QtLauncher/main.cpp:
2747         (main):
2748         * WebKitPart/WebKitPart.cpp:
2749         (WebKitPart::openUrl):
2750
2751 2006-10-24  Nikolas Zimmermann  <zimmermann@kde.org>
2752
2753         Reviewed by Maciej.
2754
2755         Fix Qt/Linux build.
2756
2757         - Remove BrowserExtensionQt, move it's methods to Page/FrameQt.
2758         - Fix CMakeLists.txt to include platform/network.
2759
2760         * QtLauncher/CMakeLists.txt:
2761         * WebKitPart/CMakeLists.txt:
2762
2763 2006-10-24  Simon Hausmann  <hausmann@kde.org>
2764
2765         Reviewed by Darin.
2766
2767         * QtLauncher/CMakeLists.txt, WebKitPart/CMakeLists.txt: Added project name to
2768           kde4_automoc macro, as required by the latest KDE4 cmake module.
2769
2770 2006-10-20  Nikolas Zimmermann  <zimmermann@kde.org>
2771
2772         Reviewed and landed by Anders.
2773
2774         Adapt to FrameQtClient changes, and provide some kind of status
2775         information to the KPart wheter we're loading or not (started/completed signaling).
2776
2777         * WebKitPart/CMakeLists.txt:
2778         * WebKitPart/WebKitPart.cpp:
2779         (WebKitPart::WebKitPart):
2780         (WebKitPart::~WebKitPart):
2781         (WebKitPart::openUrl):
2782         (WebKitPart::initView):
2783         * WebKitPart/WebKitPart.h:
2784         * WebKitPart/WebKitPartBrowserExtension.cpp: Added.
2785         (WebKitPartBrowserExtension::WebKitPartBrowserExtension):
2786         (WebKitPartBrowserExtension::~WebKitPartBrowserExtension):
2787         * WebKitPart/WebKitPartBrowserExtension.h: Added.
2788         * WebKitPart/WebKitPartClient.cpp:
2789         (WebKitPartClient::WebKitPartClient):
2790         (WebKitPartClient::loadFinished):
2791         * WebKitPart/WebKitPartClient.h:
2792         * WebKitPart/WebKitPartInterface.h:
2793
2794 2006-10-02  Nikolas Zimmermann  <zimmermann@kde.org>
2795
2796         Reviewed by eseidel.  Landed by eseidel.
2797
2798         Fix last remaining issue Qt/Linux build with gcc3.
2799
2800         * WebKitPart/WebKitPart.h: Remove Q_PROPERTY usage, which is not needed and made problems.
2801
2802 2006-09-10  Nikolas Zimmermann  <zimmermann@kde.org>
2803
2804         Reviewed and landed by ap.
2805
2806         Fix QtLauncher - it is supposed to create a FrameView on its own nowadays.
2807
2808         * QtLauncher/main.cpp:
2809         (main):
2810
2811 2006-09-04  Nikolas Zimmermann  <zimmermann@kde.org>
2812
2813         Reviewed by Tim H.
2814
2815         Fixes last part of: http://bugs.webkit.org/show_bug.cgi?id=10644
2816         Move QtLauncher down to WebKitQt.
2817
2818         * QtLauncher/CMakeLists.txt: Added.
2819         * QtLauncher/main.cpp: Added.
2820         (main):
2821
2822 2006-09-04  Nikolas Zimmermann  <zimmermann@kde.org>
2823
2824         Reviewed by Darin. Final polish by Sam.
2825
2826         Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10644
2827         Add WebKitPart, an embeddable KPart for the KDE platform.
2828
2829         * WebKitPart/CMakeLists.txt: Added.
2830         * WebKitPart/WebKitFactory.cpp: Added.
2831         (WebKitFactory::WebKitFactory):
2832         (WebKitFactory::~WebKitFactory):
2833         (WebKitFactory::createPartObject):
2834         (WebKitFactory::instance):
2835         (WebKitFactory::ref):
2836         (WebKitFactory::deref):
2837         (init_libWebKitPart):
2838         * WebKitPart/WebKitFactory.h: Added.
2839         * WebKitPart/WebKitPart.cpp: Added.
2840         (WebKitPart::WebKitPart):
2841         (WebKitPart::~WebKitPart):
2842         (WebKitPart::openFile):
2843         (WebKitPart::openUrl):
2844         (WebKitPart::closeUrl):
2845         (WebKitPart::parentPart):
2846         (WebKitPart::frame):
2847         (WebKitPart::initView):
2848         * WebKitPart/WebKitPart.desktop: Added.
2849         * WebKitPart/WebKitPart.h: Added.
2850         (WebKitPart::):
2851         * WebKitPart/WebKitPart.rc: Added.
2852         * WebKitPart/WebKitPartBrowser.rc: Added.
2853         * WebKitPart/WebKitPartClient.cpp: Added.
2854         (WebKitPartClient::WebKitPartClient):
2855         (WebKitPartClient::~WebKitPartClient):
2856         * WebKitPart/WebKitPartClient.h: Added.
2857         * WebKitPart/WebKitPartInterface.cpp: Added.
2858         (WebKitPartInterface::WebKitPartInterface):
2859         (WebKitPartInterface::~WebKitPartInterface):
2860         (WebKitPartInterface::url):
2861         (WebKitPartInterface::closeURL):
2862         * WebKitPart/WebKitPartInterface.h: Added.
2863         * WebKitPart/org.kde.WebKitPart.xml: Added.
2864