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