Reviewed by Sam.
[WebKit-https.git] / WebKit / gtk / ChangeLog
1 2007-11-13  Mark Rowe  <mrowe@apple.com>
2
3         Gtk build fix. Replace incorrect use of the LOG macro with g_print.
4
5         * Api/webkitgtkpage.cpp:
6
7 2007-11-13  Christian Dywan  <christian@twotoasts.de>
8
9         Reviewed by Alp.
10
11         http://bugs.webkit.org/show_bug.cgi?id=15891
12         [GTK] Javascript console and dialogs are not implemented
13
14         Implement signals for script dialogs and console messages.
15
16         * Api/webkitgtk-marshal.list:
17         * Api/webkitgtkpage.cpp:
18         * Api/webkitgtkpage.h:
19         * WebCoreSupport/ChromeClientGtk.cpp:
20         (WebKit::ChromeClient::addMessageToConsole):
21         (WebKit::ChromeClient::runJavaScriptAlert):
22         (WebKit::ChromeClient::runJavaScriptConfirm):
23         (WebKit::ChromeClient::runJavaScriptPrompt):
24
25 2007-11-11  Alp Toker  <alp@atoker.com>
26
27         Reviewed by Anders.
28
29         Initialize m_userAgent.
30
31         Fix typos in GDK_WINDOWING conditionals.
32
33         * WebCoreSupport/FrameLoaderClientGtk.cpp:
34         (WebKit::FrameLoaderClient::FrameLoaderClient):
35         (WebKit::agentPlatform):
36
37 2007-11-11  Alp Toker  <alp@atoker.com>
38
39         Reviewed by Mark Rowe.
40
41         Mention Safari in the UserAgent string to improve site compatibility.
42
43         Also bump the hard-coded AppleWebKit version number.
44
45         * WebCoreSupport/FrameLoaderClientGtk.cpp:
46         (WebKit::composeUserAgent):
47
48 2007-11-09  Xan Lopez  <xan@gnome.org>
49
50         Reviewed by Alp.
51
52         Fix http://bugs.webkit.org/show_bug.cgi?id=15926
53         [GTK] WebKitPage map handler is redundant.
54
55         * Api/webkitgtkpage.cpp:
56         The map handler for WebKitPage is redundant, GtkContainer does
57         the same (and more correctly).
58
59 2007-11-08  Alp Toker  <alp@atoker.com>
60
61         Reviewed by Mark Rowe.
62
63         http://bugs.webkit.org/show_bug.cgi?id=15653
64         [GTK] Text editor does not handle common keystrokes
65
66         Handle more keystrokes in EditorClientGtk. Note that this is a
67         temporary measure pending a proper solution using GtkBindingSet (see
68         http://bugs.webkit.org/show_bug.cgi?id=15911).
69
70         * WebCoreSupport/EditorClientGtk.cpp:
71         (WebKit::EditorClient::handleKeypress):
72
73 2007-11-08  Kevin McCullough  <kmccullough@apple.com>
74
75         Reviewed by Sam.
76
77         - windowObjectCleared() is no longer const.  It needs to setup the
78         script debugger and cannot be const to do so.
79
80         * WebCoreSupport/FrameLoaderClientGtk.cpp:
81         (WebKit::FrameLoaderClient::windowObjectCleared):
82         * WebCoreSupport/FrameLoaderClientGtk.h:
83
84 2007-11-06  Rodney Dawes  <dobey@wayofthemonkey.com>
85
86         Fix http://bugs.webkit.org/attachment.cgi?id=17043&action=view
87         Bug 15766: [GTK] WebKit sometimes spews binary data as text/plain into iframes
88
89         FrameLoaderClient::objectContentType needs to check with the MIMETypeRegistry
90         to determine whether the given MIME type is displayable as an image or non-image.
91
92         * WebCoreSupport/FrameLoaderClientGtk.cpp:
93         (FrameLoaderClient::objectContentType): Change logic to match that in
94         the Windows and Mac ports.
95
96 2007-11-05  Christian Dywan  <christian@twotoasts.de>
97
98         Reviewed by Maciej.
99
100         http://bugs.webkit.org/show_bug.cgi?id=15409
101         FrameLoaderClientGtk hardcodes data, including platform to Linux i686
102
103         Compute a proper user agent string.
104
105         Patch includes fixes by Alp.
106
107         * WebCoreSupport/FrameLoaderClientGtk.cpp:
108         (WebKit::agentPlatform):
109         (WebKit::agentOS):
110         (WebKit::composeUserAgent):
111         (WebKit::FrameLoaderClient::userAgent):
112         * WebCoreSupport/FrameLoaderClientGtk.h:
113
114 2007-11-05  Mark Rowe  <mrowe@apple.com>
115
116         Rubber-stamped by Alp Toker.
117
118         Remove unused m_firstData member from FrameLoaderClientGtk.
119
120         * WebCoreSupport/FrameLoaderClientGtk.cpp:
121         * WebCoreSupport/FrameLoaderClientGtk.h:
122
123 2007-11-05  Mark Rowe  <mrowe@apple.com>
124
125         Reviewed by Alp Toker.
126
127         Fix http://bugs.webkit.org/show_bug.cgi?id=15842
128         Bug 15842: [Gtk] about:blank doesn't work
129
130         * WebCoreSupport/FrameLoaderClientGtk.cpp:
131         (WebKit::FrameLoaderClient::finishedLoading): Set the encoding on the frame loader to
132         get work done that is normally done when the first bit of data is received, even in the
133         case of a document with no data (like about:blank).
134
135 2007-11-03  Alp Toker  <alp@atoker.com>
136
137         Reviewed by Mark Rowe.
138
139         Restore correct double and triple click behaviour
140
141         We ended up ignoring GDK_2BUTTON_PRESS and GDK_3BUTTON_PRESS after
142         recent refactoring.
143
144         * Api/webkitgtkpage.cpp:
145
146 2007-11-03  Alp Toker  <alp@atoker.com>
147
148         Reviewed by Mark Rowe.
149
150         Frame scrolling and invalidation fixes
151
152         Make upward scroll events have a positive delta to match other ports.
153
154         Fix the invalidation rect offset for frames so that scrolling works properly.
155
156         Avoid allocating negative sizes to widgets to avoid GTK+ warnings.
157
158         Allow tabbing to all widgets and links.
159
160         Fix event returns, improving the focus situation and correcting scroll wheel
161         behavior.
162
163         * Api/webkitgtkpage.cpp:
164         * WebCoreSupport/ChromeClientGtk.cpp:
165
166 2007-10-29  Alp Toker  <alp@atoker.com>
167
168         Reviewed by Maciej.
169
170         Do not allow control to reach end of non-void functions
171
172         * Api/webkitgtksettings.cpp:
173
174 2007-10-28  Lars Lindner  <lars.lindner@gmail.com>
175
176         Reviewed by Alp.
177
178         http://bugs.webkit.org/show_bug.cgi?id=15466
179         [gtk] widget does not take focus on mouse click
180
181         Grab widget focus in mouse press callback.
182
183         * Api/webkitgtkpage.cpp:
184
185 2007-10-25  Alp Toker  <alp@atoker.com>
186
187         Reviewed by Brady.
188
189         http://bugs.webkit.org/show_bug.cgi?id=15686
190         GtkLauncher aborts on launch due to uninitialized threading subsystem
191
192         Re-enable database support in the GTK+ port, with a fix.
193
194         Initialize GLib threading as early as possible.
195
196         * Api/webkitgtkglobal.cpp:
197
198 2007-10-25  Alp Toker  <alp@atoker.com>
199
200         Unreviewed fix to make the GTK+ port run.
201
202         http://bugs.webkit.org/show_bug.cgi?id=15686
203         GtkLauncher aborts on launch due to uninitialized threading subsystem
204
205         http://bugs.webkit.org/show_bug.cgi?id=15688
206         [GTK] Make it possible to disable database support
207
208         Make database path initialization conditional on database support
209         being enabled.
210
211         * Api/webkitgtkglobal.cpp:
212
213 2007-10-24  Mark Rowe  <mrowe@apple.com>
214
215         Gtk build fix.  Track WebCore changes in r27004.
216
217         * Api/webkitgtkglobal.cpp:
218
219 2007-10-22  Alp Toker  <alp@atoker.com>
220
221         Reviewed by Mark Rowe.
222
223         http://bugs.webkit.org/show_bug.cgi?id=15611
224         [GTK] Text selection behaviour different in Debug and Release builds
225
226         http://bugs.webkit.org/show_bug.cgi?id=15578
227         [GTK] Text editor caret does not blink
228
229         Never allow control to reach the end of non-void functions.
230
231         Return more sensible values, or in some cases, nulls.
232
233         * Api/webkitgtksettings.cpp:
234         * Api/webkitgtksettings.h:
235         * WebCoreSupport/DragClientGtk.cpp:
236         (WebKit::DragClient::actionMaskForDrag):
237         (WebKit::DragClient::dragSourceActionMaskForPoint):
238         (WebKit::DragClient::createDragImageForLink):
239
240 2007-10-20  Mark Rowe  <mrowe@apple.com>
241
242         Reviewed by Alp.
243
244         Gtk changes needed to enable HTML 5 client-side database storage.
245
246         * Api/webkitgtkglobal.cpp: Set a default database path based on the user data directory.
247         This should become configurable by client applications in the future.
248
249 2007-10-20  Mark Rowe  <mrowe@apple.com>
250
251         Reviewed by Eric.
252
253         Don't allow control characters to be inserted into editable regions.
254
255         * WebCoreSupport/EditorClientGtk.cpp:
256         (WebKit::EditorClient::handleKeypress):
257
258 2007-10-19  Alp Toker  <alp@atoker.com>
259
260         Reviewed by Oliver.
261
262         GTK+ build fix enabling the new local database storage feature.
263         There is also a prospective Qt build fix.
264
265         * WebCoreSupport/ChromeClientGtk.cpp:
266         (WebKit::ChromeClient::runDatabaseSizeLimitPrompt):
267         * WebCoreSupport/ChromeClientGtk.h:
268
269 2007-10-14  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
270
271         Reviewed by Adam.
272
273         http://bugs.webkit.org/show_bug.cgi?id=15299
274         Fix "hovering_over_link" signal not emitted when consecutive links
275         are hovered.
276
277         * WebCoreSupport/ChromeClientGtk.cpp:
278         (WebKit::ChromeClient::mouseDidMoveOverElement):
279         * WebCoreSupport/ChromeClientGtk.h:
280         - Remove m_didSendLinkSignal as it is superseded by m_hoveredLinkURL
281
282 2007-10-10  Alice Liu  <alice.liu@apple.com>
283
284         Reviewed by Geoff Garen.
285
286         changes to keep the build from breaking
287
288         * WebCoreSupport/FrameLoaderClientGtk.cpp:
289         (WebKit::FrameLoaderClient::createFrame):
290         * WebCoreSupport/FrameLoaderClientGtk.h:
291
292 2007-10-03  Alp Toker  <alp@atoker.com>
293
294         Reviewed by Adam.
295
296         http://bugs.webkit.org/show_bug.cgi?id=14726
297         [gtk] API design. Mapping the WebView delegates to signals.
298
299         Change the API namespace of the Gtk+ port from 'WebKitGtk' to 'WebKit'.
300
301         * Api/webkitgtkdefines.h:
302         * Api/webkitgtkframe.cpp:
303         * Api/webkitgtkframe.h:
304         * Api/webkitgtkglobal.cpp:
305         * Api/webkitgtkglobal.h:
306         * Api/webkitgtknetworkrequest.h:
307         * Api/webkitgtkpage.cpp:
308         * Api/webkitgtkpage.h:
309         * Api/webkitgtkprivate.cpp:
310         (WebKit::apply):
311         (WebKit::create):
312         (WebKit::getFrameFromPage):
313         (WebKit::getPageFromFrame):
314         (WebKit::core):
315         (WebKit::kit):
316         * Api/webkitgtkprivate.h:
317         * Api/webkitgtksettings.cpp:
318         * Api/webkitgtksettings.h:
319         * WebCoreSupport/ChromeClientGtk.cpp:
320         (WebKit::ChromeClient::ChromeClient):
321         (WebKit::ChromeClient::createWindow):
322         (WebKit::ChromeClient::addMessageToConsole):
323         (WebKit::ChromeClient::runJavaScriptAlert):
324         (WebKit::ChromeClient::runJavaScriptConfirm):
325         (WebKit::ChromeClient::runJavaScriptPrompt):
326         * WebCoreSupport/ChromeClientGtk.h:
327         (WebKit::ChromeClient::webPage):
328         * WebCoreSupport/EditorClientGtk.cpp:
329         (WebKit::EditorClient::EditorClient):
330         * WebCoreSupport/EditorClientGtk.h:
331         * WebCoreSupport/FrameLoaderClientGtk.cpp:
332         (WebKit::FrameLoaderClient::FrameLoaderClient):
333         (WebKit::FrameLoaderClient::postProgressStartedNotification):
334         (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification):
335         (WebKit::FrameLoaderClient::postProgressFinishedNotification):
336         (WebKit::FrameLoaderClient::createFrame):
337         (WebKit::FrameLoaderClient::dispatchDidReceiveIcon):
338         (WebKit::FrameLoaderClient::setTitle):
339         * WebCoreSupport/FrameLoaderClientGtk.h:
340         (WebKit::FrameLoaderClient::webFrame):
341
342 2007-10-02  Cosimo Cecchi  <cosimoc@svn.gnome.org>
343
344         Reviewed by Mark.
345
346         http://bugs.webkit.org/show_bug.cgi?id=15299
347         Fix "hovering_over_link" signal being fired every time mouse moves.
348
349         * WebCoreSupport/ChromeClientGtk.cpp:
350         (WebKit::ChromeClient::ChromeClient):
351         (WebKit::ChromeClient::mouseDidMoveOverElement):
352         * WebCoreSupport/ChromeClientGtk.h:
353
354 2007-09-21  Sean Egan  <seanegan@gmail.com>
355
356         Reviewed by Alp.
357
358         Add an "execute_script" method to programmatically call Javascript
359         http://bugs.webkit.org/show_bug.cgi?id=15255
360
361         * Api/webkitgtkpage.cpp:
362         * Api/webkitgtkpage.h:
363
364 2007-09-29  Lars Lindner  <lars.lindner@gmail.com>
365
366         Reviewed by Adam.
367
368         ChromeClientGtk.cpp does not implement mouseDidMoveOverElement()
369         http://bugs.webkit.org/show_bug.cgi?id=15299
370
371         Implementing "hovering_over_link" signal.
372
373         * WebCoreSupport/ChromeClientGtk.cpp:
374         (WebKit::ChromeClient::mouseDidMoveOverElement):
375
376 2007-09-26  Mark Rowe  <mrowe@apple.com>
377
378         Gtk build fix.
379
380         * WebCoreSupport/FrameLoaderClientGtk.cpp:  Check for empty URL instead of invalid URL.
381
382 2007-09-17  Holger Hans Peter Freyther  <zecke@selfish.org>
383
384         Reviewed by Adam.
385
386         WebKitGtkPage and WebKitGtkFrame have a dependency on each other. To
387         allow client code to include both headers the typedef's for
388         WebKitGtkFrame, WebKitGtkPage, WebKitGtkFrameData and WebKitGtkNetworkRequest
389         are moved into webkitgtkdefines.h and included by both webkitgtkpage.h and
390         webkitgtkframe.h
391
392         * Api/webkitgtkdefines.h:
393         * Api/webkitgtkframe.h:
394         * Api/webkitgtkpage.h:
395
396 2007-09-17  Cyril Brulebois  <cyril.brulebois@enst-bretagne.fr>
397
398         Reviewed by Mark, some Coding Style changes by Holger.
399
400         This is from http://bugs.webkit.org/show_bug.cgi?id=14812.
401
402         Add title and location to WebKitGtkFramePrivate, add
403         webkit_gtk_frame_get_location to the WebKitGtkFrame API as well
404         as a title_changed callback, implement
405         webkit_gtk_frame_get_title and webkit_gtk_frame_get_location.
406
407         Initial patch by Diego Escalante Urrelo.
408
409         * Api/webkitgtkframe.cpp:
410         * Api/webkitgtkframe.h:
411         * Api/webkitgtkprivate.h:
412
413 2007-09-15  Holger Hans Peter Freyther  <zecke@selfish.org>
414
415         Reviewed by Mark.
416
417         Use the new WebCore::String::fromUTF8 function to convert
418         from the Gtk+ representation of a string to WebCore::String.
419
420         * WebCoreSupport/ChromeClientGtk.cpp:
421         (WebKit::ChromeClient::runJavaScriptPrompt):
422
423 2007-09-10  Nigel Tao  <nigeltao@gnome.org>
424
425         Reviewed by Mark Rowe.
426
427         Fix a typo where webkit_gtk_page_can_copy was declared twice,
428         rather than webkit_gtk_page_can_paste.
429
430         * Api/webkitgtkpage.h:
431
432 2007-09-08  Brady Eidson  <beidson@apple.com>
433
434         Better build fix
435
436         * WebCoreSupport/FrameLoaderClientGtk.cpp:
437         (WebKit::FrameLoaderClient::registerForIconNotification):
438         * WebCoreSupport/FrameLoaderClientGtk.h:
439
440 2007-09-08  Brady Eidson  <beidson@apple.com>
441
442         Build fix
443
444         * WebCoreSupport/FrameLoaderClientGtk.cpp:
445         (WebKit::FrameLoaderClient::registerForIconNotification):
446         * WebCoreSupport/FrameLoaderClientGtk.h:
447
448 2007-09-05  Geoffrey Garen  <ggaren@apple.com>
449
450         Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
451         
452         Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no 
453         memory cache, or a very tiny one
454         
455         Keep the GTK build working with an empty stub.
456         
457         * WebCoreSupport/FrameLoaderClientGtk.cpp:
458         (WebKit::FrameLoaderClient::didPerformFirstNavigation):
459         * WebCoreSupport/FrameLoaderClientGtk.h:
460
461 2007-09-01  Oliver Hunt  <oliver@apple.com>
462
463         Reviewed by Sam.
464
465         <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions
466  
467         EditorClient::setInputMethodState stub
468
469         * WebCoreSupport/EditorClientGtk.cpp:
470         (WebKit::EditorClient::setInputMethodState):
471         * WebCoreSupport/EditorClientGtk.h:
472
473 2007-08-18  Holger Hans Peter Freyther  <zecke@selfish.org>
474
475         Build fix. Add const to the first parameter of createPlugin
476
477         * WebCoreSupport/FrameLoaderClientGtk.cpp:
478
479 2007-08-17  Anders Carlsson  <andersca@apple.com>
480
481         Build fix.
482         
483         * WebCoreSupport/FrameLoaderClientGtk.cpp:
484         (WebKit::FrameLoaderClient::createPlugin):
485         * WebCoreSupport/FrameLoaderClientGtk.h:
486
487 2007-08-11  Holger Hans Peter Freyther  <zecke@selfish.org>
488
489         Reviewed by Adam.
490
491         To not hit the needsLayout() assert of Frame::paint for subframes we need to
492         make sure they are layed out. Use the newly created FrameView::layoutIfNeededRecursive
493         method to do this.
494
495         * Api/webkitgtkpage.cpp:
496
497 2007-08-11  Holger Hans Peter Freyther  <zecke@selfish.org>
498
499         Reviewed by Adam.
500
501         Fix text selection by setting a DragClient when creating the Page. Now
502         that we have a DragClient we can free the Page when WebKitGtkPage gets
503         destructed.
504
505         * Api/webkitgtkpage.cpp:
506         * WebCoreSupport/DragClientGtk.cpp: Added.
507         (WebKit::DragClient::willPerformDragDestinationAction):
508         (WebKit::DragClient::willPerformDragSourceAction):
509         (WebKit::DragClient::actionMaskForDrag):
510         (WebKit::DragClient::dragSourceActionMaskForPoint):
511         (WebKit::DragClient::startDrag):
512         (WebKit::DragClient::createDragImageForLink):
513         * WebCoreSupport/DragClientGtk.h: Added.
514
515 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
516
517         Reviewed by Anders.
518
519         Make WebKitGtkPage a GtkContainer to avoid a size_allocate
520         race of GtkScrollBar and GtkLayout.
521
522         * Api/webkitgtk-marshal.list:
523         * Api/webkitgtkframe.cpp:
524         * Api/webkitgtkpage.cpp:
525         * Api/webkitgtkpage.h:
526         * Api/webkitgtkprivate.h:
527
528 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
529
530         Reviewed by Niko.
531
532         Minor changes to the WebKit::EditorClient to allow removing
533         of text from TextFields. Remove the selectWordBeforeMenuEvent method
534         which is not used and not within WebCore::EditorClient. 
535
536         * WebCoreSupport/EditorClientGtk.cpp:
537         (WebKit::EditorClient::shouldDeleteRange):
538         (WebKit::EditorClient::shouldBeginEditing):
539         (WebKit::EditorClient::shouldEndEditing):
540         (WebKit::EditorClient::shouldApplyStyle):
541         (WebKit::EditorClient::shouldInsertNode):
542         * WebCoreSupport/EditorClientGtk.h:
543
544 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
545
546         Reviewed by Mark.
547
548         Rename the namespace from WebKitGtk to WebKit. Move the various *Client
549         classes into the WebKit namespace. Change the class names to not contain Gtk.
550         The file names have to contain the Gtk suffix to not clash with files in WebCore (e.g.
551         bridge/EditorClient.h).
552         
553
554         * Api/webkitgtkframe.cpp:
555         * Api/webkitgtkpage.cpp:
556         * Api/webkitgtkprivate.cpp:
557         * Api/webkitgtkprivate.h:
558         * ChangeLog:
559         * WebCoreSupport/ChromeClientGtk.cpp:
560         (WebKit::ChromeClient::ChromeClient):
561         (WebKit::ChromeClient::chromeDestroyed):
562         (WebKit::ChromeClient::windowRect):
563         (WebKit::ChromeClient::setWindowRect):
564         (WebKit::ChromeClient::pageRect):
565         (WebKit::ChromeClient::scaleFactor):
566         (WebKit::ChromeClient::focus):
567         (WebKit::ChromeClient::unfocus):
568         (WebKit::ChromeClient::createWindow):
569         (WebKit::ChromeClient::createModalDialog):
570         (WebKit::ChromeClient::show):
571         (WebKit::ChromeClient::canRunModal):
572         (WebKit::ChromeClient::runModal):
573         (WebKit::ChromeClient::setToolbarsVisible):
574         (WebKit::ChromeClient::toolbarsVisible):
575         (WebKit::ChromeClient::setStatusbarVisible):
576         (WebKit::ChromeClient::statusbarVisible):
577         (WebKit::ChromeClient::setScrollbarsVisible):
578         (WebKit::ChromeClient::scrollbarsVisible):
579         (WebKit::ChromeClient::setMenubarVisible):
580         (WebKit::ChromeClient::menubarVisible):
581         (WebKit::ChromeClient::setResizable):
582         (WebKit::ChromeClient::closeWindowSoon):
583         (WebKit::ChromeClient::canTakeFocus):
584         (WebKit::ChromeClient::takeFocus):
585         (WebKit::ChromeClient::canRunBeforeUnloadConfirmPanel):
586         (WebKit::ChromeClient::runBeforeUnloadConfirmPanel):
587         (WebKit::ChromeClient::runJavaScriptAlert):
588         (WebKit::ChromeClient::runJavaScriptConfirm):
589         (WebKit::ChromeClient::setStatusbarText):
590         (WebKit::ChromeClient::shouldInterruptJavaScript):
591         (WebKit::ChromeClient::tabsToLinks):
592         (WebKit::ChromeClient::windowResizerRect):
593         (WebKit::ChromeClient::addToDirtyRegion):
594         (WebKit::ChromeClient::scrollBackingStore):
595         (WebKit::ChromeClient::updateBackingStore):
596         (WebKit::ChromeClient::mouseDidMoveOverElement):
597         (WebKit::ChromeClient::setToolTip):
598         * WebCoreSupport/ChromeClientGtk.h:
599         * WebCoreSupport/ContextMenuClientGtk.cpp:
600         (WebKit::ContextMenuClient::contextMenuDestroyed):
601         (WebKit::ContextMenuClient::getCustomMenuFromDefaultItems):
602         (WebKit::ContextMenuClient::contextMenuItemSelected):
603         (WebKit::ContextMenuClient::downloadURL):
604         (WebKit::ContextMenuClient::copyImageToClipboard):
605         (WebKit::ContextMenuClient::searchWithGoogle):
606         (WebKit::ContextMenuClient::lookUpInDictionary):
607         (WebKit::ContextMenuClient::speak):
608         * WebCoreSupport/ContextMenuClientGtk.h:
609         * WebCoreSupport/EditorClientGtk.cpp:
610         (WebKit::EditorClient::shouldDeleteRange):
611         (WebKit::EditorClient::shouldShowDeleteInterface):
612         (WebKit::EditorClient::isContinuousSpellCheckingEnabled):
613         (WebKit::EditorClient::isGrammarCheckingEnabled):
614         (WebKit::EditorClient::spellCheckerDocumentTag):
615         (WebKit::EditorClient::shouldBeginEditing):
616         (WebKit::EditorClient::shouldEndEditing):
617         (WebKit::EditorClient::shouldInsertText):
618         (WebKit::EditorClient::shouldChangeSelectedRange):
619         (WebKit::EditorClient::shouldApplyStyle):
620         (WebKit::EditorClient::shouldMoveRangeAfterDelete):
621         (WebKit::EditorClient::didBeginEditing):
622         (WebKit::EditorClient::respondToChangedContents):
623         (WebKit::EditorClient::respondToChangedSelection):
624         (WebKit::EditorClient::didEndEditing):
625         (WebKit::EditorClient::didWriteSelectionToPasteboard):
626         (WebKit::EditorClient::didSetSelectionTypesForPasteboard):
627         (WebKit::EditorClient::selectWordBeforeMenuEvent):
628         (WebKit::EditorClient::isEditable):
629         (WebKit::EditorClient::registerCommandForUndo):
630         (WebKit::EditorClient::registerCommandForRedo):
631         (WebKit::EditorClient::clearUndoRedoOperations):
632         (WebKit::EditorClient::canUndo):
633         (WebKit::EditorClient::canRedo):
634         (WebKit::EditorClient::undo):
635         (WebKit::EditorClient::redo):
636         (WebKit::EditorClient::shouldInsertNode):
637         (WebKit::EditorClient::pageDestroyed):
638         (WebKit::EditorClient::smartInsertDeleteEnabled):
639         (WebKit::EditorClient::toggleContinuousSpellChecking):
640         (WebKit::EditorClient::toggleGrammarChecking):
641         (WebKit::EditorClient::handleInputMethodKeypress):
642         (WebKit::EditorClient::EditorClient):
643         (WebKit::EditorClient::textFieldDidBeginEditing):
644         (WebKit::EditorClient::textFieldDidEndEditing):
645         (WebKit::EditorClient::textDidChangeInTextField):
646         (WebKit::EditorClient::doTextFieldCommandFromEvent):
647         (WebKit::EditorClient::textWillBeDeletedInTextField):
648         (WebKit::EditorClient::textDidChangeInTextArea):
649         (WebKit::EditorClient::ignoreWordInSpellDocument):
650         (WebKit::EditorClient::learnWord):
651         (WebKit::EditorClient::checkSpellingOfString):
652         (WebKit::EditorClient::checkGrammarOfString):
653         (WebKit::EditorClient::updateSpellingUIWithGrammarString):
654         (WebKit::EditorClient::updateSpellingUIWithMisspelledWord):
655         (WebKit::EditorClient::showSpellingUI):
656         (WebKit::EditorClient::spellingUIIsShowing):
657         * WebCoreSupport/EditorClientGtk.h:
658         * WebCoreSupport/FrameLoaderClientGtk.cpp:
659         (WebKit::FrameLoaderClient::FrameLoaderClient):
660         (WebKit::FrameLoaderClient::userAgent):
661         (WebKit::FrameLoaderClient::createDocumentLoader):
662         (WebKit::FrameLoaderClient::committedLoad):
663         (WebKit::FrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
664         (WebKit::FrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
665         (WebKit::FrameLoaderClient::dispatchWillSendRequest):
666         (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest):
667         (WebKit::FrameLoaderClient::postProgressStartedNotification):
668         (WebKit::FrameLoaderClient::postProgressFinishedNotification):
669         (WebKit::FrameLoaderClient::frameLoaderDestroyed):
670         (WebKit::FrameLoaderClient::dispatchDidReceiveResponse):
671         (WebKit::FrameLoaderClient::createPlugin):
672         (WebKit::FrameLoaderClient::redirectDataToPlugin):
673         (WebKit::FrameLoaderClient::createJavaAppletWidget):
674         (WebKit::FrameLoaderClient::overrideMediaType):
675         (WebKit::FrameLoaderClient::windowObjectCleared):
676         (WebKit::FrameLoaderClient::setMainFrameDocumentReady):
677         (WebKit::FrameLoaderClient::hasWebView):
678         (WebKit::FrameLoaderClient::hasFrameView):
679         (WebKit::FrameLoaderClient::dispatchDidFinishLoad):
680         (WebKit::FrameLoaderClient::frameLoadCompleted):
681         (WebKit::FrameLoaderClient::saveViewStateToItem):
682         (WebKit::FrameLoaderClient::restoreViewState):
683         (WebKit::FrameLoaderClient::privateBrowsingEnabled):
684         (WebKit::FrameLoaderClient::makeDocumentView):
685         (WebKit::FrameLoaderClient::makeRepresentation):
686         (WebKit::FrameLoaderClient::forceLayout):
687         (WebKit::FrameLoaderClient::forceLayoutForNonHTML):
688         (WebKit::FrameLoaderClient::setCopiesOnScroll):
689         (WebKit::FrameLoaderClient::detachedFromParent1):
690         (WebKit::FrameLoaderClient::detachedFromParent2):
691         (WebKit::FrameLoaderClient::detachedFromParent3):
692         (WebKit::FrameLoaderClient::detachedFromParent4):
693         (WebKit::FrameLoaderClient::loadedFromCachedPage):
694         (WebKit::FrameLoaderClient::dispatchDidHandleOnloadEvents):
695         (WebKit::FrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
696         (WebKit::FrameLoaderClient::dispatchDidCancelClientRedirect):
697         (WebKit::FrameLoaderClient::dispatchWillPerformClientRedirect):
698         (WebKit::FrameLoaderClient::dispatchDidChangeLocationWithinPage):
699         (WebKit::FrameLoaderClient::dispatchWillClose):
700         (WebKit::FrameLoaderClient::dispatchDidReceiveIcon):
701         (WebKit::FrameLoaderClient::dispatchDidStartProvisionalLoad):
702         (WebKit::FrameLoaderClient::dispatchDidReceiveTitle):
703         (WebKit::FrameLoaderClient::dispatchDidCommitLoad):
704         (WebKit::FrameLoaderClient::dispatchDidFinishDocumentLoad):
705         (WebKit::FrameLoaderClient::dispatchDidFirstLayout):
706         (WebKit::FrameLoaderClient::dispatchShow):
707         (WebKit::FrameLoaderClient::cancelPolicyCheck):
708         (WebKit::FrameLoaderClient::dispatchDidLoadMainResource):
709         (WebKit::FrameLoaderClient::revertToProvisionalState):
710         (WebKit::FrameLoaderClient::clearUnarchivingState):
711         (WebKit::FrameLoaderClient::willChangeTitle):
712         (WebKit::FrameLoaderClient::didChangeTitle):
713         (WebKit::FrameLoaderClient::finishedLoading):
714         (WebKit::FrameLoaderClient::finalSetupForReplace):
715         (WebKit::FrameLoaderClient::setDefersLoading):
716         (WebKit::FrameLoaderClient::isArchiveLoadPending):
717         (WebKit::FrameLoaderClient::cancelPendingArchiveLoad):
718         (WebKit::FrameLoaderClient::clearArchivedResources):
719         (WebKit::FrameLoaderClient::canHandleRequest):
720         (WebKit::FrameLoaderClient::canShowMIMEType):
721         (WebKit::FrameLoaderClient::representationExistsForURLScheme):
722         (WebKit::FrameLoaderClient::generatedMIMETypeForURLScheme):
723         (WebKit::FrameLoaderClient::provisionalLoadStarted):
724         (WebKit::FrameLoaderClient::didFinishLoad):
725         (WebKit::FrameLoaderClient::setDocumentViewFromCachedPage):
726         (WebKit::FrameLoaderClient::dispatchDidReceiveContentLength):
727         (WebKit::FrameLoaderClient::dispatchDidFinishLoading):
728         (WebKit::FrameLoaderClient::dispatchDidFailLoading):
729         (WebKit::FrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
730         (WebKit::FrameLoaderClient::dispatchDidFailProvisionalLoad):
731         (WebKit::FrameLoaderClient::dispatchDidFailLoad):
732         (WebKit::FrameLoaderClient::download):
733         (WebKit::FrameLoaderClient::cancelledError):
734         (WebKit::FrameLoaderClient::blockedError):
735         (WebKit::FrameLoaderClient::cannotShowURLError):
736         (WebKit::FrameLoaderClient::interruptForPolicyChangeError):
737         (WebKit::FrameLoaderClient::cannotShowMIMETypeError):
738         (WebKit::FrameLoaderClient::fileDoesNotExistError):
739         (WebKit::FrameLoaderClient::shouldFallBack):
740         (WebKit::FrameLoaderClient::willUseArchive):
741         (WebKit::FrameLoaderClient::saveDocumentViewToCachedPage):
742         (WebKit::FrameLoaderClient::canCachePage):
743         (WebKit::FrameLoaderClient::dispatchCreatePage):
744         (WebKit::FrameLoaderClient::dispatchUnableToImplementPolicy):
745         * WebCoreSupport/FrameLoaderClientGtk.h:
746         * WebCoreSupport/InspectorClientGtk.cpp:
747         (WebKit::InspectorClient::inspectorDestroyed):
748         (WebKit::InspectorClient::createPage):
749         (WebKit::InspectorClient::showWindow):
750         (WebKit::InspectorClient::closeWindow):
751         (WebKit::InspectorClient::attachWindow):
752         (WebKit::InspectorClient::detachWindow):
753         (WebKit::InspectorClient::highlight):
754         (WebKit::InspectorClient::hideHighlight):
755         * WebCoreSupport/InspectorClientGtk.h:
756
757 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
758
759         Reviewed by Adam.
760
761         As of http://bugs.webkit.org/show_bug.cgi?id=14727 move the
762         various *ClientGdk.{cpp,h} files from WebCore to WebKit/gtk/WebCoreSupport and
763         rename it from Gdk to Gtk.
764
765         * Api/webkitgtkdefines.h:
766         * Api/webkitgtkframe.cpp:
767         * Api/webkitgtkframe.h:
768         * Api/webkitgtkglobal.cpp:
769         * Api/webkitgtkglobal.h:
770         * Api/webkitgtknetworkrequest.cpp:
771         * Api/webkitgtknetworkrequest.h:
772         * Api/webkitgtkpage.cpp:
773         * Api/webkitgtkpage.h:
774         * Api/webkitgtkprivate.cpp:
775         * Api/webkitgtkprivate.h:
776         * Api/webkitgtksettings.cpp:
777         * Api/webkitgtksettings.h:
778         * WebCoreSupport/ChromeClientGtk.cpp: Renamed from WebKit/gtk/WebCoreSupport/ChromeClientGdk.cpp.
779         (WebKitGtk::ChromeClientGtk::ChromeClientGtk):
780         (WebKitGtk::ChromeClientGtk::chromeDestroyed):
781         (WebKitGtk::ChromeClientGtk::windowRect):
782         (WebKitGtk::ChromeClientGtk::setWindowRect):
783         (WebKitGtk::ChromeClientGtk::pageRect):
784         (WebKitGtk::ChromeClientGtk::scaleFactor):
785         (WebKitGtk::ChromeClientGtk::focus):
786         (WebKitGtk::ChromeClientGtk::unfocus):
787         (WebKitGtk::ChromeClientGtk::createWindow):
788         (WebKitGtk::ChromeClientGtk::createModalDialog):
789         (WebKitGtk::ChromeClientGtk::show):
790         (WebKitGtk::ChromeClientGtk::canRunModal):
791         (WebKitGtk::ChromeClientGtk::runModal):
792         (WebKitGtk::ChromeClientGtk::setToolbarsVisible):
793         (WebKitGtk::ChromeClientGtk::toolbarsVisible):
794         (WebKitGtk::ChromeClientGtk::setStatusbarVisible):
795         (WebKitGtk::ChromeClientGtk::statusbarVisible):
796         (WebKitGtk::ChromeClientGtk::setScrollbarsVisible):
797         (WebKitGtk::ChromeClientGtk::scrollbarsVisible):
798         (WebKitGtk::ChromeClientGtk::setMenubarVisible):
799         (WebKitGtk::ChromeClientGtk::menubarVisible):
800         (WebKitGtk::ChromeClientGtk::setResizable):
801         (WebKitGtk::ChromeClientGtk::closeWindowSoon):
802         (WebKitGtk::ChromeClientGtk::canTakeFocus):
803         (WebKitGtk::ChromeClientGtk::takeFocus):
804         (WebKitGtk::ChromeClientGtk::canRunBeforeUnloadConfirmPanel):
805         (WebKitGtk::ChromeClientGtk::runBeforeUnloadConfirmPanel):
806         (WebKitGtk::ChromeClientGtk::addMessageToConsole):
807         (WebKitGtk::ChromeClientGtk::runJavaScriptAlert):
808         (WebKitGtk::ChromeClientGtk::runJavaScriptConfirm):
809         (WebKitGtk::ChromeClientGtk::runJavaScriptPrompt):
810         (WebKitGtk::ChromeClientGtk::setStatusbarText):
811         (WebKitGtk::ChromeClientGtk::shouldInterruptJavaScript):
812         (WebKitGtk::ChromeClientGtk::tabsToLinks):
813         (WebKitGtk::ChromeClientGtk::windowResizerRect):
814         (WebKitGtk::ChromeClientGtk::addToDirtyRegion):
815         (WebKitGtk::ChromeClientGtk::scrollBackingStore):
816         (WebKitGtk::ChromeClientGtk::updateBackingStore):
817         (WebKitGtk::ChromeClientGtk::mouseDidMoveOverElement):
818         (WebKitGtk::ChromeClientGtk::setToolTip):
819         * WebCoreSupport/ChromeClientGtk.h: Renamed from WebKit/gtk/WebCoreSupport/ChromeClientGdk.h.
820         (WebKitGtk::ChromeClientGtk::webPage):
821         * WebCoreSupport/ContextMenuClientGtk.cpp: Renamed from WebCore/page/gdk/ContextMenuClientGdk.cpp.
822         (WebCore::ContextMenuClientGtk::contextMenuDestroyed):
823         (WebCore::ContextMenuClientGtk::getCustomMenuFromDefaultItems):
824         (WebCore::ContextMenuClientGtk::contextMenuItemSelected):
825         (WebCore::ContextMenuClientGtk::downloadURL):
826         (WebCore::ContextMenuClientGtk::copyImageToClipboard):
827         (WebCore::ContextMenuClientGtk::searchWithGoogle):
828         (WebCore::ContextMenuClientGtk::lookUpInDictionary):
829         (WebCore::ContextMenuClientGtk::speak):
830         (WebCore::ContextMenuClientGtk::stopSpeaking):
831         * WebCoreSupport/ContextMenuClientGtk.h: Renamed from WebCore/page/gdk/ContextMenuClientGdk.h.
832         * WebCoreSupport/EditorClientGtk.cpp: Renamed from WebCore/platform/gdk/EditorClientGdk.cpp.
833         (WebCore::EditorClientGtk::shouldDeleteRange):
834         (WebCore::EditorClientGtk::shouldShowDeleteInterface):
835         (WebCore::EditorClientGtk::isContinuousSpellCheckingEnabled):
836         (WebCore::EditorClientGtk::isGrammarCheckingEnabled):
837         (WebCore::EditorClientGtk::spellCheckerDocumentTag):
838         (WebCore::EditorClientGtk::shouldBeginEditing):
839         (WebCore::EditorClientGtk::shouldEndEditing):
840         (WebCore::EditorClientGtk::shouldInsertText):
841         (WebCore::EditorClientGtk::shouldChangeSelectedRange):
842         (WebCore::EditorClientGtk::shouldApplyStyle):
843         (WebCore::EditorClientGtk::shouldMoveRangeAfterDelete):
844         (WebCore::EditorClientGtk::didBeginEditing):
845         (WebCore::EditorClientGtk::respondToChangedContents):
846         (WebCore::EditorClientGtk::respondToChangedSelection):
847         (WebCore::EditorClientGtk::didEndEditing):
848         (WebCore::EditorClientGtk::didWriteSelectionToPasteboard):
849         (WebCore::EditorClientGtk::didSetSelectionTypesForPasteboard):
850         (WebCore::EditorClientGtk::selectWordBeforeMenuEvent):
851         (WebCore::EditorClientGtk::isEditable):
852         (WebCore::EditorClientGtk::registerCommandForUndo):
853         (WebCore::EditorClientGtk::registerCommandForRedo):
854         (WebCore::EditorClientGtk::clearUndoRedoOperations):
855         (WebCore::EditorClientGtk::canUndo):
856         (WebCore::EditorClientGtk::canRedo):
857         (WebCore::EditorClientGtk::undo):
858         (WebCore::EditorClientGtk::redo):
859         (WebCore::EditorClientGtk::shouldInsertNode):
860         (WebCore::EditorClientGtk::pageDestroyed):
861         (WebCore::EditorClientGtk::smartInsertDeleteEnabled):
862         (WebCore::EditorClientGtk::toggleContinuousSpellChecking):
863         (WebCore::EditorClientGtk::toggleGrammarChecking):
864         (WebCore::EditorClientGtk::handleKeypress):
865         (WebCore::EditorClientGtk::handleInputMethodKeypress):
866         (WebCore::EditorClientGtk::EditorClientGtk):
867         (WebCore::EditorClientGtk::textFieldDidBeginEditing):
868         (WebCore::EditorClientGtk::textFieldDidEndEditing):
869         (WebCore::EditorClientGtk::textDidChangeInTextField):
870         (WebCore::EditorClientGtk::doTextFieldCommandFromEvent):
871         (WebCore::EditorClientGtk::textWillBeDeletedInTextField):
872         (WebCore::EditorClientGtk::textDidChangeInTextArea):
873         (WebCore::EditorClientGtk::ignoreWordInSpellDocument):
874         (WebCore::EditorClientGtk::learnWord):
875         (WebCore::EditorClientGtk::checkSpellingOfString):
876         (WebCore::EditorClientGtk::checkGrammarOfString):
877         (WebCore::EditorClientGtk::updateSpellingUIWithGrammarString):
878         (WebCore::EditorClientGtk::updateSpellingUIWithMisspelledWord):
879         (WebCore::EditorClientGtk::showSpellingUI):
880         (WebCore::EditorClientGtk::spellingUIIsShowing):
881         (WebCore::EditorClientGtk::getGuessesForWord):
882         * WebCoreSupport/EditorClientGtk.h: Renamed from WebCore/platform/gdk/EditorClientGdk.h.
883         * WebCoreSupport/FrameLoaderClientGtk.cpp: Renamed from WebCore/loader/gdk/FrameLoaderClientGdk.cpp.
884         (WebCore::FrameLoaderClientGtk::FrameLoaderClientGtk):
885         (WebCore::FrameLoaderClientGtk::userAgent):
886         (WebCore::FrameLoaderClientGtk::createDocumentLoader):
887         (WebCore::FrameLoaderClientGtk::dispatchWillSubmitForm):
888         (WebCore::FrameLoaderClientGtk::committedLoad):
889         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveAuthenticationChallenge):
890         (WebCore::FrameLoaderClientGtk::dispatchDidCancelAuthenticationChallenge):
891         (WebCore::FrameLoaderClientGtk::dispatchWillSendRequest):
892         (WebCore::FrameLoaderClientGtk::assignIdentifierToInitialRequest):
893         (WebCore::FrameLoaderClientGtk::postProgressStartedNotification):
894         (WebCore::FrameLoaderClientGtk::postProgressEstimateChangedNotification):
895         (WebCore::FrameLoaderClientGtk::postProgressFinishedNotification):
896         (WebCore::FrameLoaderClientGtk::frameLoaderDestroyed):
897         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveResponse):
898         (WebCore::FrameLoaderClientGtk::dispatchDecidePolicyForMIMEType):
899         (WebCore::FrameLoaderClientGtk::dispatchDecidePolicyForNewWindowAction):
900         (WebCore::FrameLoaderClientGtk::dispatchDecidePolicyForNavigationAction):
901         (WebCore::FrameLoaderClientGtk::createPlugin):
902         (WebCore::FrameLoaderClientGtk::createFrame):
903         (WebCore::FrameLoaderClientGtk::redirectDataToPlugin):
904         (WebCore::FrameLoaderClientGtk::createJavaAppletWidget):
905         (WebCore::FrameLoaderClientGtk::objectContentType):
906         (WebCore::FrameLoaderClientGtk::overrideMediaType):
907         (WebCore::FrameLoaderClientGtk::windowObjectCleared):
908         (WebCore::FrameLoaderClientGtk::setMainFrameDocumentReady):
909         (WebCore::FrameLoaderClientGtk::hasWebView):
910         (WebCore::FrameLoaderClientGtk::hasFrameView):
911         (WebCore::FrameLoaderClientGtk::dispatchDidFinishLoad):
912         (WebCore::FrameLoaderClientGtk::frameLoadCompleted):
913         (WebCore::FrameLoaderClientGtk::saveViewStateToItem):
914         (WebCore::FrameLoaderClientGtk::restoreViewState):
915         (WebCore::FrameLoaderClientGtk::shouldGoToHistoryItem):
916         (WebCore::FrameLoaderClientGtk::privateBrowsingEnabled):
917         (WebCore::FrameLoaderClientGtk::makeDocumentView):
918         (WebCore::FrameLoaderClientGtk::makeRepresentation):
919         (WebCore::FrameLoaderClientGtk::forceLayout):
920         (WebCore::FrameLoaderClientGtk::forceLayoutForNonHTML):
921         (WebCore::FrameLoaderClientGtk::setCopiesOnScroll):
922         (WebCore::FrameLoaderClientGtk::detachedFromParent1):
923         (WebCore::FrameLoaderClientGtk::detachedFromParent2):
924         (WebCore::FrameLoaderClientGtk::detachedFromParent3):
925         (WebCore::FrameLoaderClientGtk::detachedFromParent4):
926         (WebCore::FrameLoaderClientGtk::loadedFromCachedPage):
927         (WebCore::FrameLoaderClientGtk::dispatchDidHandleOnloadEvents):
928         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveServerRedirectForProvisionalLoad):
929         (WebCore::FrameLoaderClientGtk::dispatchDidCancelClientRedirect):
930         (WebCore::FrameLoaderClientGtk::dispatchWillPerformClientRedirect):
931         (WebCore::FrameLoaderClientGtk::dispatchDidChangeLocationWithinPage):
932         (WebCore::FrameLoaderClientGtk::dispatchWillClose):
933         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveIcon):
934         (WebCore::FrameLoaderClientGtk::dispatchDidStartProvisionalLoad):
935         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveTitle):
936         (WebCore::FrameLoaderClientGtk::dispatchDidCommitLoad):
937         (WebCore::FrameLoaderClientGtk::dispatchDidFinishDocumentLoad):
938         (WebCore::FrameLoaderClientGtk::dispatchDidFirstLayout):
939         (WebCore::FrameLoaderClientGtk::dispatchShow):
940         (WebCore::FrameLoaderClientGtk::cancelPolicyCheck):
941         (WebCore::FrameLoaderClientGtk::dispatchDidLoadMainResource):
942         (WebCore::FrameLoaderClientGtk::revertToProvisionalState):
943         (WebCore::FrameLoaderClientGtk::clearUnarchivingState):
944         (WebCore::FrameLoaderClientGtk::willChangeTitle):
945         (WebCore::FrameLoaderClientGtk::didChangeTitle):
946         (WebCore::FrameLoaderClientGtk::finishedLoading):
947         (WebCore::FrameLoaderClientGtk::finalSetupForReplace):
948         (WebCore::FrameLoaderClientGtk::setDefersLoading):
949         (WebCore::FrameLoaderClientGtk::isArchiveLoadPending):
950         (WebCore::FrameLoaderClientGtk::cancelPendingArchiveLoad):
951         (WebCore::FrameLoaderClientGtk::clearArchivedResources):
952         (WebCore::FrameLoaderClientGtk::canHandleRequest):
953         (WebCore::FrameLoaderClientGtk::canShowMIMEType):
954         (WebCore::FrameLoaderClientGtk::representationExistsForURLScheme):
955         (WebCore::FrameLoaderClientGtk::generatedMIMETypeForURLScheme):
956         (WebCore::FrameLoaderClientGtk::provisionalLoadStarted):
957         (WebCore::FrameLoaderClientGtk::didFinishLoad):
958         (WebCore::FrameLoaderClientGtk::prepareForDataSourceReplacement):
959         (WebCore::FrameLoaderClientGtk::setTitle):
960         (WebCore::FrameLoaderClientGtk::setDocumentViewFromCachedPage):
961         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveContentLength):
962         (WebCore::FrameLoaderClientGtk::dispatchDidFinishLoading):
963         (WebCore::FrameLoaderClientGtk::dispatchDidFailLoading):
964         (WebCore::FrameLoaderClientGtk::dispatchDidLoadResourceFromMemoryCache):
965         (WebCore::FrameLoaderClientGtk::dispatchDidFailProvisionalLoad):
966         (WebCore::FrameLoaderClientGtk::dispatchDidFailLoad):
967         (WebCore::FrameLoaderClientGtk::download):
968         (WebCore::FrameLoaderClientGtk::cancelledError):
969         (WebCore::FrameLoaderClientGtk::blockedError):
970         (WebCore::FrameLoaderClientGtk::cannotShowURLError):
971         (WebCore::FrameLoaderClientGtk::interruptForPolicyChangeError):
972         (WebCore::FrameLoaderClientGtk::cannotShowMIMETypeError):
973         (WebCore::FrameLoaderClientGtk::fileDoesNotExistError):
974         (WebCore::FrameLoaderClientGtk::shouldFallBack):
975         (WebCore::FrameLoaderClientGtk::willUseArchive):
976         (WebCore::FrameLoaderClientGtk::saveDocumentViewToCachedPage):
977         (WebCore::FrameLoaderClientGtk::canCachePage):
978         (WebCore::FrameLoaderClientGtk::dispatchCreatePage):
979         (WebCore::FrameLoaderClientGtk::dispatchUnableToImplementPolicy):
980         * WebCoreSupport/FrameLoaderClientGtk.h: Renamed from WebCore/loader/gdk/FrameLoaderClientGdk.h.
981         (WebCore::FrameLoaderClientGtk::~FrameLoaderClientGtk):
982         (WebCore::FrameLoaderClientGtk::webFrame):
983         * WebCoreSupport/InspectorClientGtk.cpp: Renamed from WebCore/page/gdk/InspectorClientGdk.cpp.
984         (WebCore::InspectorClientGtk::inspectorDestroyed):
985         (WebCore::InspectorClientGtk::createPage):
986         (WebCore::InspectorClientGtk::showWindow):
987         (WebCore::InspectorClientGtk::closeWindow):
988         (WebCore::InspectorClientGtk::attachWindow):
989         (WebCore::InspectorClientGtk::detachWindow):
990         (WebCore::InspectorClientGtk::highlight):
991         (WebCore::InspectorClientGtk::hideHighlight):
992         (WebCore::InspectorClientGtk::inspectedURLChanged):
993         * WebCoreSupport/InspectorClientGtk.h: Renamed from WebCore/page/gdk/InspectorClientGdk.h.
994
995 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
996
997         Build fix.
998
999         * Api/webkitgtkframe.cpp:
1000
1001 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
1002
1003         Reviewed by Adam.
1004
1005         Remove the create_frame virtual method of WebKitGtkPage. This method was inspired
1006         by the Qt port but to be useful for reimplementations WebKitGtkFrameData would need
1007         to export/expose WebCore types. WebView doesn't offer such a method so I decided to
1008         remove it.
1009         Add a internal constructor to WebKitGtkFrame to be used for constructing Sub-Frames. This
1010         is currently used by FrameLoaderClientGdk::createFrame.
1011
1012         * Api/webkitgtkframe.cpp:
1013         * Api/webkitgtkframedata.cpp: Removed.
1014         * Api/webkitgtkframedata.h: Removed.
1015         * Api/webkitgtkpage.cpp:
1016         * Api/webkitgtkpage.h:
1017         * Api/webkitgtkprivate.h:
1018
1019 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
1020
1021         Reviewed by Adam.
1022
1023         Follow the changes of ScrollView in WebCore and call setContainingWindow, set the
1024         GtkAdjustment of the GtkLayout and reimplement the set_scroll_adjustments method and pass
1025         the GtkAdjustments to ScrollView.
1026         This makes having one GdkWindow for the complete FrameTree possible.
1027         
1028
1029         * gtk/Api/webkitgtkframe.cpp:
1030         * gtk/Api/webkitgtkpage.cpp:
1031
1032 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1033
1034         Reviewed by Niko.
1035
1036         We only need to set the Settings of the Page once so do it in
1037         WebKitGtkPage instead of WebKitGtkFrame.
1038
1039         * gtk/Api/webkitgtkframe.cpp:
1040         * gtk/Api/webkitgtkpage.cpp:
1041
1042 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1043
1044         Reviewed by Niko.
1045
1046         Instead of reimplementing the general event method, reimplement
1047         the specific mouse, expose, keyboard event methods.
1048
1049         Call the finalize implementation of the base class from WebKitGtkPage
1050         and WebKitGtkFrame.
1051
1052         * gtk/Api/webkitgtkframe.cpp:
1053         * gtk/Api/webkitgtkpage.cpp:
1054
1055 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1056
1057         Reviewed by Niko.
1058
1059         Remove the custom painting in favor of the Widget::paint
1060         implementation.
1061
1062         * gtk/Api/webkitgtkpage.cpp:
1063
1064 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1065
1066         Reviewed by Adam.
1067
1068         Moved code from class FrameGdk into WebKitGtkFrame. Update the
1069         webkitgrkprivate.h header file to not include FrameGdk.h.
1070
1071         * gtk/Api/webkitgtkframe.cpp:
1072         * gtk/Api/webkitgtkprivate.h:
1073
1074 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1075
1076         Reviewed by Adam.
1077
1078         Change variable names to follow the Coding-Style. Replace occurences
1079         of a_b with aB and place the '*' correctly.
1080
1081         * gtk/Api/webkitgtkframe.cpp:
1082         * gtk/Api/webkitgtkpage.cpp:
1083         * gtk/Api/webkitgtkprivate.h:
1084
1085 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1086
1087         Reviewed by Adam.
1088
1089         Reimplement GtkWidget::event and handle the keyboard and mouse
1090         events inside WebKitGtkPage.
1091
1092         * gtk/Api/webkitgtkpage.cpp:
1093         (FrameGdkExposeData::frame_gdk_expose_child):
1094         (FrameGdkExposeData::webkit_gtk_page_rendering_area_handle_gdk_event):
1095         (FrameGdkExposeData::webkit_gtk_page_register_rendering_area_events):
1096         (FrameGdkExposeData::webkit_gtk_page_class_init):
1097
1098 2007-08-07  Xan Lopez  <xan@gnome.org>
1099
1100         Reviewed by Mark Rowe.
1101
1102         http://bugs.webkit.org/show_bug.cgi?id=14815
1103         [gtk] API implementation: reload
1104
1105         * gtk/Api/webkitgtkpage.cpp: Implement the webkit_gtk_page_reload()
1106         function.
1107
1108 2007-07-30  Diego Escalante Urrelo  <diegoe@gnome.org>
1109
1110         Reviewed by Adam.
1111
1112         http://bugs.webkit.org/show_bug.cgi?id=14806
1113         Implement can_go_backward and can_go_forward in webkitgtkpage.cpp
1114
1115         * gtk/Api/webkitgtkpage.cpp: Implement webkit_gtk_page_can_go_backward() and
1116         webkit_gtk_page_can_go_forward() functions.
1117
1118 2007-07-30  Diego Escalante Urrelo  <diegoe@gnome.org> 
1119
1120         Reviewed by Alp Toker.
1121
1122         http://bugs.webkit.org/show_bug.cgi?id=14810
1123         Bad n_params on load_finished's g_signal_new in webkitgtkpage.cpp
1124
1125         This is the proper fix for #14810.
1126
1127         * gtk/Api/webkitgtkframe.cpp:
1128         * gtk/Api/webkitgtkpage.cpp: Fix the marshaller type of the "load_finished" signal and
1129         correct the class_offset parameters.
1130
1131 2007-07-29  Diego Escalante Urrelo  <diegoe@gnome.org>
1132
1133         Reviewed by Alp Toker.
1134
1135         http://bugs.webkit.org/show_bug.cgi?id=14810
1136         Bad n_params on load_finished's g_signal_new in webkitgtkpage.cpp
1137
1138         * gtk/Api/webkitgtkpage.cpp: Use a correct n_params value and the corresponding types for
1139         them in the "load_finished" signal.
1140
1141 2007-07-22  Holger Hans Peter Freyther  <zecke@selfish.org>
1142
1143         Reviewed by Adam.
1144
1145         Add the first API and partial implementation of the WebKit/Gtk port as
1146         of http://bugs.webkit.org/show_bug.cgi?id=14678.
1147
1148         The delegates of WebView will be modeled as signals. Delegates like the
1149         WebPolicyDelegate will be implemented as signals with default handlers.
1150
1151         Start moving files to WebKit/gtk/WebCoreSupport.
1152
1153         * gtk: Added.
1154         * gtk/Api: Added.
1155         * gtk/Api/headers.pri: Added.
1156         * gtk/Api/webkitgtk-marshal.list: Added.
1157         * gtk/Api/webkitgtkdefines.h: Added.
1158         * gtk/Api/webkitgtkframe.cpp: Added.
1159         * gtk/Api/webkitgtkframe.h: Added.
1160         * gtk/Api/webkitgtkframedata.cpp: Added.
1161         * gtk/Api/webkitgtkframedata.h: Added.
1162         * gtk/Api/webkitgtkglobal.cpp: Added.
1163         * gtk/Api/webkitgtkglobal.h: Added.
1164         * gtk/Api/webkitgtknetworkrequest.cpp: Added.
1165         * gtk/Api/webkitgtknetworkrequest.h: Added.
1166         * gtk/Api/webkitgtkpage.cpp: Added.
1167         * gtk/Api/webkitgtkpage.h: Added.
1168         * gtk/Api/webkitgtkprivate.cpp: Added.
1169         * gtk/Api/webkitgtkprivate.h: Added.
1170         * gtk/Api/webkitgtksettings.cpp: Added.
1171         * gtk/Api/webkitgtksettings.h: Added.
1172         * gtk/WebCoreSupport: Added.
1173         * gtk/WebCoreSupport/ChromeClientGdk.cpp: Added.
1174         (WebCore::ChromeClientGdk::ChromeClientGdk):
1175         (WebCore::ChromeClientGdk::chromeDestroyed):
1176         (WebCore::ChromeClientGdk::windowRect):
1177         (WebCore::ChromeClientGdk::setWindowRect):
1178         (WebCore::ChromeClientGdk::pageRect):
1179         (WebCore::ChromeClientGdk::scaleFactor):
1180         (WebCore::ChromeClientGdk::focus):
1181         (WebCore::ChromeClientGdk::unfocus):
1182         (WebCore::ChromeClientGdk::createWindow):
1183         (WebCore::ChromeClientGdk::createModalDialog):
1184         (WebCore::ChromeClientGdk::show):
1185         (WebCore::ChromeClientGdk::canRunModal):
1186         (WebCore::ChromeClientGdk::runModal):
1187         (WebCore::ChromeClientGdk::setToolbarsVisible):
1188         (WebCore::ChromeClientGdk::toolbarsVisible):
1189         (WebCore::ChromeClientGdk::setStatusbarVisible):
1190         (WebCore::ChromeClientGdk::statusbarVisible):
1191         (WebCore::ChromeClientGdk::setScrollbarsVisible):
1192         (WebCore::ChromeClientGdk::scrollbarsVisible):
1193         (WebCore::ChromeClientGdk::setMenubarVisible):
1194         (WebCore::ChromeClientGdk::menubarVisible):
1195         (WebCore::ChromeClientGdk::setResizable):
1196         (WebCore::ChromeClientGdk::closeWindowSoon):
1197         (WebCore::ChromeClientGdk::canTakeFocus):
1198         (WebCore::ChromeClientGdk::takeFocus):
1199         (WebCore::ChromeClientGdk::canRunBeforeUnloadConfirmPanel):
1200         (WebCore::ChromeClientGdk::runBeforeUnloadConfirmPanel):
1201         (WebCore::ChromeClientGdk::addMessageToConsole):
1202         (WebCore::ChromeClientGdk::runJavaScriptAlert):
1203         (WebCore::ChromeClientGdk::runJavaScriptConfirm):
1204         (WebCore::ChromeClientGdk::runJavaScriptPrompt):
1205         (WebCore::ChromeClientGdk::setStatusbarText):
1206         (WebCore::ChromeClientGdk::shouldInterruptJavaScript):
1207         (WebCore::ChromeClientGdk::tabsToLinks):
1208         (WebCore::ChromeClientGdk::windowResizerRect):
1209         (WebCore::ChromeClientGdk::addToDirtyRegion):
1210         (WebCore::ChromeClientGdk::scrollBackingStore):
1211         (WebCore::ChromeClientGdk::updateBackingStore):
1212         (WebCore::ChromeClientGdk::mouseDidMoveOverElement):
1213         (WebCore::ChromeClientGdk::setToolTip):
1214         (WebCore::ChromeClientGdk::print):
1215         * gtk/WebCoreSupport/ChromeClientGdk.h: Added.
1216