* Move the QWebPagePrivate methods up to the other private ones
[WebKit-https.git] / WebKit / qt / ChangeLog
1 2008-01-07  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
2
3         Reviewed by Simon.
4
5         * Move the QWebPagePrivate methods up to the other private ones
6
7         * Api/qwebpage.cpp:
8         (dropActionToDragOp):
9         (dragOpToDropAction):
10         (QWebPagePrivate::mouseMoveEvent):
11         (QWebPagePrivate::mousePressEvent):
12         (QWebPagePrivate::mouseDoubleClickEvent):
13         (QWebPagePrivate::mouseReleaseEvent):
14         (QWebPagePrivate::contextMenuEvent):
15         (QWebPagePrivate::wheelEvent):
16         (QWebPagePrivate::keyPressEvent):
17         (QWebPagePrivate::keyReleaseEvent):
18         (QWebPagePrivate::focusInEvent):
19         (QWebPagePrivate::focusOutEvent):
20         (QWebPagePrivate::dragEnterEvent):
21         (QWebPagePrivate::dragLeaveEvent):
22         (QWebPagePrivate::dragMoveEvent):
23         (QWebPagePrivate::dropEvent):
24         (QWebPage::focusNextPrevChild):
25
26 2008-01-07  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
27
28         Reviewed by Simon.
29
30         * Add reimplemented comments for the methods reimplemented in QWebView and QWebPage.
31         
32
33         * Api/qwebpage.cpp:
34         (dragOpToDropAction):
35         * Api/qwebview.cpp:
36         (QWebView::mouseMoveEvent):
37         (QWebView::mousePressEvent):
38         (QWebView::mouseDoubleClickEvent):
39         (QWebView::mouseReleaseEvent):
40         (QWebView::contextMenuEvent):
41         (QWebView::keyPressEvent):
42         (QWebView::keyReleaseEvent):
43         (QWebView::focusInEvent):
44         (QWebView::focusOutEvent):
45         (QWebView::dragEnterEvent):
46         (QWebView::dragLeaveEvent):
47         (QWebView::dragMoveEvent):
48         (QWebView::dropEvent):
49
50 2008-01-07  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
51
52         Reviewed by Lars.
53
54         * This layout is not needed anymore as Widget::invalidateRect will not
55         draw anymore.
56         
57
58         * Api/qwebview.cpp:
59         (QWebView::paintEvent):
60
61 2008-01-04  Lars Knoll  <lars@trolltech.com>
62
63         Reviewed by Simon.
64
65         Remove most dependencies of Widget/ScrollView onto native QWidgets.
66         
67         This also brings the code closer in line with the Windows code. Seems
68         to work nicely on first try :)
69         
70
71         * WebCoreSupport/ChromeClientQt.cpp:
72         (WebCore::ChromeClientQt::updateBackingStore):
73         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
74         (WebCore::ChromeClientQt::setToolTip):
75         * WebCoreSupport/FrameLoaderClientQt.cpp:
76         (WebCore::FrameLoaderClientQt::createPlugin):
77
78 2008-01-04  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
79
80         Reviewed by Simon.
81
82         * Remove the todo from QWebPage and move the code to QWebView.
83         
84
85         * Api/qwebpage.cpp:
86         (QWebPagePrivate::wheelEvent):
87         (QWebPagePrivate::focusInEvent):
88         * Api/qwebview.cpp:
89         (QWebView::wheelEvent):
90         (QWebView::focusInEvent):
91
92 2008-01-04  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
93
94         Reviewed by Simon.
95
96         * Move the various event methods to QWebPagePrivate. This is similar to
97         QTextControl as well.
98         
99
100         * Api/qwebpage.cpp:
101         (QWebPage::event):
102         (QWebPagePrivate::mouseMoveEvent):
103         (QWebPagePrivate::mousePressEvent):
104         (QWebPagePrivate::mouseDoubleClickEvent):
105         (QWebPagePrivate::mouseReleaseEvent):
106         (QWebPagePrivate::contextMenuEvent):
107         (QWebPagePrivate::wheelEvent):
108         (QWebPagePrivate::keyPressEvent):
109         (QWebPagePrivate::keyReleaseEvent):
110         (QWebPagePrivate::focusInEvent):
111         (QWebPagePrivate::focusOutEvent):
112         (QWebPage::focusNextPrevChild):
113         (QWebPagePrivate::dragEnterEvent):
114         (QWebPagePrivate::dragLeaveEvent):
115         (QWebPagePrivate::dragMoveEvent):
116         (QWebPagePrivate::dropEvent):
117         * Api/qwebpage.h:
118         * Api/qwebpage_p.h:
119
120 2008-01-04  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
121
122         Reviewed by Simon.
123
124         * Forward the event from QWebView to QWebPage through QObject::event. This
125         is similar to the way QTextControl is working.
126         
127
128         * Api/qwebpage.cpp:
129         (dragOpToDropAction):
130         (QWebPage::event):
131         * Api/qwebpage.h:
132         * Api/qwebview.cpp:
133         (QWebView::mouseMoveEvent):
134         (QWebView::mousePressEvent):
135         (QWebView::mouseDoubleClickEvent):
136         (QWebView::mouseReleaseEvent):
137         (QWebView::contextMenuEvent):
138         (QWebView::wheelEvent):
139         (QWebView::keyPressEvent):
140         (QWebView::keyReleaseEvent):
141         (QWebView::focusInEvent):
142         (QWebView::focusOutEvent):
143         (QWebView::dragEnterEvent):
144         (QWebView::dragLeaveEvent):
145         (QWebView::dragMoveEvent):
146         (QWebView::dropEvent):
147         * Api/qwebview.h:
148
149 2008-01-04  Lars Knoll  <lars@trolltech.com>
150
151         Reviewed by Simon.
152
153         make QWebPage a QObject and get things to compile.
154         
155         Nothing works currently though.
156         
157
158         * Api/qwebobjectpluginconnector.cpp:
159         * Api/qwebpage.cpp:
160         (QWebPagePrivate::QWebPagePrivate):
161         (QWebPagePrivate::createMainFrame):
162         (QWebPage::QWebPage):
163         (QWebPage::setView):
164         (QWebPage::view):
165         (QWebPage::javaScriptAlert):
166         (QWebPage::javaScriptPrompt):
167         (dragOpToDropAction):
168         (QWebPage::mousePressEvent):
169         (QWebPage::mouseDoubleClickEvent):
170         (QWebPage::mouseReleaseEvent):
171         (QWebPage::wheelEvent):
172         (QWebPage::keyPressEvent):
173         (QWebPage::focusInEvent):
174         * Api/qwebpage.h:
175         * Api/qwebpage_p.h:
176         * Api/qwebview.cpp:
177         (QWebView::QWebView):
178         (QWebView::setPage):
179         (QWebView::resizeEvent):
180         (QWebView::paintEvent):
181         * Api/qwebview.h:
182         * WebCoreSupport/ChromeClientQt.cpp:
183         (WebCore::ChromeClientQt::windowRect):
184         (WebCore::ChromeClientQt::pageRect):
185         (WebCore::ChromeClientQt::focus):
186         (WebCore::ChromeClientQt::unfocus):
187         (WebCore::ChromeClientQt::canTakeFocus):
188         (WebCore::ChromeClientQt::takeFocus):
189         (WebCore::ChromeClientQt::canRunModal):
190         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
191         * WebCoreSupport/DragClientQt.cpp:
192         (WebCore::DragClientQt::startDrag):
193         * WebCoreSupport/FrameLoaderClientQt.cpp:
194         (WebCore::FrameLoaderClientQt::createPlugin):
195         * WebCoreSupport/InspectorClientQt.cpp:
196         (WebCore::InspectorClientWebPage::createWindow):
197         (WebCore::InspectorClientView::InspectorClientView):
198         (WebCore::InspectorClientView::page):
199         (WebCore::InspectorClientView::hideEvent):
200         (WebCore::InspectorClientView::closeEvent):
201         (WebCore::InspectorClientQt::createPage):
202         (WebCore::InspectorClientQt::closeWindow):
203
204 2008-01-04  Simon Hausmann  <hausmann@webkit.org>
205
206         Reviewed by Lars.
207
208         Added some preliminary class documentation for QWebView, fixed a missing const() and some missing Q_PROPERTYs
209         
210
211         * Api/qwebview.cpp:
212         (QWebView::setHtml):
213         (QWebView::setContent):
214         (QWebView::history):
215         (QWebView::settings):
216         (QWebView::action):
217         (QWebView::triggerAction):
218         (QWebView::stop):
219         (QWebView::backward):
220         (QWebView::forward):
221         (QWebView::reload):
222         * Api/qwebview.h:
223
224 2008-01-04  Lars Knoll  <lars@trolltech.com>
225
226         Reviewed by Simon.
227
228         add a viewportSize to QWebPage.
229         
230         This is required to eventually make it a QObject only.
231         
232
233         * Api/qwebpage.cpp:
234         (QWebPage::triggerAction):
235         (QWebPage::viewportSize):
236         (QWebPage::setViewportSize):
237         * Api/qwebpage.h:
238
239 2008-01-04  Lars Knoll  <lars@trolltech.com>
240
241         Reviewed by Simon.
242
243         take a QString as identifier in QWebFrame::addToJSWindowObject.
244
245         * Api/qwebframe.cpp:
246         (QWebFrame::addToJSWindowObject):
247         * Api/qwebframe.h:
248
249 2008-01-04  Simon Hausmann  <hausmann@webkit.org>
250
251         Reviewed by Lars.
252
253         Call the frame arguments for the javascript callbacks "originatingFrame"
254         
255
256         * Api/qwebpage.h:
257
258 2008-01-04  Simon Hausmann  <hausmann@webkit.org>
259
260         Reviewed by Lars.
261
262         Moved the QWebPage::addToHistory signal into QWebHistoryInterface
263         
264
265         * Api/qwebhistoryinterface.h:
266         * Api/qwebpage.h:
267         * WebCoreSupport/FrameLoaderClientQt.cpp:
268         (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
269
270 2008-01-04  Lars Knoll  <lars@trolltech.com>
271
272         Reviewed by Simon.
273
274         moved title(), url(), icon() and initialLayoutComplete() from QWebPage to QWebFrame
275
276         * Api/qwebframe.cpp:
277         (QWebFrame::url):
278         (QWebFrame::icon):
279         (QWebFrame::setVerticalScrollBarPolicy):
280         * Api/qwebframe.h:
281         * Api/qwebpage.cpp:
282         (QWebPage::javaScriptAlert):
283         (QWebPage::javaScriptPrompt):
284         (QWebPage::networkInterface):
285         * Api/qwebpage.h:
286         * Api/qwebview.cpp:
287         (QWebView::title):
288         (QWebView::url):
289         (QWebView::icon):
290         * WebCoreSupport/FrameLoaderClientQt.cpp:
291
292 2008-01-03  Simon Hausmann  <hausmann@webkit.org>
293
294         Reviewed by Lars.
295
296         Moved QWebPage::open to QWebFrame::load and added setHtml.
297         
298
299         * Api/qwebframe.cpp:
300         (QWebFrame::load):
301         (QWebFrame::setHtml):
302         (QWebFrame::setContent):
303         * Api/qwebframe.h:
304         * Api/qwebpage.cpp:
305         * Api/qwebpage.h:
306         * Api/qwebview.cpp:
307         (QWebView::load):
308         (QWebView::setHtml):
309         * Api/qwebview.h:
310         * WebCoreSupport/ChromeClientQt.cpp:
311         (WebCore::ChromeClientQt::createWindow):
312         * WebCoreSupport/InspectorClientQt.cpp:
313         (WebCore::InspectorClientQt::createPage):
314
315 2008-01-03  Simon Hausmann  <hausmann@webkit.org>
316
317         Reviewed by Lars.
318
319         Added the first revision of QWebView and started moving functionality from QWebPave over to QWebView and QWebFrame.
320         
321
322         * Api/headers.pri:
323         * Api/qwebframe.h:
324         * Api/qwebpage.cpp:
325         (QWebPagePrivate::createMainFrame):
326         * Api/qwebpage.h:
327         * Api/qwebpagehistory.h:
328         * Api/qwebview.cpp: Added.
329         (QWebView::QWebView):
330         (QWebView::~QWebView):
331         (QWebView::page):
332         (QWebView::setPage):
333         (QWebView::load):
334         (QWebView::setHtml):
335         (QWebView::history):
336         (QWebView::settings):
337         (QWebView::title):
338         (QWebView::url):
339         (QWebView::icon):
340         (QWebView::selectedText):
341         (QWebView::action):
342         (QWebView::triggerAction):
343         (QWebView::isModified):
344         (QWebView::textInteractionFlags):
345         (QWebView::setTextInteractionFlags):
346         (QWebView::sizeHint):
347         (QWebView::stop):
348         (QWebView::backward):
349         (QWebView::forward):
350         (QWebView::reload):
351         * Api/qwebview.h: Added.
352         * QtLauncher/main.cpp:
353         (MainWindow::MainWindow):
354         (MainWindow::webPage):
355         (MainWindow::changeLocation):
356         * WebCoreSupport/FrameLoaderClientQt.cpp:
357         (WebCore::FrameLoaderClientQt::setFrame):
358         * WebCoreSupport/FrameLoaderClientQt.h:
359
360 2007-12-14  Darin Adler  <darin@apple.com>
361
362         Reviewed by Alexey.
363
364         * Api/qwebpage.cpp:
365         (QWebPage::triggerAction): Removed some use of Editor member functions we plan
366         to eventually eliminate. Switch from Editor::execCommand to Editor::command.
367         * WebCoreSupport/EditorClientQt.cpp:
368         (WebCore::EditorClientQt::handleKeyboardEvent): Ditto. Also updated name from
369         MoveUpByPageAndModifyCaret to MovePageUp and from MoveDownByPageAndModifyCaret
370         to MovePageDown.
371
372 2007-12-12  Brady Eidson  <beidson@apple.com>
373
374         Reviewed by Sam Weinig
375
376         As part of doing some CachedPage and client cleanup, keep Qt building
377
378         * WebCoreSupport/FrameLoaderClientQt.cpp:
379         (WebCore::FrameLoaderClientQt::savePlatformDataToCachedPage):
380         (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
381         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
382         * WebCoreSupport/FrameLoaderClientQt.h:
383
384 2007-12-12  Sam Weinig  <sam@webkit.org>
385
386         Build fix.
387
388         * WebCoreSupport/FrameLoaderClientQt.cpp:
389         (WebCore::FrameLoaderClientQt::userAgent):
390
391 2007-12-12  Sam Weinig  <sam@webkit.org>
392
393         Build fix.
394
395         * Api/qwebnetworkinterface.cpp:
396         (QWebNetworkRequestPrivate::init):
397         * Api/qwebpage.cpp:
398         (QWebPage::url):
399         (QWebPageContext::QWebPageContext):
400         * Api/qwebpagehistory.cpp:
401         (QWebHistoryItem::originalUrl):
402         (QWebHistoryItem::currentUrl):
403         * WebCoreSupport/FrameLoaderClientQt.cpp:
404         (WebCore::FrameLoaderClientQt::cannotShowURLError):
405         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
406         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
407         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
408         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
409         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
410         (WebCore::FrameLoaderClientQt::createPlugin):
411
412 2007-12-07  Alexey Proskuryakov  <ap@webkit.org>
413
414         Reviewed by Darin.
415
416         <rdar://problem/5535636>
417         Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
418
419         http://bugs.webkit.org/show_bug.cgi?id=13916
420         JavaScript detects Tab as a character input on a textfield validation
421
422         * WebCoreSupport/EditorClientQt.cpp:
423         (WebCore::EditorClientQt::handleKeyboardEvent):
424         (WebCore::EditorClientQt::handleInputMethodKeydown):
425         * WebCoreSupport/EditorClientQt.h:
426         Updated for cross-platform changes as much as it was possible without a Qt build environment.
427
428 2007-12-07  Darin Adler  <darin@apple.com>
429
430         - try to fix build
431
432         * Api/qwebhistoryinterface.cpp:
433         (WebCore::historyContains): There's a WebCore function here in WebKit! Needs to
434         be updated, since WebCore changed, but this should not be here.
435
436 2007-12-04  Darin Adler  <darin@apple.com>
437
438         Reviewed by Kevin Decker.
439
440         * WebCoreSupport/FrameLoaderClientQt.cpp: Removed obsolete privateBrowsingEnabled.
441         * WebCoreSupport/FrameLoaderClientQt.h: Ditto.
442
443 2007-12-04  Holger Hans Peter Freyther <holger.freyther@trolltech.com>
444
445         Reviewed by Simon.
446
447         * Implement the InspectorClient for the Qt port
448         * It does not support highlighting of nodes yet
449         * Use QRC to open the internal page. The important thing is the
450         '/' in the URL to make WebCore::Document::completeURL behave the
451         way we want.
452         * To make the InspectorClient work we will have to mark qrc as secure.
453
454         * Api/qwebpage.cpp:
455         (QWebPagePrivate::QWebPagePrivate):
456         * Api/qwebpage.h:
457         * WebCoreSupport/InspectorClientQt.cpp:
458         (WebCore::InspectorClientWebPage::hideEvent):
459         (WebCore::InspectorClientQt::InspectorClientQt):
460         (WebCore::InspectorClientQt::inspectorDestroyed):
461         (WebCore::InspectorClientQt::createPage):
462         (WebCore::InspectorClientQt::localizedStringsURL):
463         (WebCore::InspectorClientQt::showWindow):
464         (WebCore::InspectorClientQt::closeWindow):
465         (WebCore::InspectorClientQt::attachWindow):
466         (WebCore::InspectorClientQt::detachWindow):
467         * WebCoreSupport/InspectorClientQt.h:
468
469 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
470
471         Rubber stamped by Mark.
472
473         Always include config.h at the beginning of the file.
474
475         * Api/qwebsettings.cpp:
476
477 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
478
479         Reviewed by Simon.
480
481         * Avoid crashes by making sure everything is layouted before
482         we start painting. This avoids a crash in Widget::invalidateRect
483         because QPainter::begin would fail
484         * The QWebFrame::layout() methods and calls are left untouched because
485         this would be an API decision.
486         
487
488         * Api/qwebframe.cpp:
489         (QWebFrame::layout):
490         * Api/qwebpage.cpp:
491         (QWebPage::paintEvent):
492
493 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
494
495         Reviewed by Simon.
496
497         * SubClass QWebPage to handle hide and close events.
498         * Forward these events to the InspectorController
499         * The other options would have been using an eventFilter
500         on the webpage and making InspectorClient a QObject or
501         creating a QObject Observer.
502         * Provide a simple QWebPage* createWindow implementation. This is needed
503         to make FrameLoaderClientQt::dispatchCreatePage stop crashing in the case
504         of the inspector client.
505         
506
507         * WebCoreSupport/InspectorClientQt.cpp:
508         (WebCore::InspectorClientWebPage::InspectorClientWebPage):
509         (WebCore::InspectorClientWebPage::createWindow):
510         (WebCore::InspectorClientWebPage::hideEvent):
511         (WebCore::InspectorClientWebPage::closeEvent):
512         (WebCore::InspectorClientQt::createPage):
513
514 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
515
516         Reviewed by Simon.
517
518         * Allow adding the Inspect ContextMenuItem to our Menu
519         * Open the Inspector when Inspect was activated. This requires
520         that we keep the innerNonSharedNode from the HitTest around. This
521         forces us to include <wtf/RefPtr.h> in the private header. It is
522         the first non Qt header but should be okay.
523         
524
525         * Api/qwebpage.cpp:
526         (webActionForContextMenuAction):
527         (QWebPage::triggerAction):
528         (QWebPage::action):
529         (QWebPageContext::QWebPageContext):
530         * Api/qwebpage.h:
531         * Api/qwebpage_p.h:
532
533 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
534
535         Reviewed by Simon.
536
537         * Add the Developer Extras to the WebAttribute and propagate it
538         to WebCore::Settings. This will enable the Inspect Element menu item
539         * CodingStyle fixes in QWebSettings
540         * Enable the Developer Extras in the QtLauncher
541         
542
543         * Api/qwebsettings.cpp:
544         (QWebSettingsPrivate::apply):
545         * Api/qwebsettings.h:
546         * QtLauncher/main.cpp:
547         (main):
548
549 2007-12-03  Geoffrey Garen  <ggaren@apple.com>
550
551         Removed unnecessary and possibly incorrect #include from my last 
552         check-in.
553
554         * Api/qwebframe.cpp:
555
556 2007-12-03  Geoffrey Garen  <ggaren@apple.com>
557
558         Qt build fix: Get globalExec() from the right place.
559
560 2007-11-30  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
561
562         Reviewed by Simon.
563
564         * Self destruct the clients like the ohter ports do
565         
566
567         * WebCoreSupport/ChromeClientQt.cpp:
568         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
569         * WebCoreSupport/ContextMenuClientQt.cpp:
570         * WebCoreSupport/DragClientQt.cpp:
571         * WebCoreSupport/EditorClientQt.cpp:
572         * WebCoreSupport/InspectorClientQt.cpp:
573
574 2007-11-29  Brady Eidson  <beidson@apple.com>
575
576         Keep it building with new client method
577
578         * WebCoreSupport/ChromeClientQt.cpp:
579         (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
580         (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
581         * WebCoreSupport/ChromeClientQt.h:
582
583 2007-11-22  Simon Hausmann  <hausmann@webkit.org>
584
585         Reviewed by Adam Treat.
586
587         Fix compilation (don't define notImplemented twice)
588
589         * Api/qwebnetworkinterface.cpp:
590
591 2007-11-22  Simon Hausmann  <hausmann@kde.org>
592
593         Reviewed by George.
594
595         Use Q_SIGNALS/Q_SLOTS in the public API
596
597         * Api/qwebframe.h:
598         * Api/qwebpage.h:
599
600 2007-11-22  Simon Hausmann  <hausmann@kde.org>
601
602         Reviewed by George.
603
604         Fixed the signature of the QWebPage constructor to follow Qt guidelines.
605
606         * Api/qwebpage.h:
607
608 2007-11-22  Simon Hausmann  <hausmann@kde.org>
609
610         Reviewed by George.
611
612         Use <QtModule/headerfile.h> instead of <Classname> in public HEADER files, to not require the include paths for the other modules to be present
613
614         * Api/qcookiejar.h:
615         * Api/qwebframe.h:
616         * Api/qwebhistoryinterface.h:
617         * Api/qwebnetworkinterface.h:
618         * Api/qwebobjectplugin.h:
619         * Api/qwebobjectplugin_p.h:
620         * Api/qwebobjectpluginconnector.h:
621         * Api/qwebpage.h:
622         * Api/qwebpagehistory.h:
623         * Api/qwebsettings.h:
624
625 2007-11-22  Simon Hausmann  <hausmann@kde.org>
626
627         Reviewed by George.
628
629         Removed inline copy of QExplicitlySharedDataPointer. This is not needed anymore since we require Qt >= 4.3.0.
630
631         * Api/qwebpagehistory.h:
632
633 2007-11-22  George Staikos  <staikos@kde.org>
634
635         Reviewed by Simon Hausmann <hausmann@kde.org>.
636
637         Fix license headers
638         
639
640         * Api/qwebobjectplugin.cpp:
641         * Api/qwebobjectplugin.h:
642         * Api/qwebobjectpluginconnector.cpp:
643         * Api/qwebobjectpluginconnector.h:
644
645 2007-11-22  Simon Hausmann  <hausmann@kde.org>
646
647         Reviewed by George Staikos <staikos@kde.org>.
648
649         Fix shadowing of "page" variable that is passed as argument as well as a member variable.
650         
651         This also fixes compilation with gcc 4.3.
652         
653
654         * Api/qwebframe.cpp:
655         (QWebFramePrivate::init):
656
657 2007-11-21  Adam Treat  <treat@kde.org>
658
659         Reviewed by Simon.
660
661         * Connect up the signal for all subframes too.
662
663         * Api/qwebframe.cpp:
664         (QWebFramePrivate::init):
665         * Api/qwebpage.cpp:
666         (QWebPagePrivate::createMainFrame):
667
668 2007-11-20  Simon Hausmann  <hausmann@kde.org>
669
670         Reviewed by Adam Treat <treat@kde.org>.
671
672         Remove static linkage of QtWebKit against the ICO image format plugin.
673         
674         Instead build the support for the ICO image format as a proper standalone qt image format plugin and install it.
675         
676
677         * Plugins/Plugins.pro:
678
679 2007-11-20  Simon Hausmann  <hausmann@kde.org>
680
681         Reviewed by George Staikos <staikos@kde.org>.
682
683         Added a default argument to textContent for the hoveringOverLink signal to keep existing two-argument connections working
684         
685
686         * Api/qwebpage.h:
687
688 2007-11-20  George Staikos  <staikos@kde.org>
689
690         Reviewed by Simon Hausmann <hausmann@kde.org>.
691
692         Add an argument to pass the link text in the hovering signal
693         
694
695         * Api/qwebframe.h:
696         * Api/qwebpage.cpp:
697         (QWebPagePrivate::createMainFrame):
698         (QWebPage::mouseMoveEvent):
699         * Api/qwebpage.h:
700
701 2007-11-20  Adam Treat  <treat@kde.org>
702
703         Reviewed by Simon and George.
704
705         * Be quiet and allow suppression of NotImplemented calls at runtime.
706
707         * WebCoreSupport/FrameLoaderClientQt.cpp:
708         (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
709
710 2007-11-19  Adam Treat  <treat@kde.org>
711
712         Reviewed by Simon.
713
714         * Don't segfault when event pos is outside of the widget.
715
716         * Api/qwebpage.cpp:
717         (QWebPage::mouseMoveEvent):
718         (QWebPage::mousePressEvent):
719         (QWebPage::mouseDoubleClickEvent):
720         (QWebPage::mouseReleaseEvent):
721         (QWebPage::contextMenuEvent):
722
723 2007-11-17  Timothy Hatcher  <timothy@apple.com>
724
725         Reviewed by Mark Rowe.
726
727         Bug 13470: i18n: The Web Inspector is not localizable
728         http://bugs.webkit.org/show_bug.cgi?id=13470
729
730         * WebCoreSupport/InspectorClientQt.cpp:
731         (WebCore::InspectorClientQt::localizedStringsURL): Empty stub.
732         * WebCoreSupport/InspectorClientQt.h: Added localizedStringsURL.
733
734 2007-11-13  Geoffrey Garen  <ggaren@apple.com>
735
736         Build fix: changed Shared to RefCounted.
737
738         * WebCoreSupport/ChromeClientQt.h:
739         * WebCoreSupport/ContextMenuClientQt.cpp:
740         * WebCoreSupport/ContextMenuClientQt.h:
741         * WebCoreSupport/EditorClientQt.h:
742         * WebCoreSupport/FrameLoaderClientQt.h:
743
744 2007-11-10  Simon Hausmann  <hausmann@kde.org>
745
746         Reviewed by Nikolas.
747
748         When populating the context menu with sub-menus don't add sub-menus if they're empty.
749         
750
751         * Api/qwebpage.cpp:
752         (QWebPagePrivate::createContextMenu):
753
754 2007-11-10  Simon Hausmann  <hausmann@kde.org>
755
756         Reviewed by Nikolas.
757
758         Added support for the Bold/Italic/Underline toggle actions.
759         
760
761         * Api/qwebpage.cpp:
762         (webActionForContextMenuAction):
763         (QWebPage::triggerAction):
764         (QWebPage::action):
765         * Api/qwebpage.h:
766
767 2007-11-10  Simon Hausmann  <hausmann@kde.org>
768
769         Reviewed by Nikolas.
770
771         Before adding an action to the context menu call checkOrEnableIfNeeded for each action
772         to update the enable/checked state correctly.
773         
774
775         * Api/qwebpage.cpp:
776         (QWebPagePrivate::createContextMenu):
777         (QWebPage::contextMenuEvent):
778         * Api/qwebpage_p.h:
779
780 2007-11-10  Simon Hausmann  <hausmann@kde.org>
781
782         Reviewed by Nikolas.
783
784         Mark the text direction actions as checkable actions.
785         
786
787         * Api/qwebpage.cpp:
788         (QWebPage::action):
789
790 2007-11-09  Simon Hausmann  <hausmann@kde.org>
791
792         Reviewed by Holger.
793
794         Implemented the webcore actions for changing the text direction.
795         
796
797         * Api/qwebpage.cpp:
798         (webActionForContextMenuAction):
799         (QWebPage::triggerAction):
800         (QWebPage::action):
801         * Api/qwebpage.h:
802
803 2007-11-09  Simon Hausmann  <hausmann@kde.org>
804
805         Reviewed by Holger.
806
807         Fix ContextMenu allocation in the Qt port.
808         
809         Store all items and submenus value based in ContextMenu and ContextMenuItem.
810         That fixes the crashes when the context menu was populated with sub-menus because
811         of the use of temporary ContextMenu objects like this:
812         
813         ContextMenu subMenu(...);
814         subMenu.appendItem(...);
815         subMenu.appendItem(...);
816         
817         subMenuItem.setSubMenu(&subMenu); // temporary pointer, need to _copy_ contents
818         
819
820         * Api/qwebpage.cpp:
821         (QWebPage::contextMenuEvent):
822         * Api/qwebpage_p.h:
823
824 2007-11-09  Simon Hausmann  <hausmann@kde.org>
825
826         Reviewed by Holger.
827
828         Renamed QWebPage::NumWebActions to QWebPage::WebActionCount (for consistency) and fixed its value.
829         
830
831         * Api/qwebpage.h:
832         * Api/qwebpage_p.h:
833
834 2007-11-08  Kevin McCullough  <kmccullough@apple.com>
835
836         Reviewed by Sam.
837
838         - windowObjectCleared() is no longer const.  It needs to setup the
839         script debugger and cannot be const to do so.
840
841         * WebCoreSupport/FrameLoaderClientQt.cpp:
842         (WebCore::FrameLoaderClientQt::windowObjectCleared):
843         * WebCoreSupport/FrameLoaderClientQt.h:
844
845 2007-11-08  Simon Hausmann  <hausmann@kde.org>
846
847         Reviewed by nobody (well, Holger knows about it), build fix for Qt 4.3.
848
849         The buildbots use Qt 4.4 which has the function in question, but Qt
850         4.3 doesn't have it. Use removeAll() as replacement instead, it
851         shouldn't make a difference in performance.
852
853         * Api/qwebsettings.cpp:
854         (QWebSettings::~QWebSettings):
855
856 2007-11-08  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
857
858         Reviewed by Lars Knoll <lars@trolltech.com>.
859
860         Cleanup checking for the request method.
861         
862         * Check the request method only in QWebNetworkManager::add.
863         * Currently HEAD, GET, POST are allowed and for everything else
864         QWebNetworkManager::add returns false.
865         * Returning false is compatible with ResourceHandle::start and it
866         can be used in ResourceHandle::loadResourceSynchronously to generate
867         a ResourceError
868         
869
870         * Api/qwebnetworkinterface.cpp:
871         (QWebNetworkManager::add):
872
873 2007-11-08  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
874
875         Reviewed by Lars Knoll <lars@trolltech.com>.
876
877         Fix bug in the implementation of synchronous network jobs.
878         
879         * George (pmax) reviewed the networking patches and found the following bug (thanks for reviewing)
880         -    if (jobMode == AsynchronousJob) {
881         +    if (jobMode == SynchronousJob) {
882         add job to synchronous list/hash
883         
884         * Just applying the above change will lead to crashes because we can finish
885         jobs before we started them.
886         
887         * Avoid these issues by saving all work (starting a job, sending data and
888         finishing it) inside one list. JobWork will contain any
889         of the above three work types and doWork will just work on this list
890         (m_pendingWork). As foreach takes a copy of the list calling started, data
891         and finished will not add new work and we gurantee that if we have JobStarted
892         it will be in the list before JobData and JobFinished.
893         
894         * Observation: We might just kill the code to handle sync jobs.
895         
896
897         * Api/qwebnetworkinterface.cpp:
898         (QWebNetworkManager::add):
899         (QWebNetworkManager::queueStart):
900         (QWebNetworkManager::queueData):
901         (QWebNetworkManager::queueFinished):
902         (QWebNetworkManager::doWork):
903         * Api/qwebnetworkinterface_p.h:
904         (QWebNetworkManager::JobWork::):
905         (QWebNetworkManager::JobWork::JobWork):
906
907 2007-11-07  Simon Hausmann  <hausmann@kde.org>
908
909         Build fix, reviewed by nobody.
910
911         Fix the Qt build by setting up WindowFeatures before calling
912         createWindow on the Chrome. This is similar to openNewWindow in
913         page/ContextMenuController.cpp
914
915         * Api/qwebpage.cpp:
916         (openNewWindow):
917
918 2007-11-07  Simon Hausmann  <hausmann@kde.org>
919
920         Reviewed by Lars.
921
922         Make the setting of letting Javascript access the clipboard configurable through QWebSettings, turn it off by default and turn it on in DumpRenderTree.
923
924         * Api/qwebpage.cpp:
925         (QWebPagePrivate::QWebPagePrivate):
926         * Api/qwebsettings.cpp:
927         (QWebSettingsPrivate::apply):
928         * Api/qwebsettings.h:
929
930 2007-11-07  Simon Hausmann  <hausmann@kde.org>
931
932         Reviewed by Lars.
933
934         Changed QWebPageHistory::goToItem to take a value instead of a pointer.
935
936         * Api/qwebpagehistory.cpp:
937         * Api/qwebpagehistory.h:
938
939 2007-11-07  Simon Hausmann  <hausmann@kde.org>
940
941         Reviewed by Lars.
942
943         Removed unimplemented QWebHistoryItem::children() function
944
945         * Api/qwebpagehistory.h:
946
947 2007-11-07  Simon Hausmann  <hausmann@kde.org>
948
949         Reviewed by Lars.
950
951         Changed the getter functions in QWebSettings to transparently resolve against the default settings.
952
953         * Api/qwebsettings.cpp:
954         (QWebSettings::fontSize):
955         (QWebSettings::fontFamily):
956         (QWebSettings::testAttribute):
957
958 2007-11-07  Simon Hausmann  <hausmann@kde.org>
959
960         Reviewed by Lars.
961
962         Added explicit functions for resetting the font sizes and font families.
963
964         * Api/qwebsettings.cpp:
965         (QWebSettings::resetFontSize):
966         (QWebSettings::resetFontFamily):
967         * Api/qwebsettings.h:
968
969 2007-11-07  Simon Hausmann  <hausmann@kde.org>
970
971         Reviewed by Lars.
972
973         Combined the font sizes accessors/setters under one setter/getter with an enum.
974
975         * Api/qwebsettings.cpp:
976         (QWebSettingsPrivate::QWebSettingsPrivate):
977         (QWebSettingsPrivate::apply):
978         (QWebSettings::QWebSettings):
979         (QWebSettings::setFontSize):
980         * Api/qwebsettings.h:
981
982 2007-11-07  Simon Hausmann  <hausmann@kde.org>
983
984         Reviewed by Lars.
985
986         Renamed QWebPage::userAgentStringForUrl(url) to QWebPage::userAgentFor(url);
987
988         * Api/qwebpage.cpp:
989         * Api/qwebpage.h:
990         * WebCoreSupport/FrameLoaderClientQt.cpp:
991         (WebCore::FrameLoaderClientQt::userAgent):
992
993 2007-11-07  Simon Hausmann  <hausmann@kde.org>
994
995         Reviewed by Lars.
996
997         Renamed QWebPage::webActionTriggered to QWebPage::triggerAction
998
999         * Api/qwebpage.cpp:
1000         (QWebPagePrivate::_q_webActionTriggered):
1001         (QWebPage::keyPressEvent):
1002         * Api/qwebpage.h:
1003
1004 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1005
1006         Reviewed by Lars.
1007
1008         Changed the virtual QWebPage::setWindowGeometry to be a geometryChangeRequest signal instead.
1009
1010         * Api/qwebpage.cpp:
1011         * Api/qwebpage.h:
1012         * WebCoreSupport/ChromeClientQt.cpp:
1013         (WebCore::ChromeClientQt::setWindowRect):
1014
1015 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1016
1017         Reviewed by Lars.
1018
1019         Renamed QWebPage::webAction() to QWebPage::action()
1020
1021         * Api/qwebpage.cpp:
1022         (QWebPagePrivate::createContextMenu):
1023         * Api/qwebpage.h:
1024         * QtLauncher/main.cpp:
1025         (MainWindow::MainWindow):
1026
1027 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1028
1029         Reviewed by Lars.
1030
1031         Removed a bunch of slots/functions that are now available through the new actions API.
1032
1033         * Api/qwebpage.cpp:
1034         * Api/qwebpage.h:
1035
1036 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1037
1038         Reviewed by Lars.
1039
1040         Added some more comments to the API after another round of API review with Lars.
1041
1042         * Api/qwebpage.h:
1043
1044 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1045
1046         Reviewed by Lars.
1047
1048         Moved QWebFrame::selectedText() to QWebPage::selectedText().
1049         
1050         The currently selected text is a property of the page as a whole.
1051
1052         * Api/qwebframe.cpp:
1053         * Api/qwebframe.h:
1054         * Api/qwebpage.cpp:
1055         (QWebPage::selectedText):
1056         * Api/qwebpage.h:
1057
1058 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1059
1060         Reviewed by Lars.
1061
1062         Implemented support for settings propagation.
1063         
1064         If an individual setting is not set in a page's QWebSettings then it is inherited from the default settings.
1065
1066         * Api/qwebsettings.cpp:
1067         (QWebSettingsPrivate::QWebSettingsPrivate):
1068         (QWebSettingsPrivate::apply):
1069         (QWebSettings::QWebSettings):
1070         (QWebSettings::~QWebSettings):
1071         (QWebSettings::setFontFamily):
1072         * Api/qwebsettings.h:
1073
1074 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1075
1076         Reviewed by Lars.
1077
1078         Reworked the QWebSettings API.
1079         QWebPage now returns a pointer to its mutable QWebSettings object and the settings of newly created QWebPageObjects are initialized from QWebSettings::defaultSettings().
1080
1081         * Api/qwebpage.cpp:
1082         (QWebPagePrivate::QWebPagePrivate):
1083         (QWebPagePrivate::~QWebPagePrivate):
1084         (QWebPage::QWebPage):
1085         * Api/qwebpage.h:
1086         * Api/qwebpage_p.h:
1087         * Api/qwebsettings.cpp:
1088         (QWebSettingsPrivate::QWebSettingsPrivate):
1089         (QWebSettingsPrivate::apply):
1090         (QWebSettings::defaultSettings):
1091         (QWebSettings::QWebSettings):
1092         (QWebSettings::setMinimumFontSize):
1093         (QWebSettings::setMinimumLogicalFontSize):
1094         (QWebSettings::setDefaultFontSize):
1095         (QWebSettings::setDefaultFixedFontSize):
1096         (QWebSettings::setUserStyleSheetLocation):
1097         (QWebSettings::setFontFamily):
1098         (QWebSettings::fontFamily):
1099         (QWebSettings::setAttribute):
1100         * Api/qwebsettings.h:
1101         * QtLauncher/main.cpp:
1102         (main):
1103
1104 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1105
1106         Reviewed by Lars.
1107
1108         Made the QWebSettings::webGraphic functions static. The implementation was using QWebSettings::global() anyway.
1109
1110         * Api/qwebsettings.cpp:
1111         (QWebSettings::setWebGraphic):
1112         * Api/qwebsettings.h:
1113
1114 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1115
1116         Reviewed by Lars.
1117
1118         Moved the WebCore::Image specific function loadResourcePixmap from qwebsettings.cpp to ImageQt.cpp and made it static.
1119
1120         * Api/qwebsettings.cpp:
1121
1122 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1123
1124         Reviewed by Lars.
1125
1126         Changed the icondatabase accessor to be a static function because it doesn't change the QWebSettings object.
1127
1128         * Api/qwebsettings.cpp:
1129         * Api/qwebsettings.h:
1130
1131 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1132
1133         Reviewed by Lars.
1134
1135         Changed the webAction() accessor to not be a slot but just a public function.
1136
1137         * Api/qwebpage.h:
1138
1139 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1140
1141         Reviewed by Lars.
1142
1143         Implemented createWindow() in QtLauncher.
1144
1145         * QtLauncher/main.cpp:
1146         (WebPage::WebPage):
1147         (MainWindow::MainWindow):
1148         (WebPage::createWindow):
1149
1150 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1151
1152         Reviewed by Lars.
1153
1154         Implemented opening links in new windows
1155
1156         * Api/qwebpage.cpp:
1157         (frameLoadRequest):
1158         (openNewWindow):
1159         (QWebPage::webActionTriggered):
1160
1161 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1162
1163         Reviewed by Lars.
1164
1165         Added and implemented the "OpenLink" action.
1166
1167         * Api/qwebpage.cpp:
1168         (webActionForContextMenuAction):
1169         (QWebPage::webActionTriggered):
1170         (QWebPage::webAction):
1171         * Api/qwebpage.h:
1172
1173 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1174
1175         Reviewed by Lars.
1176
1177         Adjust the state of the reload action correctly.
1178
1179         * Api/qwebpage.cpp:
1180         (QWebPagePrivate::updateAction):
1181         (QWebPagePrivate::updateNavigationActions):
1182
1183 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1184
1185         Reviewed by Lars.
1186
1187         Initialize the undo/redo actions from QUndoStack. That automatically takes care of enabling/disabling them as well as the activation/trigger.
1188
1189         * Api/qwebpage.cpp:
1190         (QWebPagePrivate::updateAction):
1191         (QWebPage::webAction):
1192         (QWebPage::undoStack):
1193         * Api/qwebpage.h:
1194
1195 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1196
1197         Reviewed by Lars.
1198
1199         Added undo/redo toolbar buttons, moved the location line edit into a separate toolbar.
1200
1201         * QtLauncher/main.cpp:
1202         (MainWindow::MainWindow):
1203
1204 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1205
1206         Reviewed by Lars.
1207
1208         Update the editor actions when the selection changes.
1209
1210         * Api/qwebpage.cpp:
1211         (QWebPagePrivate::updateAction):
1212         (QWebPagePrivate::updateEditorActions):
1213         * Api/qwebpage_p.h:
1214         * WebCoreSupport/EditorClientQt.cpp:
1215         (WebCore::EditorClientQt::respondToChangedSelection):
1216
1217 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1218
1219         Reviewed by Lars.
1220
1221         Added cut/copy/paste actions to the toolbar of QtLauncher
1222
1223         * QtLauncher/main.cpp:
1224         (MainWindow::MainWindow):
1225
1226 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1227
1228         Reviewed by Lars.
1229
1230         Started working on keeping the state of the navigation actions up-to-date.
1231
1232         * Api/qwebpage.cpp:
1233         (QWebPagePrivate::updateAction):
1234         (QWebPagePrivate::updateNavigationActions):
1235         (QWebPage::webAction):
1236         * Api/qwebpage_p.h:
1237         * WebCoreSupport/FrameLoaderClientQt.cpp:
1238         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
1239         (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
1240         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
1241         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
1242         (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
1243
1244 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1245
1246         Reviewed by Lars.
1247
1248         Use the navigational web actions in the toolbar
1249
1250         * QtLauncher/main.cpp:
1251         (MainWindow::MainWindow):
1252
1253 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1254
1255         Reviewed by Lars.
1256
1257         Store a bunch of QActions in QWebPagePrivate, corresponding to QWebPage::WebAction.
1258         Added QWebPageContext to hold context sensitive information (for example used by the context menu).
1259
1260         * Api/qwebpage.cpp:
1261         (QWebPagePrivate::QWebPagePrivate):
1262         (webActionForContextMenuAction):
1263         (QWebPagePrivate::createContextMenu):
1264         (QWebPagePrivate::_q_webActionTriggered):
1265         (QWebPage::webActionTriggered):
1266         (QWebPage::webAction):
1267         (QWebPage::contextMenuEvent):
1268         (QWebPageContext::QWebPageContext):
1269         (QWebPageContext::operator=):
1270         (QWebPageContext::~QWebPageContext):
1271         (QWebPageContext::pos):
1272         (QWebPageContext::text):
1273         (QWebPageContext::linkUrl):
1274         (QWebPageContext::imageUrl):
1275         (QWebPageContext::image):
1276         (QWebPageContext::targetFrame):
1277         * Api/qwebpage.h:
1278         * Api/qwebpage_p.h:
1279
1280 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1281
1282         Reviewed by Lars.
1283
1284         Moved the editing actions implemented in keyPressEvent into webActionTriggered.
1285
1286         * Api/qwebpage.cpp:
1287         (QWebPage::webActionTriggered):
1288         (QWebPage::keyPressEvent):
1289         * Api/qwebpage.h:
1290
1291 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1292
1293         Reviewed by Lars.
1294
1295         Introduced a central virtual void webActionTriggered(WebAction action) method that is called from various
1296         convenience methods such as cut()/copy()/paste().
1297
1298         * Api/qwebpage.cpp:
1299         (QWebPage::goBack):
1300         (QWebPage::webActionTriggered):
1301         (QWebPage::cut):
1302         (QWebPage::copy):
1303         * Api/qwebpage.h:
1304
1305 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1306
1307         Reviewed by Lars.
1308
1309         Restructure the context menu classes for the Qt port. ContextMenu and ContextMenuItem don't store
1310         QActions/QMenus anymore but just store the action type, tag, title and optionally submenu as created
1311         in ContextMenu::populate().
1312         For the actual Qt context menu we traverse this structure after sendContextMenuEvent and create a QMenu
1313         out of it. That menu is currently not functional anymore though.
1314
1315         * Api/qwebpage.cpp:
1316         (QWebPagePrivate::createContextMenu):
1317         (QWebPage::contextMenuEvent):
1318         * Api/qwebpage_p.h:
1319
1320 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1321
1322         Reviewed by Lars.
1323
1324         Changed ContextMenu::setPlatformDescription for the Qt port to not show the qmenu right away
1325         but instead just behave as a normal setter that takes ownership of the platform menu description (the qmenu).
1326         Instead now QWebPage::contextMenuEvent() retrieves the QMenu after calling sendContextMenuEvent and calls exec()
1327         on it.
1328
1329         * Api/qwebpage.cpp:
1330         (QWebPage::contextMenuEvent):
1331         * WebCoreSupport/ContextMenuClientQt.cpp:
1332         (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
1333
1334 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1335
1336         Reviewed by Lars.
1337
1338         Changed to PlatformMouseEvent constructor to allow construction from a QContextMenuEvent.
1339         Call sendContextMenuEvent on the event handler from a QWidget::contextMenuEvent re-implementation instead of in mousePressEvent.
1340
1341         * Api/qwebpage.cpp:
1342         (QWebPage::mousePressEvent):
1343         (QWebPage::contextMenuEvent):
1344         * Api/qwebpage.h:
1345
1346 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1347
1348         Reviewed by Lars.
1349
1350         Turned onLoadProgressChanged into a real private slot.
1351
1352         * Api/qwebpage.cpp:
1353         (QWebPage::QWebPage):
1354         * Api/qwebpage.h:
1355         * Api/qwebpage_p.h:
1356
1357 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1358
1359         Reviewed by Lars.
1360
1361         Make QWebHistory an explicitly shared object, returned as a pointer by QWebPage::history().
1362
1363         * Api/qwebpage.cpp:
1364         (QWebPagePrivate::QWebPagePrivate):
1365         * Api/qwebpage.h:
1366         * Api/qwebpage_p.h:
1367         * Api/qwebpagehistory.cpp:
1368         (QWebPageHistory::QWebPageHistory):
1369         * Api/qwebpagehistory.h:
1370
1371 2007-11-07  Lars Knoll  <lars@trolltech.com>
1372
1373         Reviewed by Simon.
1374
1375         comments on API changes that we'd like to do.
1376
1377         * Api/qwebpage.h:
1378
1379 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1380
1381         Reviewed by Lars Knoll <lars@trolltech.com>.
1382
1383         Add a QWebPage::frameCreated() signal and fix DRT
1384         
1385         The removal of createFrame in QWebPage broke the re-implementation
1386         in DumpRenderTree. Instead emit a frameCreated() signal and
1387         connect to it in DumpRenderTree.
1388         
1389
1390         * Api/qwebpage.cpp:
1391         (QWebPagePrivate::createMainFrame):
1392         * Api/qwebpage.h:
1393         * WebCoreSupport/FrameLoaderClientQt.cpp:
1394         (WebCore::FrameLoaderClientQt::createFrame):
1395
1396 2007-11-07  Lars Knoll  <lars@trolltech.com>
1397
1398         Reviewed by Simon.
1399
1400         Remove QWebPage::createFrame()
1401         
1402         now that QWebFrame doesn't have virtual methods anymore, there
1403         is no need for a createFrame() factory method in QWebpage.
1404
1405         * Api/qwebpage.cpp:
1406         (QWebPagePrivate::createMainFrame):
1407         * Api/qwebpage.h:
1408         * WebCoreSupport/FrameLoaderClientQt.cpp:
1409         (WebCore::FrameLoaderClientQt::createFrame):
1410
1411 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1412
1413         Reviewed by Lars Knoll <lars@trolltech.com>.
1414
1415         Moved all the event handlers from QWebFrame into QWebPage.
1416         
1417         This cleans up the public API and allows us to remove the
1418         HackWebFrame hack in DumpRenderTree.
1419         
1420
1421         * Api/qwebframe.cpp:
1422         (QWebFrame::pos):
1423         * Api/qwebframe.h:
1424         * Api/qwebframe_p.h:
1425         * Api/qwebpage.cpp:
1426         (QWebPagePrivate::frameAt):
1427         (QWebPage::mouseMoveEvent):
1428         (QWebPage::mousePressEvent):
1429         (QWebPage::mouseDoubleClickEvent):
1430         (QWebPage::mouseReleaseEvent):
1431         (QWebPage::wheelEvent):
1432         * Api/qwebpage_p.h:
1433
1434 2007-11-07  Holger Freyther  <holger.freyther@trolltech.com>
1435
1436         Reviewed by Lars Knoll <lars@trolltech.com>.
1437
1438         Use correct UserAgent string.
1439         
1440         * Only have one User Agent String and this place is QWebPage
1441         * QWebPage::open -> QWebNetworkRequest -> QWebPage::open ->
1442         ResourceRequest -> FrameLoader::load -> QWebNetworkRequest
1443         * ResourceRequest is != 0 when getting called from WebCore, we
1444         will only do requests when coming from WebCore and then we can
1445         use the User-Agent set with the help of the FrameLoaderClient
1446         * We might want to change QWebNetworkRequest a bit
1447         
1448
1449         * Api/qwebnetworkinterface.cpp:
1450         (QWebNetworkRequestPrivate::init):
1451
1452 2007-11-07  Lars Knoll  <lars@trolltech.com>
1453
1454         Reviewed by Simon.
1455
1456         remove two notImplemented() warnings, as I believe we don't
1457         have to implement these methods. Add some (commented out)
1458         debug code in one place.
1459
1460         * WebCoreSupport/EditorClientQt.cpp:
1461         (WebCore::EditorClientQt::respondToChangedSelection):
1462         (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
1463
1464 2007-11-05  Tristan O'Tierney  <tristan@apple.com>
1465
1466         Reviewed by Darin Adler.
1467
1468         * WebCoreSupport/ChromeClientQt.cpp:
1469         (WebCore::ChromeClientQt::createWindow):
1470         * WebCoreSupport/ChromeClientQt.h:
1471         Revised to use new WebCore ChromeClient createWindow API.
1472
1473 2007-10-31  Lars Knoll  <lars@trolltech.com>
1474
1475         Reviewed by Simon.
1476
1477         fix most of the issues I found with Clipboard and DnD.
1478
1479         * Api/qwebpage.cpp:
1480         (QWebPage::dragLeaveEvent):
1481
1482 2007-10-31  Lars Knoll  <lars@trolltech.com>
1483
1484         Reviewed by Simon.
1485
1486         QDrag objects need to be created on the heap.
1487
1488         * WebCoreSupport/DragClientQt.cpp:
1489         (WebCore::DragClientQt::startDrag):
1490
1491 2007-10-31  Lars Knoll  <lars@trolltech.com>
1492
1493         Reviewed by Simon.
1494
1495         a dragLeave event is not the same as cancelling a drag.
1496
1497         * Api/qwebpage.cpp:
1498
1499 2007-10-26  Mark Rowe  <mrowe@apple.com>
1500
1501         Build fix.  Add missing #include of Platform.h.
1502
1503         * Api/qwebhistoryinterface.cpp:
1504
1505 2007-10-25  Holger Freyther  <zecke@selfish.org>
1506
1507         Reviewed by Simon Hausmann <hausmann@kde.org>.
1508
1509         * We need to set a != 0 status code for the fast/loader/xmlhttprequest-missing-file-exception.html
1510         * libxml2 has the semantic that when writing an empty string and finishing it will report an error. For QXmlStreamReader this is valid.
1511         * This is causing some regressions...
1512         
1513
1514         * Api/qwebnetworkinterface.cpp:
1515         (QWebNetworkManager::started):
1516         (QWebNetworkInterface::addJob):
1517
1518 2007-10-25  Holger Freyther  <zecke@selfish.org>
1519
1520         Reviewed by Simon Hausmann <hausmann@kde.org>.
1521
1522         * Make fast/loader/xmlhttprequest-bad-mimetype.html pass. We use QHttp to download local files but we may not set the HTTP result code on the ResourceResponse.
1523         * We can use the cross-platform result now. QWebNetworkInterface/Manager behaves the same as mac for local files.
1524         
1525
1526         * Api/qwebnetworkinterface.cpp:
1527         (QWebNetworkManager::started):
1528
1529 2007-10-25  Holger Freyther  <zecke@selfish.org>
1530
1531         Reviewed by Simon Hausmann <hausmann@kde.org>.
1532
1533         * fast/dom/onerror-img.html regressed due checking the JobStates because in case of error (e.g. not being able to connect) the job will no be started.
1534         * Use the error message from Qt. It might or might not be translated.
1535         
1536
1537         * Api/qwebnetworkinterface.cpp:
1538         (QWebNetworkJob::errorString):
1539         (QWebNetworkJob::setErrorString):
1540         (QWebNetworkManager::finished):
1541         (QWebNetworkManager::doWork):
1542         (WebCoreHttp::onRequestFinished):
1543         * Api/qwebnetworkinterface.h:
1544         * Api/qwebnetworkinterface_p.h:
1545
1546 2007-10-25  Holger Freyther  <zecke@selfish.org>
1547
1548         Reviewed by Simon Hausmann <hausmann@kde.org>.
1549
1550         * Use the JobStatus to make sure to not deliver finished/data before the job has started. This is the case with the fast/dom/onerror-img.html test case.
1551         * We have no idea if any data will come so we can still finish and then get pending data. This luckily can't happen for the local file case.
1552         
1553
1554         * Api/qwebnetworkinterface.cpp:
1555         (QWebNetworkManager::doWork):
1556
1557 2007-10-25  Holger Freyther  <zecke@selfish.org>
1558
1559         Reviewed by Simon Hausmann <hausmann@kde.org>.
1560
1561         * No need to initialize values in the QWebNetworkJob c'tor
1562         * Add a JobStatus to QWebNetworkJob and verify that the jobs are handled in the way we expect them to be handled. This means no data after the job has finished, not finishing a job before it has been started.
1563         
1564
1565         * Api/qwebnetworkinterface.cpp:
1566         (QWebNetworkJob::status):
1567         (QWebNetworkJob::setStatus):
1568         (QWebNetworkManager::started):
1569         (QWebNetworkManager::data):
1570         (QWebNetworkManager::finished):
1571         * Api/qwebnetworkinterface.h:
1572         * Api/qwebnetworkinterface_p.h:
1573         (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
1574
1575 2007-10-25  Holger Freyther  <zecke@selfish.org>
1576
1577         Reviewed by Simon Hausmann <hausmann@kde.org>.
1578
1579         * Consistency: Always name the jobs job.
1580         
1581
1582         * Api/qwebnetworkinterface.cpp:
1583         (WebCoreHttp::onReadyRead):
1584         (WebCoreHttp::onRequestFinished):
1585         (WebCoreHttp::onSslErrors):
1586         (WebCoreHttp::onAuthenticationRequired):
1587         (WebCoreHttp::onProxyAuthenticationRequired):
1588
1589 2007-10-25  Holger Freyther  <zecke@selfish.org>
1590
1591         Reviewed by Simon Hausmann <hausmann@kde.org>.
1592
1593         * Implement our own queuing of network jobs to allow special handling of synchronous jobs. This makes us pass the fast/dom/xmlhttprequest-html-response-encoding.html test without a crash. Sync jobs will get a special treatment over the normals ones and in theory more than one sync job is supported.
1594         * This should be thread-safe besides QWebNetworkJob::{ref,deref}
1595         
1596
1597         * Api/qwebnetworkinterface.cpp:
1598         (QWebNetworkJob::~QWebNetworkJob):
1599         (QWebNetworkManager::QWebNetworkManager):
1600         (QWebNetworkManager::self):
1601         (QWebNetworkManager::add):
1602         (QWebNetworkManager::started):
1603         (QWebNetworkManager::finished):
1604         (QWebNetworkInterfacePrivate::sendFileData):
1605         (QWebNetworkInterfacePrivate::parseDataUrl):
1606         (QWebNetworkManager::queueStart):
1607         (QWebNetworkManager::queueData):
1608         (QWebNetworkManager::queueFinished):
1609         (QWebNetworkManager::doScheduleWork):
1610         (QWebNetworkManager::doWork):
1611         (gCleanupInterface):
1612         (QWebNetworkInterface::setDefaultInterface):
1613         (QWebNetworkInterface::defaultInterface):
1614         (QWebNetworkInterface::QWebNetworkInterface):
1615         (QWebNetworkInterface::started):
1616         (QWebNetworkInterface::data):
1617         (QWebNetworkInterface::finished):
1618         (WebCoreHttp::scheduleNextRequest):
1619         (WebCoreHttp::onResponseHeaderReceived):
1620         (WebCoreHttp::onReadyRead):
1621         (WebCoreHttp::onRequestFinished):
1622         (WebCoreHttp::cancel):
1623         * Api/qwebnetworkinterface.h:
1624         * Api/qwebnetworkinterface_p.h:
1625         (QWebNetworkManager::):
1626         (QWebNetworkManager::JobData::JobData):
1627         (QWebNetworkManager::JobFinished::JobFinished):
1628
1629 2007-10-25  Holger Freyther  <zecke@selfish.org>
1630
1631         Reviewed by Simon Hausmann <hausmann@kde.org>.
1632
1633         * Do the percent replacement only when we are not base64. With base64 we should not have any % in it anyway.
1634         * Have a custom decodePercentEncoding method that works without doing any charset conversion. With converting back to latin1() we lost some information.
1635         * We pass the char-decoding.html test now
1636         
1637
1638         * Api/qwebnetworkinterface.cpp:
1639         (decodePercentEncoding):
1640         (QWebNetworkInterfacePrivate::parseDataUrl):
1641
1642 2007-10-24  Holger Hans Peter Freyther  <zecke@selfish.org>
1643
1644         Reviewed by Lars Knoll <lars@trolltech.com>.
1645
1646         * Stop crashing on fast/events/frame-tab-focus.html the keyEvent can be 0.
1647         
1648
1649         * WebCoreSupport/EditorClientQt.cpp:
1650         (WebCore::EditorClientQt::handleKeypress):
1651
1652 2007-10-24  Lars Knoll  <lars@trolltech.com>
1653
1654         Reviewed by Simon.
1655
1656         remove some notImplemented() warnings.
1657
1658         * WebCoreSupport/EditorClientQt.cpp:
1659         (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
1660         (WebCore::EditorClientQt::isGrammarCheckingEnabled):
1661         (WebCore::EditorClientQt::respondToChangedSelection):
1662
1663 2007-10-24  Lars Knoll  <lars@trolltech.com>
1664
1665         Reviewed by Simon.
1666
1667         allow paste from DOM so we pass more test cases.
1668
1669         * Api/qwebpage.cpp:
1670         (QWebPage::setSettings):
1671
1672 2007-10-24  Lars Knoll  <lars@trolltech.com>
1673
1674         Reviewed by Simon.
1675
1676         Simplify the PlatformKeyEvent constructor. No need to have an extra boolean for isKeyUp in there, as the QKeyEvent has the information.
1677
1678         * Api/qwebpage.cpp:
1679         (QWebPage::keyPressEvent):
1680         (QWebPage::keyReleaseEvent):
1681
1682 2007-10-24  Lars Knoll  <lars@trolltech.com>
1683
1684         Reviewed by Simon.
1685
1686         some smaller fixes to the editing support in DRT. Makes another few tests pass.
1687
1688         * WebCoreSupport/EditorClientQt.cpp:
1689         (qt_dump_editing_callbacks):
1690         (qt_drt_run):
1691
1692 2007-10-24  Lars Knoll  <lars@trolltech.com>
1693
1694         Reviewed by Simon.
1695
1696         implemented support for most editing shortcuts to make contentEditable usable.
1697
1698         * Api/qwebpage.cpp:
1699         (QWebPage::keyPressEvent):
1700
1701 2007-10-24  Lars Knoll  <lars@trolltech.com>
1702
1703         Reviewed by Simon.
1704
1705         no need to call setIsActive ourselves on the frame, as the focus controller does it for us.
1706
1707         * Api/qwebpage.cpp:
1708         (QWebPage::focusInEvent):
1709
1710 2007-10-24  Lars Knoll  <lars@trolltech.com>
1711
1712         Reviewed by Simon.
1713
1714         Implement support for testing editing.
1715
1716         * WebCoreSupport/EditorClientQt.cpp:
1717         (qt_dump_editing_callbacks):
1718         (qt_dump_set_accepts_editing):
1719         (dumpPath):
1720         (dumpRange):
1721         (WebCore::EditorClientQt::shouldDeleteRange):
1722         (WebCore::EditorClientQt::shouldShowDeleteInterface):
1723         (WebCore::EditorClientQt::shouldBeginEditing):
1724         (WebCore::EditorClientQt::shouldEndEditing):
1725         (WebCore::EditorClientQt::shouldInsertText):
1726         (WebCore::EditorClientQt::shouldChangeSelectedRange):
1727         (WebCore::EditorClientQt::shouldApplyStyle):
1728         (WebCore::EditorClientQt::didBeginEditing):
1729         (WebCore::EditorClientQt::respondToChangedContents):
1730         (WebCore::EditorClientQt::respondToChangedSelection):
1731         (WebCore::EditorClientQt::didEndEditing):
1732         (WebCore::EditorClientQt::shouldInsertNode):
1733
1734 2007-10-19  Alp Toker  <alp@atoker.com>
1735
1736         Reviewed by Oliver.
1737
1738         GTK+ build fix enabling the new local database storage feature.
1739         There is also a prospective Qt build fix.
1740
1741         * WebCoreSupport/ChromeClientQt.cpp:
1742         (WebCore::ChromeClientQt::runDatabaseSizeLimitPrompt):
1743         * WebCoreSupport/ChromeClientQt.h:
1744
1745 2007-10-19  Simon Hausmann  <hausmann@kde.org>
1746
1747         Fix the Qt/Windows build: Include the moc file from the .cpp file so
1748         that config.h is included before wtf/MathExtras. The former defines
1749         the MSVC defines for rand_s.
1750
1751         * WebCoreSupport/FrameLoaderClientQt.cpp:
1752
1753 2007-10-19  Simon Hausmann  <shausman@trolltech.com>
1754
1755         Reviewed by Lars.
1756
1757         Fix the windows/qt build by including config.h first to fix wtf/MathExtras.h inclusion.
1758
1759         * Api/qwebframe.cpp:
1760         * Api/qwebpage.cpp:
1761
1762 2007-10-10  Alice Liu  <alice.liu@apple.com>
1763
1764         Reviewed by Geoff Garen.
1765
1766         changes to keep the build from breaking
1767
1768         * WebCoreSupport/FrameLoaderClientQt.cpp:
1769         (WebCore::FrameLoaderClientQt::createFrame):
1770         * WebCoreSupport/FrameLoaderClientQt.h:
1771
1772 2007-10-09  Lars Knoll  <lars@trolltech.com>
1773
1774         Reviewed by Simon.
1775
1776         set a default encoding for documents. Makes fast/dom/Document/document-charset.html pass.
1777
1778         * Api/qwebpage.cpp:
1779         (QWebPage::setSettings):
1780
1781 2007-10-09  Lars Knoll  <lars@trolltech.com>
1782
1783         Reviewed by Simon.
1784
1785         Don't return a 404 status code for empty data: urls. Fixes fast/dom/HTMLHeadElement/head-check.html
1786
1787         * Api/qwebnetworkinterface.cpp:
1788         (QWebNetworkManager::add):
1789         (QWebNetworkManager::cancel):
1790         (QWebNetworkManager::started):
1791         (QWebNetworkManager::data):
1792         (QWebNetworkInterfacePrivate::parseDataUrl):
1793
1794 2007-10-09  Lars Knoll  <lars@trolltech.com>
1795
1796         Reviewed by Simon.
1797
1798         Don't set up connections inside QWebPage::createFrame, as users might be reimplementing that method. Make sure we get only one titleChanged() signal per title change, and implement the support for testing this in DRT.
1799
1800         * Api/qwebpage.cpp:
1801         (QWebPagePrivate::createMainFrame):
1802         (QWebPage::createFrame):
1803         * WebCoreSupport/FrameLoaderClientQt.cpp:
1804         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
1805         * WebCoreSupport/FrameLoaderClientQt.h:
1806
1807 2007-10-09  Lars Knoll  <lars@trolltech.com>
1808
1809         Reviewed by Simon.
1810
1811         add a clear() method to QWebPageHistory.
1812
1813         * Api/qwebpagehistory.cpp:
1814         (QWebPageHistory::clear):
1815         (QWebPageHistory::itemAtIndex):
1816         * Api/qwebpagehistory.h:
1817
1818 2007-10-05  Lars Knoll  <lars@trolltech.com>
1819
1820         add proper error messages to the FrameLoaderClient.
1821         Implement ChromeClientQt::closeWindowSoon and
1822         FrameLoaderClientQt::dispatchCreatePage (which should go away IMO).
1823         Some fixes in DRT to make it work correctly with multiple windows.
1824
1825         Reviewed by Maciej.
1826
1827         * Api/qwebframe.h:
1828         * Api/qwebnetworkinterface.cpp:
1829         (QWebNetworkManager::cancel):
1830         (QWebNetworkInterface::addJob):
1831         * WebCoreSupport/ChromeClientQt.cpp:
1832         (WebCore::ChromeClientQt::closeWindowSoon):
1833         * WebCoreSupport/FrameLoaderClientQt.cpp:
1834         (WebCore::FrameLoaderClientQt::cancelledError):
1835         (WebCore::):
1836         (WebCore::FrameLoaderClientQt::blockedError):
1837         (WebCore::FrameLoaderClientQt::cannotShowURLError):
1838         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
1839         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
1840         (WebCore::FrameLoaderClientQt::dispatchCreatePage):
1841
1842 2007-10-03  Lars Knoll  <lars@trolltech.com>
1843
1844         Signed off by Olliej.
1845
1846         move WebKitQt to WebKit/qt for consistency with the other ports.
1847
1848         * Api/headers.pri: Renamed from WebKitQt/Api/headers.pri.
1849         * Api/qcookiejar.cpp: Renamed from WebKitQt/Api/qcookiejar.cpp.
1850         (QCookieJarPrivate::QCookieJarPrivate):
1851         (qHash):
1852         (QCookieJar::QCookieJar):
1853         (QCookieJar::~QCookieJar):
1854         (QCookieJar::setCookies):
1855         (QCookieJar::cookies):
1856         (QCookieJar::isEnabled):
1857         (QCookieJar::setEnabled):
1858         (gCleanupJar):
1859         (QCookieJar::setCookieJar):
1860         (QCookieJar::cookieJar):
1861         * Api/qcookiejar.h: Renamed from WebKitQt/Api/qcookiejar.h.
1862         * Api/qtwebkit.prf: Renamed from WebKitQt/Api/qtwebkit.prf.
1863         * Api/qwebframe.cpp: Renamed from WebKitQt/Api/qwebframe.cpp.
1864         (QWebFramePrivate::init):
1865         (QWebFramePrivate::parentFrame):
1866         (QWebFramePrivate::horizontalScrollBar):
1867         (QWebFramePrivate::verticalScrollBar):
1868         (QWebFrame::QWebFrame):
1869         (QWebFrame::~QWebFrame):
1870         (QWebFrame::addToJSWindowObject):
1871         (QWebFrame::markup):
1872         (QWebFrame::innerText):
1873         (QWebFrame::renderTreeDump):
1874         (QWebFrame::title):
1875         (QWebFrame::name):
1876         (QWebFrame::page):
1877         (QWebFrame::selectedText):
1878         (QWebFrame::childFrames):
1879         (QWebFrame::verticalScrollBarPolicy):
1880         (QWebFrame::setVerticalScrollBarPolicy):
1881         (QWebFrame::horizontalScrollBarPolicy):
1882         (QWebFrame::setHorizontalScrollBarPolicy):
1883         (QWebFrame::render):
1884         (QWebFrame::layout):
1885         (QWebFrame::pos):
1886         (QWebFrame::geometry):
1887         (QWebFrame::evaluateJavaScript):
1888         (QWebFrame::mouseMoveEvent):
1889         (QWebFrame::mousePressEvent):
1890         (QWebFrame::mouseDoubleClickEvent):
1891         (QWebFrame::mouseReleaseEvent):
1892         (QWebFrame::wheelEvent):
1893         * Api/qwebframe.h: Renamed from WebKitQt/Api/qwebframe.h.
1894         * Api/qwebframe_p.h: Renamed from WebKitQt/Api/qwebframe_p.h.
1895         (QWebFramePrivate::QWebFramePrivate):
1896         * Api/qwebhistoryinterface.cpp: Renamed from WebKitQt/Api/qwebhistoryinterface.cpp.
1897         (WebCore::historyContains):
1898         (gCleanupInterface):
1899         (QWebHistoryInterface::setDefaultInterface):
1900         (QWebHistoryInterface::defaultInterface):
1901         (QWebHistoryInterface::QWebHistoryInterface):
1902         * Api/qwebhistoryinterface.h: Renamed from WebKitQt/Api/qwebhistoryinterface.h.
1903         * Api/qwebkitglobal.h: Renamed from WebKitQt/Api/qwebkitglobal.h.
1904         * Api/qwebnetworkinterface.cpp: Renamed from WebKitQt/Api/qwebnetworkinterface.cpp.
1905         (qHash):
1906         (operator==):
1907         (QWebNetworkRequestPrivate::init):
1908         (QWebNetworkRequestPrivate::setURL):
1909         (QWebNetworkRequest::QWebNetworkRequest):
1910         (QWebNetworkRequest::operator=):
1911         (QWebNetworkRequest::~QWebNetworkRequest):
1912         (QWebNetworkRequest::url):
1913         (QWebNetworkRequest::setUrl):
1914         (QWebNetworkRequest::httpHeader):
1915         (QWebNetworkRequest::setHttpHeader):
1916         (QWebNetworkRequest::httpHeaderField):
1917         (QWebNetworkRequest::setHttpHeaderField):
1918         (QWebNetworkRequest::postData):
1919         (QWebNetworkRequest::setPostData):
1920         (QWebNetworkJob::QWebNetworkJob):
1921         (QWebNetworkJob::~QWebNetworkJob):
1922         (QWebNetworkJob::url):
1923         (QWebNetworkJob::postData):
1924         (QWebNetworkJob::httpHeader):
1925         (QWebNetworkJob::request):
1926         (QWebNetworkJob::response):
1927         (QWebNetworkJob::setResponse):
1928         (QWebNetworkJob::cancelled):
1929         (QWebNetworkJob::ref):
1930         (QWebNetworkJob::deref):
1931         (QWebNetworkJob::networkInterface):
1932         (QWebNetworkJob::frame):
1933         (QWebNetworkManager::QWebNetworkManager):
1934         (QWebNetworkManager::self):
1935         (QWebNetworkManager::add):
1936         (QWebNetworkManager::cancel):
1937         (QWebNetworkManager::started):
1938         (QWebNetworkManager::data):
1939         (QWebNetworkManager::finished):
1940         (QWebNetworkManager::addHttpJob):
1941         (QWebNetworkManager::cancelHttpJob):
1942         (QWebNetworkManager::httpConnectionClosed):
1943         (QWebNetworkInterfacePrivate::sendFileData):
1944         (QWebNetworkInterfacePrivate::parseDataUrl):
1945         (gCleanupInterface):
1946         (QWebNetworkInterface::setDefaultInterface):
1947         (QWebNetworkInterface::defaultInterface):
1948         (QWebNetworkInterface::QWebNetworkInterface):
1949         (QWebNetworkInterface::~QWebNetworkInterface):
1950         (QWebNetworkInterface::addJob):
1951         (QWebNetworkInterface::cancelJob):
1952         (WebCoreHttp::WebCoreHttp):
1953         (WebCoreHttp::~WebCoreHttp):
1954         (WebCoreHttp::request):
1955         (WebCoreHttp::scheduleNextRequest):
1956         (WebCoreHttp::getConnection):
1957         (WebCoreHttp::onResponseHeaderReceived):
1958         (WebCoreHttp::onReadyRead):
1959         (WebCoreHttp::onRequestFinished):
1960         (WebCoreHttp::onDone):
1961         (WebCoreHttp::onStateChanged):
1962         (WebCoreHttp::cancel):
1963         (WebCoreHttp::onSslErrors):
1964         (WebCoreHttp::onAuthenticationRequired):
1965         (WebCoreHttp::onProxyAuthenticationRequired):
1966         (HostInfo::HostInfo):
1967         * Api/qwebnetworkinterface.h: Renamed from WebKitQt/Api/qwebnetworkinterface.h.
1968         * Api/qwebnetworkinterface_p.h: Renamed from WebKitQt/Api/qwebnetworkinterface_p.h.
1969         (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
1970         (WebCore::HostInfo::HostInfo):
1971         (WebCore::WebCoreHttp::HttpConnection::HttpConnection):
1972         * Api/qwebobjectplugin.cpp: Renamed from WebKitQt/Api/qwebobjectplugin.cpp.
1973         (QWebFactoryLoader::QWebFactoryLoader):
1974         (QWebFactoryLoader::self):
1975         (QWebFactoryLoader::descriptionForName):
1976         (QWebFactoryLoader::mimetypesForName):
1977         (QWebFactoryLoader::mimeTypeForExtension):
1978         (QWebFactoryLoader::extensions):
1979         (QWebFactoryLoader::nameForMimetype):
1980         (QWebFactoryLoader::create):
1981         (QWebObjectPlugin::QWebObjectPlugin):
1982         (QWebObjectPlugin::~QWebObjectPlugin):
1983         (QWebObjectPlugin::descriptionForKey):
1984         (QWebObjectPlugin::mimetypesForKey):
1985         (QWebObjectPlugin::extensionsForMimetype):
1986         * Api/qwebobjectplugin.h: Renamed from WebKitQt/Api/qwebobjectplugin.h.
1987         * Api/qwebobjectplugin_p.h: Renamed from WebKitQt/Api/qwebobjectplugin_p.h.
1988         (QWebFactoryLoader::names):
1989         (QWebFactoryLoader::supportsMimeType):
1990         * Api/qwebobjectpluginconnector.cpp: Renamed from WebKitQt/Api/qwebobjectpluginconnector.cpp.
1991         (QWebObjectPluginConnector::QWebObjectPluginConnector):
1992         (QWebObjectPluginConnector::frame):
1993         (QWebObjectPluginConnector::pluginParentWidget):
1994         (QWebObjectPluginConnector::requestUrl):
1995         * Api/qwebobjectpluginconnector.h: Renamed from WebKitQt/Api/qwebobjectpluginconnector.h.
1996         * Api/qwebpage.cpp: Renamed from WebKitQt/Api/qwebpage.cpp.
1997         (QWebPagePrivate::QWebPagePrivate):
1998         (QWebPagePrivate::~QWebPagePrivate):
1999         (QWebPagePrivate::navigationRequested):
2000         (QWebPagePrivate::createMainFrame):
2001         (QWebPage::QWebPage):
2002         (QWebPage::~QWebPage):
2003         (QWebPage::createFrame):
2004         (QWebPage::open):
2005         (QWebPage::url):
2006         (QWebPage::title):
2007         (QWebPage::mainFrame):
2008         (QWebPage::sizeHint):
2009         (QWebPage::stop):
2010         (QWebPage::history):
2011         (QWebPage::goBack):
2012         (QWebPage::goForward):
2013         (QWebPage::goToHistoryItem):
2014         (QWebPage::javaScriptConsoleMessage):
2015         (QWebPage::javaScriptAlert):
2016         (QWebPage::javaScriptConfirm):
2017         (QWebPage::javaScriptPrompt):
2018         (QWebPage::createWindow):
2019         (QWebPage::createModalDialog):
2020         (QWebPage::createPlugin):
2021         (QWebPage::navigationRequested):
2022         (QWebPage::setWindowGeometry):
2023         (QWebPage::canCut):
2024         (QWebPage::canCopy):
2025         (QWebPage::canPaste):
2026         (QWebPage::cut):
2027         (QWebPage::copy):
2028         (QWebPage::paste):
2029         (QWebPage::isModified):
2030         (QWebPage::undoStack):
2031         (dropActionToDragOp):
2032         (dragOpToDropAction):
2033         (QWebPage::resizeEvent):
2034         (QWebPage::paintEvent):
2035         (QWebPage::mouseMoveEvent):
2036         (QWebPage::mousePressEvent):
2037         (QWebPage::mouseDoubleClickEvent):
2038         (QWebPage::mouseReleaseEvent):
2039         (QWebPage::wheelEvent):
2040         (QWebPage::keyPressEvent):
2041         (QWebPage::keyReleaseEvent):
2042         (QWebPage::focusInEvent):
2043         (QWebPage::focusOutEvent):
2044         (QWebPage::focusNextPrevChild):
2045         (QWebPage::dragEnterEvent):
2046         (QWebPage::dragLeaveEvent):
2047         (QWebPage::dragMoveEvent):
2048         (QWebPage::dropEvent):
2049         (QWebPage::setNetworkInterface):
2050         (QWebPage::networkInterface):
2051         (QWebPage::icon):
2052         (QWebPage::setSettings):
2053         (QWebPage::settings):
2054         (QWebPage::chooseFile):
2055         (QWebPage::setNetworkProxy):
2056         (QWebPage::networkProxy):
2057         (QWebPage::userAgentStringForUrl):
2058         (QWebPage::onLoadProgressChanged):
2059         (QWebPage::totalBytes):
2060         * Api/qwebpage.h: Renamed from WebKitQt/Api/qwebpage.h.
2061         * Api/qwebpage_p.h: Renamed from WebKitQt/Api/qwebpage_p.h.
2062         * Api/qwebpagehistory.cpp: Renamed from WebKitQt/Api/qwebpagehistory.cpp.
2063         (QWebHistoryItem::QWebHistoryItem):
2064         (QWebHistoryItem::operator=):
2065         (QWebHistoryItem::~QWebHistoryItem):
2066         (QWebHistoryItem::originalUrl):
2067         (QWebHistoryItem::currentUrl):
2068         (QWebHistoryItem::title):
2069         (QWebHistoryItem::lastVisited):
2070         (QWebHistoryItem::icon):
2071         (QWebPageHistory::QWebPageHistory):
2072         (QWebPageHistory::itemAtIndex):
2073         (QWebPageHistory::operator=):
2074         (QWebPageHistory::~QWebPageHistory):
2075         (QWebPageHistory::items):
2076         (QWebPageHistory::backItems):
2077         (QWebPageHistory::forwardItems):
2078         (QWebPageHistory::canGoBack):
2079         (QWebPageHistory::canGoForward):
2080         (QWebPageHistory::goBack):
2081         (QWebPageHistory::goForward):
2082         (QWebPageHistory::goToItem):
2083         (QWebPageHistory::backItem):
2084         (QWebPageHistory::currentItem):
2085         (QWebPageHistory::forwardItem):
2086         * Api/qwebpagehistory.h: Renamed from WebKitQt/Api/qwebpagehistory.h.
2087         (QExplicitlySharedDataPointer::operator*):
2088         (QExplicitlySharedDataPointer::operator->):
2089         (QExplicitlySharedDataPointer::operator T *):
2090         (QExplicitlySharedDataPointer::operator const T *):
2091         (QExplicitlySharedDataPointer::data):
2092         (QExplicitlySharedDataPointer::constData):
2093         (QExplicitlySharedDataPointer::operator==):
2094         (QExplicitlySharedDataPointer::operator!=):
2095         (QExplicitlySharedDataPointer::QExplicitlySharedDataPointer):
2096         (QExplicitlySharedDataPointer::~QExplicitlySharedDataPointer):
2097         (QExplicitlySharedDataPointer::operator=):
2098         (QExplicitlySharedDataPointer::operator!):
2099         (::QExplicitlySharedDataPointer):
2100         * Api/qwebpagehistory_p.h: Renamed from WebKitQt/Api/qwebpagehistory_p.h.
2101         (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
2102         (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
2103         (QWebPageHistoryPrivate::QWebPageHistoryPrivate):
2104         (QWebPageHistoryPrivate::~QWebPageHistoryPrivate):
2105         * Api/qwebsettings.cpp: Renamed from WebKitQt/Api/qwebsettings.cpp.
2106         (QWebSettingsPrivate::QWebSettingsPrivate):
2107         (QWebSettings::QWebSettings):
2108         (QWebSettings::~QWebSettings):
2109         (QWebSettings::setMinimumFontSize):
2110         (QWebSettings::minimumFontSize):
2111         (QWebSettings::setMinimumLogicalFontSize):
2112         (QWebSettings::minimumLogicalFontSize):
2113         (QWebSettings::setDefaultFontSize):
2114         (QWebSettings::defaultFontSize):
2115         (QWebSettings::setDefaultFixedFontSize):
2116         (QWebSettings::defaultFixedFontSize):
2117         (QWebSettings::setUserStyleSheetLocation):
2118         (QWebSettings::userStyleSheetLocation):
2119         (QWebSettings::setIconDatabaseEnabled):
2120         (QWebSettings::iconDatabaseEnabled):
2121         (QWebSettings::setWebGraphic):
2122         (QWebSettings::webGraphic):
2123         (QWebSettings::operator=):
2124         (QWebSettings::setGlobal):
2125         (QWebSettings::global):
2126         (QWebSettings::setFontFamily):
2127         (QWebSettings::fontFamily):
2128         (QWebSettings::setAttribute):
2129         (QWebSettings::testAttribute):
2130         (loadResourcePixmap):
2131         * Api/qwebsettings.h: Renamed from WebKitQt/Api/qwebsettings.h.
2132         * ChangeLog: Renamed from WebKitQt/ChangeLog.
2133         * Plugins/ICOHandler.cpp: Renamed from WebKitQt/Plugins/ICOHandler.cpp.
2134         (IcoHeader::operator >>):
2135         (IcoHeader::BMP_INFOHDR::):
2136         (IcoHeader::operator<<):
2137         (IcoHeader::LessDifference::LessDifference):
2138         (IcoHeader::LessDifference::operator ()):
2139         (IcoHeader::loadFromDIB):
2140         (ICOHandler::ICOHandler):
2141         (ICOHandler::canRead):
2142         (ICOHandler::read):
2143         (ICOHandler::write):
2144         (ICOHandler::name):
2145         (ICOPlugin::keys):
2146         (ICOPlugin::capabilities):
2147         (ICOPlugin::create):
2148         * Plugins/ICOHandler.h: Renamed from WebKitQt/Plugins/ICOHandler.h.
2149         * Plugins/Plugins.pro: Renamed from WebKitQt/Plugins/Plugins.pro.
2150         * QtLauncher/QtLauncher.pro: Renamed from WebKitQt/QtLauncher/QtLauncher.pro.
2151         * QtLauncher/main.cpp: Renamed from WebKitQt/QtLauncher/main.cpp.
2152         (HoverLabel::HoverLabel):
2153         (HoverLabel::setHoverLink):
2154         (HoverLabel::sizeForFont):
2155         (HoverLabel::sizeHint):
2156         (HoverLabel::updateSize):
2157         (HoverLabel::resetAnimation):
2158         (HoverLabel::paintEvent):
2159         (HoverLabel::interpolate):
2160         (ClearButton::ClearButton):
2161         (ClearButton::paintEvent):
2162         (SearchEdit::SearchEdit):
2163         (SearchEdit::~SearchEdit):
2164         (SearchEdit::paintEvent):
2165         (SearchEdit::resizeEvent):
2166         (SearchEdit::moveEvent):
2167         (MainWindow::MainWindow):
2168         (MainWindow::changeLocation):
2169         (MainWindow::loadFinished):
2170         (MainWindow::showLinkHover):
2171         (MainWindow::resizeEvent):
2172         (main):
2173         * WebCoreSupport/ChromeClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.cpp.
2174         (WebCore::ChromeClientQt::ChromeClientQt):
2175         (WebCore::ChromeClientQt::~ChromeClientQt):
2176         (WebCore::ChromeClientQt::setWindowRect):
2177         (WebCore::ChromeClientQt::windowRect):
2178         (WebCore::ChromeClientQt::pageRect):
2179         (WebCore::ChromeClientQt::scaleFactor):
2180         (WebCore::ChromeClientQt::focus):
2181         (WebCore::ChromeClientQt::unfocus):
2182         (WebCore::ChromeClientQt::canTakeFocus):
2183         (WebCore::ChromeClientQt::takeFocus):
2184         (WebCore::ChromeClientQt::createWindow):
2185         (WebCore::ChromeClientQt::createModalDialog):
2186         (WebCore::ChromeClientQt::show):
2187         (WebCore::ChromeClientQt::canRunModal):
2188         (WebCore::ChromeClientQt::runModal):
2189         (WebCore::ChromeClientQt::setToolbarsVisible):
2190         (WebCore::ChromeClientQt::toolbarsVisible):
2191         (WebCore::ChromeClientQt::setStatusbarVisible):
2192         (WebCore::ChromeClientQt::statusbarVisible):
2193         (WebCore::ChromeClientQt::setScrollbarsVisible):
2194         (WebCore::ChromeClientQt::scrollbarsVisible):
2195         (WebCore::ChromeClientQt::setMenubarVisible):
2196         (WebCore::ChromeClientQt::menubarVisible):
2197         (WebCore::ChromeClientQt::setResizable):
2198         (WebCore::ChromeClientQt::addMessageToConsole):
2199         (WebCore::ChromeClientQt::chromeDestroyed):
2200         (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
2201         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
2202         (WebCore::ChromeClientQt::closeWindowSoon):
2203         (WebCore::ChromeClientQt::runJavaScriptAlert):
2204         (WebCore::ChromeClientQt::runJavaScriptConfirm):
2205         (WebCore::ChromeClientQt::runJavaScriptPrompt):
2206         (WebCore::ChromeClientQt::setStatusbarText):
2207         (WebCore::ChromeClientQt::shouldInterruptJavaScript):
2208         (WebCore::ChromeClientQt::tabsToLinks):
2209         (WebCore::ChromeClientQt::windowResizerRect):
2210         (WebCore::ChromeClientQt::addToDirtyRegion):
2211         (WebCore::ChromeClientQt::scrollBackingStore):
2212         (WebCore::ChromeClientQt::updateBackingStore):
2213         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2214         (WebCore::ChromeClientQt::setToolTip):
2215         (WebCore::ChromeClientQt::print):
2216         * WebCoreSupport/ChromeClientQt.h: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.h.
2217         * WebCoreSupport/ContextMenuClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.cpp.
2218         (WebCore::ContextMenuClientQt::contextMenuDestroyed):
2219         (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
2220         (WebCore::ContextMenuClientQt::contextMenuItemSelected):
2221         (WebCore::ContextMenuClientQt::downloadURL):
2222         (WebCore::ContextMenuClientQt::lookUpInDictionary):
2223         (WebCore::ContextMenuClientQt::speak):
2224         (WebCore::ContextMenuClientQt::stopSpeaking):
2225         (WebCore::ContextMenuClientQt::searchWithGoogle):
2226         * WebCoreSupport/ContextMenuClientQt.h: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.h.
2227         * WebCoreSupport/DragClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/DragClientQt.cpp.
2228         (WebCore::DragClientQt::actionMaskForDrag):
2229         (WebCore::DragClientQt::willPerformDragDestinationAction):
2230         (WebCore::DragClientQt::dragControllerDestroyed):
2231         (WebCore::DragClientQt::dragSourceActionMaskForPoint):
2232         (WebCore::DragClientQt::willPerformDragSourceAction):
2233         (WebCore::DragClientQt::startDrag):
2234         * WebCoreSupport/DragClientQt.h: Renamed from WebKitQt/WebCoreSupport/DragClientQt.h.
2235         (WebCore::DragClientQt::DragClientQt):
2236         * WebCoreSupport/EditCommandQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.cpp.
2237         (EditCommandQt::EditCommandQt):
2238         (EditCommandQt::~EditCommandQt):
2239         (EditCommandQt::redo):
2240         (EditCommandQt::undo):
2241         * WebCoreSupport/EditCommandQt.h: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.h.
2242         * WebCoreSupport/EditorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.cpp.
2243         (WebCore::EditorClientQt::shouldDeleteRange):
2244         (WebCore::EditorClientQt::shouldShowDeleteInterface):
2245         (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
2246         (WebCore::EditorClientQt::isGrammarCheckingEnabled):
2247         (WebCore::EditorClientQt::spellCheckerDocumentTag):
2248         (WebCore::EditorClientQt::shouldBeginEditing):
2249         (WebCore::EditorClientQt::shouldEndEditing):
2250         (WebCore::EditorClientQt::shouldInsertText):
2251         (WebCore::EditorClientQt::shouldChangeSelectedRange):
2252         (WebCore::EditorClientQt::shouldApplyStyle):
2253         (WebCore::EditorClientQt::shouldMoveRangeAfterDelete):
2254         (WebCore::EditorClientQt::didBeginEditing):
2255         (WebCore::EditorClientQt::respondToChangedContents):
2256         (WebCore::EditorClientQt::respondToChangedSelection):
2257         (WebCore::EditorClientQt::didEndEditing):
2258         (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
2259         (WebCore::EditorClientQt::didSetSelectionTypesForPasteboard):
2260         (WebCore::EditorClientQt::selectWordBeforeMenuEvent):
2261         (WebCore::EditorClientQt::isEditable):
2262         (WebCore::EditorClientQt::registerCommandForUndo):
2263         (WebCore::EditorClientQt::registerCommandForRedo):
2264         (WebCore::EditorClientQt::clearUndoRedoOperations):
2265         (WebCore::EditorClientQt::canUndo):
2266         (WebCore::EditorClientQt::canRedo):
2267         (WebCore::EditorClientQt::undo):
2268         (WebCore::EditorClientQt::redo):
2269         (WebCore::EditorClientQt::shouldInsertNode):
2270         (WebCore::EditorClientQt::pageDestroyed):
2271         (WebCore::EditorClientQt::smartInsertDeleteEnabled):
2272         (WebCore::EditorClientQt::toggleContinuousSpellChecking):
2273         (WebCore::EditorClientQt::toggleGrammarChecking):
2274         (WebCore::EditorClientQt::handleKeypress):
2275         (WebCore::EditorClientQt::handleInputMethodKeypress):
2276         (WebCore::EditorClientQt::EditorClientQt):
2277         (WebCore::EditorClientQt::textFieldDidBeginEditing):
2278         (WebCore::EditorClientQt::textFieldDidEndEditing):
2279         (WebCore::EditorClientQt::textDidChangeInTextField):
2280         (WebCore::EditorClientQt::doTextFieldCommandFromEvent):
2281         (WebCore::EditorClientQt::textWillBeDeletedInTextField):
2282         (WebCore::EditorClientQt::textDidChangeInTextArea):
2283         (WebCore::EditorClientQt::ignoreWordInSpellDocument):
2284         (WebCore::EditorClientQt::learnWord):
2285         (WebCore::EditorClientQt::checkSpellingOfString):
2286         (WebCore::EditorClientQt::checkGrammarOfString):
2287         (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
2288         (WebCore::EditorClientQt::updateSpellingUIWithMisspelledWord):
2289         (WebCore::EditorClientQt::showSpellingUI):
2290         (WebCore::EditorClientQt::spellingUIIsShowing):
2291         (WebCore::EditorClientQt::getGuessesForWord):
2292         (WebCore::EditorClientQt::isEditing):
2293         (WebCore::EditorClientQt::setInputMethodState):
2294         * WebCoreSupport/EditorClientQt.h: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.h.
2295         * WebCoreSupport/FrameLoaderClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.cpp.
2296         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
2297         (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
2298         (WebCore::FrameLoaderClientQt::setFrame):
2299         (WebCore::FrameLoaderClientQt::webFrame):
2300         (WebCore::FrameLoaderClientQt::callPolicyFunction):
2301         (WebCore::FrameLoaderClientQt::slotCallPolicyFunction):
2302         (WebCore::FrameLoaderClientQt::hasWebView):
2303         (WebCore::FrameLoaderClientQt::hasFrameView):
2304         (WebCore::FrameLoaderClientQt::hasBackForwardList):
2305         (WebCore::FrameLoaderClientQt::resetBackForwardList):
2306         (WebCore::FrameLoaderClientQt::provisionalItemIsTarget):
2307         (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache):
2308         (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache):
2309         (WebCore::FrameLoaderClientQt::privateBrowsingEnabled):
2310         (WebCore::FrameLoaderClientQt::makeDocumentView):
2311         (WebCore::FrameLoaderClientQt::makeRepresentation):
2312         (WebCore::FrameLoaderClientQt::forceLayout):
2313         (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML):
2314         (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
2315         (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset):
2316         (WebCore::FrameLoaderClientQt::resetAfterLoadError):
2317         (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError):
2318         (WebCore::FrameLoaderClientQt::willCloseDocument):
2319         (WebCore::FrameLoaderClientQt::detachedFromParent2):
2320         (WebCore::FrameLoaderClientQt::detachedFromParent3):
2321         (WebCore::FrameLoaderClientQt::detachedFromParent4):
2322         (WebCore::FrameLoaderClientQt::loadedFromCachedPage):
2323         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
2324         (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
2325         (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
2326         (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
2327         (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
2328         (WebCore::FrameLoaderClientQt::dispatchWillClose):
2329         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
2330         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
2331         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
2332         (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
2333         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
2334         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
2335         (WebCore::FrameLoaderClientQt::dispatchShow):
2336         (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
2337         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
2338         (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource):
2339         (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache):
2340         (WebCore::FrameLoaderClientQt::isLoadingFromPageCache):
2341         (WebCore::FrameLoaderClientQt::revertToProvisionalState):
2342         (WebCore::FrameLoaderClientQt::clearUnarchivingState):
2343         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
2344         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
2345         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
2346         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
2347         (WebCore::FrameLoaderClientQt::willChangeTitle):
2348         (WebCore::FrameLoaderClientQt::didChangeTitle):
2349         (WebCore::FrameLoaderClientQt::finishedLoading):
2350         (WebCore::FrameLoaderClientQt::finalSetupForReplace):
2351         (WebCore::FrameLoaderClientQt::setDefersLoading):
2352         (WebCore::FrameLoaderClientQt::isArchiveLoadPending):
2353         (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad):
2354         (WebCore::FrameLoaderClientQt::clearArchivedResources):
2355         (WebCore::FrameLoaderClientQt::canShowMIMEType):
2356         (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
2357         (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
2358         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
2359         (WebCore::FrameLoaderClientQt::restoreViewState):
2360         (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
2361         (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent):
2362         (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll):
2363         (WebCore::FrameLoaderClientQt::didFinishLoad):
2364         (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
2365         (WebCore::FrameLoaderClientQt::setTitle):
2366         (WebCore::FrameLoaderClientQt::userAgent):
2367         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
2368         (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
2369         (WebCore::FrameLoaderClientQt::canHandleRequest):
2370         (WebCore::FrameLoaderClientQt::windowObjectCleared):
2371         (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
2372         (WebCore::FrameLoaderClientQt::registerForIconNotification):
2373         (WebCore::FrameLoaderClientQt::setDocumentViewFromCachedPage):
2374         (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
2375         (WebCore::FrameLoaderClientQt::updateGlobalHistoryForReload):
2376         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
2377         (WebCore::FrameLoaderClientQt::saveViewStateToItem):
2378         (WebCore::FrameLoaderClientQt::saveDocumentViewToCachedPage):
2379         (WebCore::FrameLoaderClientQt::canCachePage):
2380         (WebCore::FrameLoaderClientQt::setMainDocumentError):
2381         (WebCore::FrameLoaderClientQt::committedLoad):
2382         (WebCore::FrameLoaderClientQt::cancelledError):
2383         (WebCore::FrameLoaderClientQt::blockedError):
2384         (WebCore::FrameLoaderClientQt::cannotShowURLError):
2385         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2386         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2387         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2388         (WebCore::FrameLoaderClientQt::shouldFallBack):
2389         (WebCore::FrameLoaderClientQt::createDocumentLoader):
2390         (WebCore::FrameLoaderClientQt::download):
2391         (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
2392         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
2393         (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge):
2394         (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge):
2395         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
2396         (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
2397         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
2398         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
2399         (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
2400         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
2401         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
2402         (WebCore::FrameLoaderClientQt::dispatchCreatePage):
2403         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2404         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
2405         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2406         (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
2407         (WebCore::FrameLoaderClientQt::startDownload):
2408         (WebCore::FrameLoaderClientQt::willUseArchive):
2409         (WebCore::FrameLoaderClientQt::createFrame):
2410         (WebCore::FrameLoaderClientQt::objectContentType):
2411         (WebCore::):
2412         (WebCore::FrameLoaderClientQt::createPlugin):
2413         (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
2414         (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
2415         (WebCore::FrameLoaderClientQt::overrideMediaType):
2416         * WebCoreSupport/FrameLoaderClientQt.h: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.h.
2417         * WebCoreSupport/InspectorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.cpp.
2418         (WebCore::InspectorClientQt::inspectorDestroyed):
2419         (WebCore::InspectorClientQt::createPage):
2420         (WebCore::InspectorClientQt::showWindow):
2421         (WebCore::InspectorClientQt::closeWindow):
2422         (WebCore::InspectorClientQt::attachWindow):
2423         (WebCore::InspectorClientQt::detachWindow):
2424         (WebCore::InspectorClientQt::highlight):
2425         (WebCore::InspectorClientQt::hideHighlight):
2426         * WebCoreSupport/InspectorClientQt.h: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.h.
2427         * WebKitPart/WebKitFactory.cpp: Renamed from WebKitQt/WebKitPart/WebKitFactory.cpp.
2428         (WebKitFactory::WebKitFactory):
2429         (WebKitFactory::~WebKitFactory):
2430         (WebKitFactory::createPartObject):
2431         (WebKitFactory::instance):
2432         (WebKitFactory::ref):
2433         (WebKitFactory::deref):
2434         * WebKitPart/WebKitFactory.h: Renamed from WebKitQt/WebKitPart/WebKitFactory.h.
2435         * WebKitPart/WebKitPart.cpp: Renamed from WebKitQt/WebKitPart/WebKitPart.cpp.
2436         (WebKitPart::WebKitPart):
2437         (WebKitPart::~WebKitPart):
2438         (WebKitPart::openFile):
2439         (WebKitPart::openUrl):
2440         (WebKitPart::closeUrl):
2441         (WebKitPart::parentPart):
2442         (WebKitPart::frame):
2443         (WebKitPart::initView):
2444         * WebKitPart/WebKitPart.desktop: Renamed from WebKitQt/WebKitPart/WebKitPart.desktop.
2445         * WebKitPart/WebKitPart.h: Renamed from WebKitQt/WebKitPart/WebKitPart.h.
2446         (WebKitPart::):
2447         * WebKitPart/WebKitPart.rc: Renamed from WebKitQt/WebKitPart/WebKitPart.rc.
2448         * WebKitPart/WebKitPartBrowser.rc: Renamed from WebKitQt/WebKitPart/WebKitPartBrowser.rc.
2449         * WebKitPart/WebKitPartBrowserExtension.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.cpp.
2450         (WebKitPartBrowserExtension::WebKitPartBrowserExtension):
2451         * WebKitPart/WebKitPartBrowserExtension.h: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.h.
2452         * WebKitPart/WebKitPartClient.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartClient.cpp.
2453         (WebKitPartClient::WebKitPartClient):
2454         (WebKitPartClient::~WebKitPartClient):
2455         * WebKitPart/WebKitPartClient.h: Renamed from WebKitQt/WebKitPart/WebKitPartClient.h.
2456         * WebKitPart/WebKitPartInterface.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.cpp.
2457         (WebKitPartInterface::WebKitPartInterface):
2458         (WebKitPartInterface::~WebKitPartInterface):
2459         (WebKitPartInterface::url):
2460         * WebKitPart/WebKitPartInterface.h: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.h.
2461         * WebKitPart/org.kde.WebKitPart.xml: Renamed from WebKitQt/WebKitPart/org.kde.WebKitPart.xml.
2462
2463 2007-10-02  Adam Treat  <treat@kde.org>
2464
2465         Reviewed by Eric Seidel.
2466
2467         Open the requested url on the newly created window.
2468         Implement createModalDialog and provide new API for this.
2469         Patch by M. Mehdi Salem Naraghi (momesana) with additions by me.
2470
2471         * Api/qwebpage.cpp:
2472         (QWebPage::createModalDialog):
2473         * Api/qwebpage.h:
2474         * WebCoreSupport/ChromeClientQt.cpp:
2475         (WebCore::ChromeClientQt::createWindow):
2476         (WebCore::ChromeClientQt::createModalDialog):
2477
2478 2007-10-02  Lars Knoll  <lars@trolltech.com>
2479
2480         Reviewed by bdash.
2481
2482         Add API to retrieve the frame name from QWebFrame.
2483         Implement support for DRT::dumpChildrenAsText.
2484
2485         * Api/qwebframe.cpp:
2486         (QWebFrame::name):
2487         * Api/qwebframe.h:
2488
2489 2007-10-02  Lars Knoll  <lars@trolltech.com>
2490
2491         Reviewed by bdash.
2492
2493         Fix the handling of the response header for data urls. Make sure we always pass absolute URLs to WebKit from both DRT and QtLauncher.
2494
2495         * Api/qwebnetworkinterface.cpp:
2496         (QWebNetworkManager::started):
2497         (QWebNetworkManager::data):
2498         (QWebNetworkManager::finished):
2499         (QWebNetworkInterfacePrivate::sendFileData):
2500         (QWebNetworkInterfacePrivate::parseDataUrl):
2501         (WebCoreHttp::scheduleNextRequest):
2502         (WebCoreHttp::onSslErrors):
2503         * QtLauncher/main.cpp:
2504         (main):
2505
2506 2007-10-01  Lars Knoll  <lars@trolltech.com>
2507
2508         Reviewed by Eric.
2509
2510         Fix a wrong extension mapping in the MIMETypeRegistry and identify about: url's as frames in the FrameLoaderClient.
2511
2512         * WebCoreSupport/FrameLoaderClientQt.cpp:
2513         (WebCore::FrameLoaderClientQt::makeDocumentView):
2514         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
2515         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
2516         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
2517         (WebCore::FrameLoaderClientQt::objectContentType):
2518         (WebCore::FrameLoaderClientQt::createPlugin):
2519
2520 2007-09-30  George Staikos  <staikos@kde.org>
2521
2522         Qt build fix (OS X specific).
2523
2524         * QtLauncher/QtLauncher.pro:
2525
2526 2007-09-26  Mark Rowe  <mrowe@apple.com>
2527
2528         Qt build fix.
2529
2530         * WebCoreSupport/FrameLoaderClientQt.cpp:
2531         (WebCore::FrameLoaderClientQt::objectContentType): Check for empty URL instead of invalid URL.
2532
2533 2007-09-25  David Kilzer  <ddkilzer@webkit.org>
2534
2535         Reviewed by Adam.
2536
2537         - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
2538           LGPL'ed files contain incorrect FSF address
2539
2540         * Api/qcookiejar.cpp:
2541         * Api/qcookiejar.h:
2542         * Api/qwebframe.cpp:
2543         * Api/qwebframe.h:
2544         * Api/qwebframe_p.h:
2545         * Api/qwebhistoryinterface.cpp:
2546         * Api/qwebhistoryinterface.h:
2547         * Api/qwebkitglobal.h:
2548         * Api/qwebnetworkinterface.cpp:
2549         * Api/qwebnetworkinterface.h:
2550         * Api/qwebnetworkinterface_p.h:
2551         * Api/qwebobjectplugin.cpp:
2552         * Api/qwebobjectplugin.h:
2553         * Api/qwebobjectpluginconnector.cpp:
2554         * Api/qwebobjectpluginconnector.h:
2555         * Api/qwebpage.cpp:
2556         * Api/qwebpage.h:
2557         * Api/qwebpage_p.h:
2558         * Api/qwebpagehistory.cpp:
2559         * Api/qwebpagehistory.h:
2560         * Api/qwebsettings.cpp:
2561         * Api/qwebsettings.h:
2562         * WebCoreSupport/EditCommandQt.cpp:
2563         * WebCoreSupport/EditCommandQt.h:
2564
2565 2007-09-25  Adam Treat  <treat@kde.org>
2566
2567         Reviewed by Simon and Lars.
2568
2569         Modifies the addToJSWindowObject to bind js objects using the built-in
2570         kjs_window class.  Make sure to protect the created runtime object from
2571         garbage collection.
2572
2573         Adds a signal to QWebFrame to notify clients of the beginning of a
2574         provisional load.  DRT needs this.
2575
2576         * Api/qwebframe.cpp:
2577         (QWebFrame::addToJSWindowObject):
2578         * Api/qwebframe.h:
2579         * WebCoreSupport/FrameLoaderClientQt.cpp:
2580         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
2581
2582 2007-09-10  Qing Zhao  <qing@staikos.net>
2583
2584         Reviewed by George Staikos.
2585
2586         Don't re-encode urls, resulting in double encoding.  Fixes login to
2587         GMail.
2588
2589         * Api/qwebnetworkinterface.cpp:
2590         (QWebNetworkRequestPrivate::init):
2591         (QWebNetworkManager::started):
2592
2593 2007-09-08  Mark Rowe  <mrowe@apple.com>
2594
2595         Qt build fix.  Move stub method implementations to the right class.
2596
2597         * WebCoreSupport/FrameLoaderClientQt.cpp:
2598         (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
2599
2600 2007-09-08  Brady Eidson  <beidson@apple.com>
2601
2602         YABF (Yet Another Build Fix)
2603
2604         * Api/qwebsettings.cpp:
2605         (QWebSettings::iconDatabaseEnabled):
2606
2607 2007-09-08  Brady Eidson  <beidson@apple.com>
2608
2609         Better build fix
2610
2611         * WebCoreSupport/FrameLoaderClientQt.cpp:
2612         (WebCore::FrameLoaderClient::registerForIconNotification):
2613         * WebCoreSupport/FrameLoaderClientQt.h:
2614
2615 2007-09-08  Brady Eidson  <beidson@apple.com>
2616
2617         Build fix
2618
2619         * WebCoreSupport/FrameLoaderClientQt.cpp:
2620         (WebCore::FrameLoaderClient::registerForIconNotification):
2621         * WebCoreSupport/FrameLoaderClientQt.h:
2622
2623 2007-09-05  Geoffrey Garen  <ggaren@apple.com>
2624
2625         Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
2626         
2627         Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no 
2628         memory cache, or a very tiny one
2629         
2630         Keep the Qt build working with an empty stub.
2631         
2632         * WebCoreSupport/FrameLoaderClientQt.cpp:
2633         (WebCore::FrameLoaderClient::didPerformFirstNavigation):
2634         * WebCoreSupport/FrameLoaderClientQt.h:
2635
2636 2007-09-07  George Staikos  <staikos@kde.org>
2637
2638         Fix typo.
2639
2640         * Api/qwebpage.cpp:
2641         (QWebPage::onLoadProgressChanged):
2642
2643 2007-09-07  Qing Zhao  <qing@staikos.net>
2644
2645         Reviewed by Anders and George.
2646
2647         Export page size and load progress in bytes.
2648
2649         * Api/qwebpage.cpp:
2650         (QWebPage::QWebPage):
2651         (QWebPage::onLoadProgressChanged):
2652         (QWebPage::totalBytes):
2653         (QWebPage::bytesReceived):
2654         * Api/qwebpage.h:
2655         * Api/qwebpage_p.h:
2656
2657 2007-09-06  George Staikos  <staikos@kde.org>
2658
2659         Reviewed by Anders.
2660
2661         Make popup windows work again.
2662
2663         * WebCoreSupport/FrameLoaderClientQt.cpp:
2664         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
2665
2666 2007-09-01  Oliver Hunt  <oliver@apple.com>
2667
2668         Reviewed by Sam.
2669
2670         <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions
2671  
2672         EditorClient::setInputMethodState stub
2673
2674         * WebCoreSupport/EditorClientQt.cpp:
2675         (WebCore::EditorClientQt::setInputMethodState):
2676         * WebCoreSupport/EditorClientQt.h:
2677
2678 2007-08-30  Simon Hausmann  <hausmann@kde.org>
2679
2680         Reviewed by Zack.
2681
2682         Use QKeySequence::StandardKey for the page wise scrolling shortcuts.
2683
2684         * Api/qwebpage.cpp:
2685         (QWebPage::keyPressEvent):
2686
2687 2007-08-30  Simon Hausmann  <hausmann@kde.org>
2688
2689         Reviewed by Zack.
2690
2691         When scrolling with the keyboard don't call update() on the entire widget.
2692         The scrollbar/scrollview implementation is already smart enough to scroll with bitblt
2693         on a value change.
2694
2695         * Api/qwebpage.cpp:
2696         (QWebPage::keyPressEvent):
2697
2698 2007-08-30  Simon Hausmann  <hausmann@kde.org>
2699
2700         Reviewed by Zack.
2701
2702         Fix scrolling with the keyboard if only one of the two scrollbars is visible.
2703
2704         * Api/qwebpage.cpp:
2705         (QWebPage::keyPressEvent):
2706
2707 2007-08-29  Simon Hausmann  <hausmann@kde.org>
2708
2709         Reviewed by Zack.
2710
2711         Fix compilation.
2712
2713         * WebCoreSupport/FrameLoaderClientQt.cpp:
2714         (WebCore::FrameLoaderClientQt::objectContentType):
2715
2716 2007-08-19  Mike Hommey  <mh+webkit@glandium.org>
2717
2718         Reviewed by George Staikos.
2719
2720         Don't export ICO symbols.
2721
2722         * Plugins/Plugins.pro:
2723
2724 2007-08-19  George Staikos  <staikos@kde.org>
2725
2726         Fix compilation.
2727
2728         * WebCoreSupport/FrameLoaderClientQt.cpp:
2729         (WebCore::FrameLoaderClientQt::createPlugin):
2730         * WebCoreSupport/FrameLoaderClientQt.h:
2731
2732 2007-08-10  Lars Knoll  <lars@trolltech.com>
2733
2734         Reviewed and landed by Simon.
2735
2736         Limit the set of properties from the computed style to apply to Qt
2737         plugin widgets, as only a few of them make sense.
2738
2739         * WebCoreSupport/FrameLoaderClientQt.cpp:
2740         (WebCore::):
2741
2742 2007-08-10  Lars Knoll  <lars@trolltech.com>
2743
2744         Reviewed by Simon.
2745
2746         Use <object>'s classid attribute for creation of plugins through QWebPage::createPlugin.
2747
2748         * Api/qwebpage.cpp:
2749         (QWebPage::createPlugin):
2750         * Api/qwebpage.h:
2751         * WebCoreSupport/FrameLoaderClientQt.cpp:
2752         (WebCore::FrameLoaderClientQt::objectContentType):
2753         (WebCore::FrameLoaderClientQt::createPlugin):
2754
2755 2007-08-10  Simon Hausmann  <hausmann@kde.org>
2756
2757         Reviewed by Lars.
2758
2759         Added support for network jobs from Qt resources using the qrc protocol.
2760
2761         * Api/qwebnetworkinterface.cpp:
2762         (QWebNetworkInterface::addJob):
2763
2764 2007-08-10  Simon Hausmann  <hausmann@kde.org>
2765
2766         Reviewed by Lars.
2767
2768         Added support for "application/x-qt-styled-widget" that is treated like "application/x-qt-plugin" but also
2769         gets a Qt widget stylesheet set from the CSS computed style and the element style attribute.
2770
2771         * WebCoreSupport/FrameLoaderClientQt.cpp:
2772         (WebCore::FrameLoaderClientQt::objectContentType):
2773         (WebCore::):
2774         (WebCore::FrameLoaderClientQt::createPlugin):
2775
2776 2007-08-10  Simon Hausmann  <hausmann@kde.org>
2777
2778         Reviewed by Lars.
2779
2780         Added virtual QWebPage::createPlugin that is called for embedded objects with the mime type "application/x-qt-plugin"
2781         and fixed widget embedding by setting the right QWidget parent.
2782
2783         * Api/qwebpage.cpp:
2784         (QWebPage::createPlugin):
2785         * Api/qwebpage.h:
2786         * WebCoreSupport/FrameLoaderClientQt.cpp:
2787         (WebCore::FrameLoaderClientQt::objectContentType):
2788         (WebCore::FrameLoaderClientQt::createPlugin):
2789
2790 2007-08-02  George Staikos  <staikos@kde.org>
2791
2792         Reviewed by Simon.
2793
2794         Add an interface for the useragent string.
2795
2796         * Api/qwebpage.cpp:
2797         (QWebPage::userAgentStringForUrl):
2798         * Api/qwebpage.h:
2799         * WebCoreSupport/FrameLoaderClientQt.cpp:
2800         (WebCore::FrameLoaderClientQt::userAgent):
2801
2802 2007-08-01  Adam Treat  <treat@kde.org>
2803
2804         Reviewed by George Staikos.
2805
2806         Add an interface to manage global history for clients
2807
2808         * Api/headers.pri:
2809         * Api/qwebhistoryinterface.cpp: Added.
2810         (WebCore::historyContains):
2811         (gCleanupInterface):
2812         (QWebHistoryInterface::setDefaultInterface):
2813         (QWebHistoryInterface::defaultInterface):
2814         (QWebHistoryInterface::QWebHistoryInterface):
2815         * Api/qwebhistoryinterface.h: Added.
2816
2817 2007-07-30  Adam Treat  <treat@kde.org>
2818
2819         Fix build.
2820
2821         * WebCoreSupport/EditorClientQt.cpp:
2822         (WebCore::EditorClientQt::shouldMoveRangeAfterDelete):
2823         * WebCoreSupport/EditorClientQt.h:
2824
2825 2007-07-30  Simon Hausmann  <hausmann@kde.org>
2826
2827         Reviewed by Lars.
2828
2829         Link QtLauncher into $$OUTPUT_DIR/bin
2830
2831         * QtLauncher/QtLauncher.pro:
2832
2833 2007-07-29  Adam Treat  <treat@kde.org>
2834
2835         Reviewed by George Staikos.
2836
2837         Change QWebPage::paintEvent to draw using the individual rects provided
2838         via the QRegion and set the widget to use opaque paint events.
2839
2840         These changes greatly reduce the cpu load as we are no longer painting the
2841         entire page for each 1px scroll :P
2842
2843         * Api/qwebframe.cpp:
2844         (QWebFrame::render):
2845         * Api/qwebpage.cpp:
2846         (QWebPage::QWebPage):
2847         (QWebPage::paintEvent):
2848         * WebCoreSupport/ChromeClientQt.cpp:
2849         (WebCore::ChromeClientQt::addToDirtyRegion):
2850
2851 2007-07-29  Adam Treat  <treat@kde.org>
2852
2853         Reviewed by Alexey Proskuryakov.
2854
2855         Respect the margins when creating frames.
2856         Set the scroll mode to always off like we did before the rendered
2857         frames patch and the other ports do now.
2858
2859         * Api/qwebframe.cpp:
2860         (QWebFramePrivate::init):
2861
2862 2007-07-27  Holger Hans Peter Freyther  <zecke@selfish.org>
2863
2864         Reviewed by Mark.
2865
2866         Don't create an app bundle on OSX to keep WebKitTools/Scripts/run-launcher working.
2867
2868         * QtLauncher/QtLauncher.pro:
2869
2870 2007-07-27  Simon Hausmann  <hausmann@kde.org>
2871
2872         Reviewed by Lars.
2873
2874         Fix compilation with MSVC.
2875
2876         * Api/qwebpagehistory.cpp:
2877         (QWebPageHistory::operator=):
2878         * Api/qwebpagehistory.h:
2879         * Api/qwebsettings.cpp:
2880         (QWebSettings::operator=):
2881         * Api/qwebsettings.h:
2882
2883 2007-07-26  Qing Zhao  <qing@staikos.net>
2884
2885         Reviewed by George Staikos.
2886
2887         Add a signal for history notification.
2888
2889         * Api/qwebpage.h:
2890         * WebCoreSupport/FrameLoaderClientQt.cpp:
2891
2892 2007-07-24  Adam Treat  <treat@kde.org>
2893
2894         Reviewed by Niko and Lars.
2895
2896         These are no longer necessary or used.
2897
2898         * WebCoreSupport/FrameLoaderClientQt.cpp:
2899         * WebCoreSupport/FrameLoaderClientQt.h:
2900
2901 2007-07-20  Adam Treat  <adam@staikos.net>
2902
2903         Reviewed by George Staikos.
2904
2905         Add a signal for first layout and add the action type for the policy
2906         function.
2907
2908         * Api/qwebpage.cpp:
2909         (QWebPagePrivate::navigationRequested):
2910         (QWebPage::navigationRequested):
2911         * Api/qwebpage.h:
2912         * Api/qwebpage_p.h:
2913         * WebCoreSupport/FrameLoaderClientQt.cpp:
2914         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
2915         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2916
2917 2007-07-19  Adam Treat  <treat@kde.org>
2918
2919         Reviewed by George.
2920
2921         Do a recursive layout on the frame's children.  This fixes a
2922         segfault found when rendering some framesets.
2923
2924         * Api/qwebframe.cpp:
2925         (QWebFrame::render):
2926         (QWebFrame::layout):
2927         * Api/qwebframe.h:
2928
2929 2007-07-18  Timothy Hatcher  <timothy@apple.com>
2930
2931         Reviewed by Adam.
2932
2933         Make the Page with the now required InspectorClient.
2934
2935         * Api/qwebpage.cpp:
2936         (QWebPagePrivate::QWebPagePrivate):
2937         * WebKitPart/WebKitPart.cpp:
2938         (WebKitPart::initView):
2939
2940 2007-07-18  Sam Weinig  <sam@webkit.org>
2941
2942         Build fix.
2943
2944         * Api/qwebnetworkinterface.cpp:
2945         (QWebNetworkManager::started):
2946         * WebCoreSupport/FrameLoaderClientQt.cpp:
2947         (WebCore::FrameLoaderClientQt::canShowMIMEType):
2948         (WebCore::FrameLoaderClientQt::objectContentType):
2949
2950 2007-07-18  Lars Knoll <lars@trolltech.com>
2951
2952         Reviewed by Zack & Simon
2953
2954         Reallow setting of scrollbar policies on QWebFrame.
2955
2956         * Api/qwebframe.cpp:
2957         (QWebFrame::verticalScrollBarPolicy):
2958         (QWebFrame::setVerticalScrollBarPolicy):
2959         (QWebFrame::horizontalScrollBarPolicy):
2960         * Api/qwebframe.h:
2961
2962 2007-07-17  Adam Treat <treat@kde.org>
2963
2964         Build fix.
2965
2966         * WebCoreSupport/FrameLoaderClientQt.cpp:
2967         (WebCore::FrameLoaderClientQt::createFrame):
2968
2969 2007-07-17  Holger Hans Peter Freyther  <zecke@selfish.org>
2970
2971         Blind build fix for Qt after r24366 by adding the additional
2972         WebCore::ResourceRequest& parameter to the download method.
2973
2974         * WebCoreSupport/FrameLoaderClientQt.cpp:
2975         (WebCore::FrameLoaderClientQt::download):
2976         * WebCoreSupport/FrameLoaderClientQt.h:
2977
2978 2007-07-17  Adam Roben  <aroben@apple.com>
2979
2980         Remove ContextMenuClientQt::shouldIncludeInspectElementItem
2981
2982         Reviewed by Tim.
2983
2984         * WebCoreSupport/ContextMenuClientQt.cpp:
2985         * WebCoreSupport/ContextMenuClientQt.h:
2986
2987 2007-07-16  Adam Roben  <aroben@apple.com>
2988
2989         Updated ChromeClientQt for ChromeClient changes.
2990
2991         Reviewed by Darin.
2992
2993         * WebCoreSupport/ChromeClientQt.cpp:
2994         (WebCore::ChromeClientQt::print): Added a Frame* parameter.
2995         * WebCoreSupport/ChromeClientQt.h: Ditto.
2996
2997 2007-07-13  Mark Rowe  <mrowe@apple.com>
2998
2999         Reviewed by Mitz.
3000
3001         Build fix.  Stub out ChromeClientQt::print.
3002
3003         * WebCoreSupport/ChromeClientQt.cpp:
3004         (WebCore::ChromeClientQt::print):
3005         * WebCoreSupport/ChromeClientQt.h:
3006
3007 2007-07-12  George Staikos  <staikos@kde.org>
3008
3009         Qt build fix for assertions.
3010
3011         * Api/qwebnetworkinterface.cpp:
3012         (QWebNetworkManager::add):
3013
3014 2007-07-12  George Staikos  <staikos@kde.org>
3015
3016         Qt build fix.
3017
3018         * Api/qwebnetworkinterface.cpp:
3019         (QWebNetworkManager::add):
3020
3021 2007-07-10  Mark Rowe  <mrowe@apple.com>
3022
3023         Qt build fix after r24126.
3024
3025         * Api/qwebframe.cpp:
3026         (QWebFrame::evaluateJavaScript):
3027
3028 2007-07-10  Eli Fidler  <eli@staikos.net>
3029
3030         Reviewed by George Staikos.
3031
3032         Properly url-decode data urls.
3033
3034         * Api/qwebnetworkinterface.cpp:
3035         (QWebNetworkInterfacePrivate::parseDataUrl):
3036
3037 2007-07-09  Adam Treat  <adam@staikos.net>
3038
3039         Reviewed by George Staikos.
3040
3041         Convert QWebFrame from a QFrame to a pure QObject to eliminate all
3042         traces of widgets.
3043
3044         * Api/qwebframe.cpp:
3045         (QWebFramePrivate::init):
3046         (QWebFramePrivate::parentFrame):
3047         (QWebFrame::QWebFrame):
3048         (QWebFrame::render):
3049         (QWebFrame::pos):
3050         (QWebFrame::geometry):
3051         (QWebFrame::evaluateJavaScript):
3052         (QWebFrame::mouseMoveEvent):
3053         (QWebFrame::mousePressEvent):
3054         (QWebFrame::mouseDoubleClickEvent):
3055         (QWebFrame::mouseReleaseEvent):
3056         (QWebFrame::wheelEvent):
3057         * Api/qwebframe.h:
3058         * Api/qwebobjectpluginconnector.cpp:
3059         (QWebObjectPluginConnector::pluginParentWidget):
3060         * Api/qwebpage.cpp:
3061         (QWebPagePrivate::QWebPagePrivate):
3062         (QWebPagePrivate::createMainFrame):
3063         (QWebPage::QWebPage):
3064         (QWebPage::javaScriptAlert):
3065         (QWebPage::javaScriptConfirm):
3066         (QWebPage::javaScriptPrompt):
3067         (QWebPage::resizeEvent):
3068         (QWebPage::paintEvent):
3069         (QWebPage::mouseMoveEvent):
3070         (QWebPage::mousePressEvent):
3071         (QWebPage::mouseDoubleClickEvent):
3072         (QWebPage::mouseReleaseEvent):
3073         (QWebPage::wheelEvent):
3074         (QWebPage::keyPressEvent):
3075         (QWebPage::keyReleaseEvent):
3076         (QWebPage::focusInEvent):
3077         (QWebPage::focusOutEvent):
3078         (QWebPage::focusNextPrevChild):
3079         (QWebPage::chooseFile):
3080         * Api/qwebpage.h:
3081         * Api/qwebpage_p.h:
3082         * WebCoreSupport/ChromeClientQt.cpp:
3083         (WebCore::ChromeClientQt::addToDirtyRegion):
3084
3085 2007-07-09  George Staikos  <staikos@kde.org>
3086
3087         Fix a minor memory leak in the loader.
3088
3089         * Api/qwebnetworkinterface.cpp:
3090         (gCleanupInterface):
3091         (QWebNetworkInterface::setDefaultInterface):
3092         (QWebNetworkInterface::defaultInterface):
3093
3094 2007-07-09  George Staikos  <staikos@kde.org>
3095
3096         Fix a massive memory leak in the loader.
3097
3098         * Api/qwebnetworkinterface.cpp:
3099         (QWebNetworkManager::httpConnectionClosed):
3100         (WebCoreHttp::~WebCoreHttp):
3101
3102 2007-07-09  George Staikos  <staikos@kde.org>
3103
3104         Reviewed by Simon.
3105
3106         Rework much of the HTTP stuff to make it more stable, and add SSL and
3107         proxy support.  Major memory leak also discovered but it needs more
3108         research as the obvious fix causes crashes.
3109
3110         * Api/qwebnetworkinterface.cpp:
3111         (QWebNetworkManager::add):
3112         (QWebNetworkManager::started):
3113         (QWebNetworkManager::data):
3114         (WebCoreHttp::WebCoreHttp):
3115         (WebCoreHttp::~WebCoreHttp):
3116         (WebCoreHttp::request):
3117         (WebCoreHttp::scheduleNextRequest):
3118         (WebCoreHttp::getConnection):
3119         (WebCoreHttp::onResponseHeaderReceived):
3120         (WebCoreHttp::onReadyRead):
3121         (WebCoreHttp::onRequestFinished):
3122         (WebCoreHttp::onDone):
3123         (WebCoreHttp::onStateChanged):
3124         (WebCoreHttp::onSslErrors):
3125         (WebCoreHttp::onAuthenticationRequired):
3126         (WebCoreHttp::onProxyAuthenticationRequired):
3127         * Api/qwebnetworkinterface.h:
3128         * Api/qwebnetworkinterface_p.h:
3129         (WebCore::WebCoreHttp::HttpConnection::HttpConnection):
3130
3131 2007-07-06  Adam Treat  <adam@staikos.net>
3132
3133         Reviewed by George Staikos.
3134
3135         Convert QWebFrame to a QFrame from a scroll area.
3136
3137         * Api/qwebframe.cpp:
3138         (QWebFramePrivate::init):
3139         (QWebFramePrivate::parentFrame):
3140         (QWebFramePrivate::horizontalScrollBar):
3141         (QWebFramePrivate::verticalScrollBar):
3142         (QWebFrame::QWebFrame):
3143         (QWebFrame::resizeEvent):
3144         (QWebFrame::suppressScrollbars):
3145         (QWebFrame::paintEvent):
3146         (QWebFrame::mouseMoveEvent):
3147         (QWebFrame::mousePressEvent):
3148         (QWebFrame::mouseDoubleClickEvent):
3149         (QWebFrame::mouseReleaseEvent):
3150         (QWebFrame::wheelEvent):
3151         (QWebFrame::keyPressEvent):
3152         (QWebFrame::focusInEvent):
3153         (QWebFrame::focusOutEvent):
3154         (QWebFrame::evaluateJavaScript):
3155         * Api/qwebframe.h:
3156         * Api/qwebframe_p.h:
3157         * Api/qwebobjectpluginconnector.cpp:
3158         (QWebObjectPluginConnector::pluginParentWidget):
3159
3160 2007-07-04  Adam Roben  <aroben@apple.com>
3161
3162         Added a stub for ChromeClientQt::setToolTip
3163
3164         Reviewed by Sam.
3165
3166         * WebCoreSupport/ChromeClientQt.cpp:
3167         (WebCore::ChromeClientQt::setToolTip):
3168         * WebCoreSupport/ChromeClientQt.h:
3169
3170 2007-07-04  Adam Roben  <aroben@apple.com>
3171
3172         Added a stub for ChromeClientQt::mouseDidMoveOverElement
3173
3174         Reviewed by Sam.
3175
3176         * WebCoreSupport/ChromeClientQt.cpp:
3177         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3178         * WebCoreSupport/ChromeClientQt.h:
3179
3180 2007-06-28  Simon Hausmann  <hausmann@kde.org>
3181
3182         Reviewed by Zack.
3183
3184         Propagate mouse double click events from Qt to WebCore.
3185
3186         * Api/qwebframe.cpp:
3187         (QWebFrame::mouseDoubleClickEvent):
3188         * Api/qwebframe.h:
3189
3190 2007-06-28  Simon Hausmann  <hausmann@kde.org>
3191
3192         Reviewed by Zack.
3193
3194         Implemented clipboard functions in QWebPage, in particular can(Cut|Copy|Paste), cut/copy/paste as slot as well as a selectionChanged() signal.
3195
3196         * Api/qwebpage.cpp:
3197         (QWebPage::canCut):
3198         (QWebPage::canCopy):
3199         (QWebPage::canPaste):
3200         (QWebPage::cut):
3201         (QWebPage::copy):
3202         (QWebPage::paste):
3203         * Api/qwebpage.h:
3204         * WebCoreSupport/EditorClientQt.cpp:
3205
3206 2007-06-27  George Staikos  <staikos@kde.org>
3207
3208         Compile with various Qt configurations.
3209
3210         * Api/qwebnetworkinterface.cpp:
3211         (WebCoreHttp::scheduleNextRequest):
3212         * Api/qwebpage.cpp:
3213         (QWebPage::javaScriptPrompt):
3214         (QWebPage::dragEnterEvent):
3215         (QWebPage::dragLeaveEvent):
3216         (QWebPage::dragMoveEvent):
3217         (QWebPage::dropEvent):
3218         (QWebPage::chooseFile):
3219         * Api/qwebpage.h:
3220         * Api/qwebpage_p.h:
3221         * WebCoreSupport/DragClientQt.cpp:
3222         (WebCore::DragClientQt::startDrag):
3223
3224 2007-06-27  Eli Fidler  <eli@staikos.net>
3225
3226         Reviewed by George Staikos.
3227
3228         Check for QT_NO_IMAGE_TEXT and compile either way.
3229
3230         * Plugins/ICOHandler.cpp:
3231         (ICOHandler::read):
3232
3233 2007-06-27  Eli Fidler  <eli@staikos.net>
3234
3235         Reviewed by George Staikos.
3236
3237         Remove QT3_SUPPORT dependency in the ICO plugin.
3238
3239         * Plugins/ICOHandler.cpp:
3240         (IcoHeader::loadFromDIB):
3241
3242 2007-06-25  George Staikos  <staikos@kde.org>
3243
3244         Reviewed by Zack.
3245
3246         Start to add proxy and SSL support to WebKit Qt.  Proxy works
3247         unauthenticated.  Added hooks to be able to add authentication.
3248         Also fixes some network errors.
3249
3250         * Api/qwebnetworkinterface.cpp:
3251         (QWebNetworkRequestPrivate::setURL):
3252         (QWebNetworkJob::frame):
3253         (WebCoreHttp::WebCoreHttp):
3254         (WebCoreHttp::scheduleNextRequest):
3255         (WebCoreHttp::onRequestFinished):
3256         (WebCoreHttp::onDone):
3257         (WebCoreHttp::onSslErrors):
3258         (WebCoreHttp::onAuthenticationRequired):
3259         (WebCoreHttp::onProxyAuthenticationRequired):
3260         * Api/qwebnetworkinterface.h:
3261         * Api/qwebnetworkinterface_p.h:
3262         * Api/qwebpage.cpp:
3263         (QWebPage::setNetworkProxy):
3264         (QWebPage::networkProxy):
3265         * Api/qwebpage.h:
3266         * Api/qwebpage_p.h:
3267
3268 2007-06-21  Adam Treat  <adam@staikos.net>
3269
3270         Reviewed by George Staikos.
3271
3272         Implement the default resources on Qt.
3273
3274         * Api/qwebpage.cpp:
3275         (QWebPage::icon):
3276         * Api/qwebsettings.cpp:
3277         (QWebSettings::setWebGraphic):
3278         (QWebSettings::webGraphic):
3279         (loadResourcePixmap):
3280         * Api/qwebsettings.h:
3281
3282 2007-06-15  Adam Treat  <adam@staikos.net>
3283
3284         Reviewed by George Staikos.
3285
3286         Add ICO support to the Qt build.
3287
3288         * Api/qwebpage.cpp:
3289         (QWebPage::icon):
3290         * Api/qwebpage.h:
3291         * Api/qwebsettings.cpp:
3292         (QWebSettings::setIconDatabaseEnabled):
3293         (QWebSettings::iconDatabaseEnabled):
3294         * Api/qwebsettings.h:
3295         * Plugins: Added.
3296         * Plugins/ICOHandler.cpp: Added.
3297         (IcoHeader::operator >>):
3298         (IcoHeader::BMP_INFOHDR::):
3299         (IcoHeader::operator<<):
3300         (IcoHeader::LessDifference::LessDifference):
3301         (IcoHeader::LessDifference::operator ()):
3302         (IcoHeader::loadFromDIB):
3303         (ICOHandler::ICOHandler):
3304         (ICOHandler::canRead):
3305         (ICOHandler::read):
3306         (ICOHandler::write):
3307         (ICOHandler::name):
3308         (ICOPlugin::keys):
3309         (ICOPlugin::capabilities):
3310         (ICOPlugin::create):
3311         * Plugins/ICOHandler.h: Added.
3312         * Plugins/Plugins.pro: Added.
3313         * WebCoreSupport/FrameLoaderClientQt.cpp:
3314         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
3315
3316 2007-06-15  George Staikos  <staikos@kde.org>
3317
3318         Fixing the Qt build.
3319
3320         * WebCoreSupport/ContextMenuClientQt.cpp:
3321         (WebCore::ContextMenuClientQt::shouldIncludeInspectElementItem):
3322         * WebCoreSupport/ContextMenuClientQt.h:
3323
3324 2007-06-20  Adam Roben  <aroben@apple.com>
3325
3326         More speculative Qt build fixes.
3327
3328         Add a stub implementation of InspectorClientQt.
3329
3330         * WebCoreSupport/InspectorClientQt.cpp: Added.
3331         (WebCore::InspectorClientQt::inspectorDestroyed):
3332         (WebCore::InspectorClientQt::createPage):
3333         (WebCore::InspectorClientQt::showWindow):
3334         (WebCore::InspectorClientQt::closeWindow):
3335         (WebCore::InspectorClientQt::attachWindow):
3336         (WebCore::InspectorClientQt::detachWindow):
3337         (WebCore::InspectorClientQt::highlight):
3338         (WebCore::InspectorClientQt::hideHighlight):
3339         * WebCoreSupport/InspectorClientQt.h: Added.
3340
3341 2007-06-19  George Staikos  <staikos@kde.org>
3342
3343         Reviewed by Tim Hatcher.
3344
3345         Add https support.
3346
3347         * Api/qwebnetworkinterface.cpp:
3348         (QWebNetworkInterface::addJob):
3349         (QWebNetworkInterface::cancelJob):
3350         (WebCoreHttp::WebCoreHttp):
3351
3352 2007-06-14  George Staikos  <staikos@kde.org>
3353
3354         Reviewed by Lars.
3355
3356         Add evaluateJavaScript() method.
3357
3358         * Api/qwebframe.cpp:
3359         (QWebFrame::evaluateJavaScript):
3360         * Api/qwebframe.h:
3361
3362 2007-06-14  George Staikos  <staikos@kde.org>
3363
3364         Reviewed by Lars.
3365
3366         Implement most of the editing commands, better focus handling, fix some
3367         keyboard and mouse handling, and add keyboard navigation.  May be
3368         refactored later as the key switches are ugly.
3369
3370         * Api/qwebframe.cpp:
3371         (QWebFramePrivate::init):
3372         (QWebFrame::mousePressEvent):
3373         (QWebFrame::mouseReleaseEvent):
3374         (QWebFrame::wheelEvent):
3375         (QWebFrame::keyPressEvent):
3376         (QWebFrame::keyReleaseEvent):
3377         (QWebFrame::focusInEvent):
3378         (QWebFrame::focusOutEvent):
3379         (QWebFrame::focusNextPrevChild):
3380         * Api/qwebframe.h:
3381         * Api/qwebframe_p.h:
3382         * WebCoreSupport/EditorClientQt.cpp:
3383         (WebCore::EditorClientQt::handleKeypress):
3384
3385 2007-06-14  George Staikos  <staikos@kde.org>
3386
3387         Reviewed by Lars.
3388
3389         Implement all of the Javascript dialogs and file chooser.
3390         Also makes the statusbar virtual into a signal and shuffles some
3391         virtuals around a bit.  The helper in FrameLoaderClientQt may go away
3392         shortly.
3393
3394         * Api/qwebpage.cpp:
3395         (QWebPagePrivate::QWebPagePrivate):
3396         (QWebPage::javaScriptAlert):
3397         (QWebPage::javaScriptConfirm):
3398         (QWebPage::javaScriptPrompt):
3399         (QWebPage::chooseFile):
3400         * Api/qwebpage.h:
3401         * WebCoreSupport/ChromeClientQt.cpp:
3402         (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
3403         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
3404         (WebCore::ChromeClientQt::runJavaScriptAlert):
3405         (WebCore::ChromeClientQt::runJavaScriptConfirm):
3406         (WebCore::ChromeClientQt::runJavaScriptPrompt):
3407         (WebCore::ChromeClientQt::setStatusbarText):
3408         * WebCoreSupport/FrameLoaderClientQt.cpp:
3409         (WebCore::FrameLoaderClientQt::chooseFile):
3410         * WebCoreSupport/FrameLoaderClientQt.h:
3411
3412 2007-06-14  Simon Hausmann  <hausmann@kde.org>
3413
3414         Reviewed by Zack.
3415
3416         Removed QWebHistoryItem::parent() as it is not implemented and WebCore's
3417
3418         HistoryItem itself doesn't seem to have a parent pointer either.
3419
3420         * Api/qwebpagehistory.h:
3421
3422 2007-06-14  Simon Hausmann  <hausmann@kde.org>
3423
3424         Reviewed by Zack.
3425
3426         Make it possible to copy QWebHistoryItem objects.
3427
3428         * Api/qwebpagehistory.cpp:
3429         * Api/qwebpagehistory.h:
3430
3431 2007-06-14  Lars Knoll <lars@trolltech.com>
3432
3433         Reviewed by George
3434
3435         Fix a crash when a request from the plugin resulted
3436         in a HTTP redirect.
3437
3438         * Api/qwebnetworkinterface.cpp:
3439         (QWebNetworkManager::started):
3440
3441 2007-06-14  Lars Knoll <lars@trolltech.com>
3442
3443         Reviewed by George.
3444
3445         Work around a bug in Qt's QHttp implementation and
3446         get web pages to load again.
3447
3448         * Api/qwebpage.cpp:
3449         (QWebPage::open):
3450
3451 2007-06-13  Simon Hausmann  <hausmann@kde.org>
3452
3453         Reviewed by Lars.
3454
3455         Added a make install target that installs the Qt port and renamed
3456         WebKitQt to QtWebKit
3457
3458         * Api/headers.pri: Added.
3459         * Api/qtwebkit.prf: Added.
3460
3461 2007-06-13  Simon Hausmann  <hausmann@kde.org>
3462
3463         Reviewed by Lars.
3464
3465         Added httpHeaderField setter/getter to QWebNetworkRequest for convenience.
3466
3467         * Api/qwebnetworkinterface.cpp:
3468         * Api/qwebnetworkinterface.h:
3469
3470 2007-06-13  Simon Hausmann  <hausmann@kde.org>
3471
3472         Reviewed by Lars.
3473
3474         Changed QWebObjectPluginConnector::requestUrl to take a QWebNetworkRequest as argument.
3475
3476         * Api/qwebnetworkinterface.h:
3477         * Api/qwebobjectpluginconnector.cpp:
3478         (QWebObjectPluginConnector::requestUrl):
3479         * Api/qwebobjectpluginconnector.h:
3480
3481 2007-06-13  Simon Hausmann  <hausmann@kde.org>
3482
3483         Reviewed by Lars.
3484
3485         Added a QWebNetworkRequest convenience constructor.
3486
3487         * Api/qwebnetworkinterface.cpp:
3488         * Api/qwebnetworkinterface.h:
3489         * Api/qwebpage.cpp:
3490         (QWebPage::open):
3491
3492 2007-06-13  Simon Hausmann  <hausmann@kde.org>
3493
3494         Reviewed by Lars.
3495
3496         Changed the QWebPage::open(const QUrl &url, const QHttpRequestHeader &httpHeader, const QByteArray &postData)
3497         overload to take a QWebNetworkRequest instead.
3498
3499         * Api/qwebpage.cpp:
3500         (QWebPage::open):
3501         * Api/qwebpage.h:
3502
3503 2007-06-13  Simon Hausmann  <hausmann@kde.org>
3504
3505         Reviewed by Lars.
3506
3507         In QWebPage::open(const QUrl &, const QHttpRequestHeader &, ...) don't make the population
3508         of the WebCore::ResourceRequest depend on the validity of the QHttpRequestHeader but just
3509         pick the individual fields if we can use them.
3510
3511         * Api/qwebpage.cpp:
3512         (QWebPage::open):
3513
3514 2007-06-13  Simon Hausmann  <hausmann@kde.org>
3515
3516         Reviewed by Lars.
3517
3518         Minor QWebNetworkRequet API fixlet
3519
3520         * Api/qwebnetworkinterface.cpp:
3521         * Api/qwebnetworkinterface.h:
3522
3523 2007-06-13  Simon Hausmann  <hausmann@kde.org>
3524
3525         Reviewed by Lars.
3526
3527         Use QWebNetworkRequest for QWebPage::navigationRequested.
3528
3529         * Api/qwebnetworkinterface.cpp:
3530         * Api/qwebnetworkinterface.h:
3531         * Api/qwebpage.cpp:
3532         (QWebPagePrivate::navigationRequested):
3533         (QWebPage::navigationRequested):
3534         * Api/qwebpage.h:
3535         * Api/qwebpage_p.h:
3536         * WebCoreSupport/FrameLoaderClientQt.cpp:
3537         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3538
3539 2007-06-13  Simon Hausmann  <hausmann@kde.org>
3540
3541         Reviewed by Lars.
3542
3543         Some docs for QWebNetworkRequest
3544
3545         * Api/qwebnetworkinterface.cpp:
3546         (QWebNetworkRequest::QWebNetworkRequest):
3547         (QWebNetworkRequest::~QWebNetworkRequest):
3548
3549 2007-06-13  Simon Hausmann  <hausmann@kde.org>
3550
3551         Reviewed by Lars.
3552
3553         Moved QWebNetworkJob::Method enum into QWebNetworkRequest.
3554
3555         * Api/qwebnetworkinterface.h:
3556         * Api/qwebobjectpluginconnector.cpp:
3557         (QWebObjectPluginConnector::requestUrl):
3558         * Api/qwebobjectpluginconnector.h:
3559
3560 2007-06-13  Simon Hausmann  <hausmann@kde.org>
3561
3562         Reviewed by Lars.
3563
3564         Rename QWebNetworkJob::request() into QWebNetworkJob::httpHeader() and added
3565
3566         * Api/qwebnetworkinterface.cpp:
3567         (QWebNetworkJob::postData):
3568         (WebCoreHttp::WebCoreHttp):
3569         (WebCoreHttp::scheduleNextRequest):
3570         * Api/qwebnetworkinterface.h:
3571
3572 2007-06-13  Simon Hausmann  <hausmann@kde.org>
3573
3574         Reviewed by Lars.
3575
3576         Introduce QWebNetworkRequest in the public API.
3577
3578         * Api/qwebnetworkinterface.cpp:
3579         (QWebNetworkRequestPrivate::init):
3580         * Api/qwebnetworkinterface.h:
3581         * Api/qwebnetworkinterface_p.h:
3582         * WebCoreSupport/FrameLoaderClientQt.cpp:
3583         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3584
3585 2007-06-13  Simon Hausmann  <hausmann@kde.org>
3586
3587         Reviewed by Lars.
3588
3589         Changed QWebNetworkJobPrivate to aggregate a QWebNetworkRequest instead of inheriting from it.
3590
3591         * Api/qwebnetworkinterface.cpp:
3592         (QWebNetworkManager::add):
3593         (QWebNetworkManager::started):
3594         (QWebNetworkManager::data):
3595         (QWebNetworkManager::finished):
3596         * Api/qwebnetworkinterface_p.h:
3597         * Api/qwebobjectpluginconnector.cpp:
3598         (QWebObjectPluginConnector::requestUrl):
3599
3600 2007-06-13  Simon Hausmann  <hausmann@kde.org>
3601
3602         Reviewed by Lars.
3603
3604         Rename QWebNetworkRequest::request into QWebNetworkRequest::httpHeader.
3605
3606         * Api/qwebnetworkinterface.cpp:
3607         (QWebNetworkRequest::init):
3608         (QWebNetworkRequest::setURL):
3609         (QWebNetworkManager::add):
3610         (QWebNetworkManager::started):
3611         * Api/qwebnetworkinterface_p.h:
3612         * WebCoreSupport/FrameLoaderClientQt.cpp:
3613         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3614
3615 2007-06-12  Lars Knoll <lars@trolltech.com>
3616
3617         Reviewed by George Staikos.
3618
3619         Remove duplicate symbols.
3620
3621         * Api/qwebobjectplugin_p.h:
3622
3623 2007-06-13  Lars Knoll <lars@trolltech.com>
3624
3625         Reviewed by Niko.
3626
3627         Fix compilation, and remove dependency on Qt
3628         private header.
3629
3630         * Api/qwebobjectplugin_p.h:
3631         (QWebFactoryLoader::supportsMimeType):
3632
3633 2007-06-13  Lars Knoll <lars@trolltech.com>
3634
3635         Reviewed by Niko.
3636
3637         Parts of the patch done by Zack.
3638         Fix up some parts in the implementation of QWebNetworkInterface
3639         so it can be used by plugins.
3640         Change the plugin API so we can actually get all the information
3641         required by the JS bridge from them as well.
3642
3643         * Api/qwebnetworkinterface.cpp:
3644         (QWebNetworkJob::cancelled):
3645         (QWebNetworkManager::cancel):
3646         (QWebNetworkManager::started):
3647         (QWebNetworkManager::finished):
3648         * Api/qwebobjectplugin.cpp:
3649         (QWebFactoryLoader::QWebFactoryLoader):
3650         (QWebFactoryLoader::descriptionForName):
3651         (QWebFactoryLoader::mimetypesForName):
3652         (QWebFactoryLoader::mimeTypeForExtension):
3653         (QWebFactoryLoader::extensions):
3654         (QWebFactoryLoader::nameForMimetype):
3655         (QWebFactoryLoader::create):
3656         (QWebObjectPlugin::descriptionForKey):
3657         (QWebObjectPlugin::mimetypesForKey):
3658         * Api/qwebobjectplugin.h:
3659         * Api/qwebobjectplugin_p.h:
3660         (QWebFactoryLoader::names):
3661         * Api/qwebobjectpluginconnector.cpp:
3662         (QWebObjectPluginConnector::requestUrl):
3663         * Api/qwebpage.cpp:
3664         (QWebPage::networkInterface):
3665
3666 2007-06-11  Simon Hausmann  <hausmann@kde.org>
3667
3668         Reviewed by Lars.
3669
3670         Added a QWebPage::open overload to allow specifying the http header and post data.
3671         (it's an overload instead of a merged openUrl to avoid including qhttp.h in qwebpage.h,
3672         which would imply that one has to have QT += network in the .pro file for using WebKitQt)
3673
3674         * Api/qwebpage.cpp:
3675         * Api/qwebpage.h:
3676
3677 2007-06-11  Simon Hausmann  <hausmann@kde.org>
3678
3679         Reviewed by Lars.
3680
3681         Added the possibility to intercept url requests through QWebPage::navigationRequested.
3682
3683         * Api/qwebpage.cpp:
3684         (QWebPagePrivate::QWebPagePrivate):
3685         (QWebPage::createFrame):
3686         * Api/qwebpage.h:
3687         * Api/qwebpage_p.h:
3688         * WebCoreSupport/FrameLoaderClientQt.cpp:
3689
3690 2007-06-11  Simon Hausmann  <hausmann@kde.org>
3691
3692         Reviewed by Lars.
3693
3694         Added a QWebNetworkRequest::init overload that takes a WebCore::ResourceRequest,
3695         to be called from FrameLoaderClientQt in the near future.
3696
3697         * Api/qwebnetworkinterface.cpp:
3698         (QWebNetworkManager::add):
3699         * Api/qwebnetworkinterface_p.h:
3700
3701 2007-06-11  Simon Hausmann  <hausmann@kde.org>
3702
3703         Reviewed by Lars.
3704
3705         Moved the postData setup into QWebNetworkRequest::init.
3706
3707         * Api/qwebnetworkinterface.cpp:
3708         (QWebNetworkRequest::init):
3709         (QWebNetworkManager::add):
3710
3711 2007-06-11  Simon Hausmann  <hausmann@kde.org>