2007-12-07 Luca Bruno <lethalman88@gmail.com>
[WebKit-https.git] / WebKit / gtk / ChangeLog
1 2007-12-07  Luca Bruno  <lethalman88@gmail.com>
2
3         Reviewed by Alp Toker.
4
5         http://bugs.webkit.org/show_bug.cgi?id=16333
6         [GTK] Key bindings must work with focused frames.
7
8         There are still more cases where getFrameFromView() is mis-used that
9         need to be fixed, but this is a good start.
10
11         * WebView/webkitwebview.cpp:
12         (webkit_web_view_real_select_all):
13         (webkit_web_view_real_cut_clipboard):
14         (webkit_web_view_real_copy_clipboard):
15         (webkit_web_view_real_paste_clipboard):
16
17 2007-12-06  Xan Lopez  <xan@gnome.org>
18
19         Reviewed by Alp Toker.
20
21         http://bugs.webkit.org/show_bug.cgi?id=16329
22         [GTK] Two small cleanups
23
24         * WebCoreSupport/ChromeClientGtk.cpp:
25         (WebKit::ChromeClient::createWindow):
26         (WebKit::ChromeClient::addMessageToConsole):
27         (WebKit::ChromeClient::runJavaScriptAlert):
28         (WebKit::ChromeClient::runJavaScriptConfirm):
29         (WebKit::ChromeClient::runJavaScriptPrompt):
30         (WebKit::ChromeClient::setStatusbarText):
31         (WebKit::ChromeClient::mouseDidMoveOverElement):
32         (WebKit::ChromeClient::setToolTip):
33         * WebCoreSupport/ChromeClientGtk.h:
34         * WebView/webkitprivate.cpp:
35         (WebKit::kit):
36         s/m_webPage/m_webView/
37         * WebView/webkitwebview.cpp:
38         Chain up to the parent class to activate bindings instead
39         of doing it explicitely.
40
41 2007-12-06  Holger Hans Peter Freyther <holger.freyther@trolltech.com>
42
43         Reviewed by Alp Toker.
44
45         http://bugs.webkit.org/show_bug.cgi?id=16173
46         Licensing change
47
48         Change license from BSD to LGPL.
49
50         * WebCoreSupport/ChromeClientGtk.h:
51         * WebView/webkitdefines.h:
52         * WebView/webkitglobal.cpp:
53         * WebView/webkitglobal.h:
54         * WebView/webkitnetworkrequest.cpp:
55         * WebView/webkitnetworkrequest.h:
56         * WebView/webkitprivate.cpp:
57         * WebView/webkitprivate.h:
58         * WebView/webkitsettings.cpp:
59         * WebView/webkitsettings.h:
60         * WebView/webkitwebframe.cpp:
61         * WebView/webkitwebframe.h:
62         * WebView/webkitwebview.h:
63
64 2007-12-05  Michael Natterer  <mitch@imendio.com>
65
66         Reviewed by Alp Toker.
67
68         * WebView/webkitwebview.cpp: split key and button event handlers
69         into separate press and release functions.
70
71 2007-12-05  Luca Bruno  <lethalman88@gmail.com>
72
73         Reviewed by Alp Toker.
74
75         Handle events for Home and End keys.
76
77         * WebView/webkitwebview.cpp:
78         (webkit_web_view_key_event):
79         * WebCoreSupport/EditorClientGtk.cpp:
80         (EditorClient::handleKeypress):
81
82 2007-12-05  Michael Natterer  <mitch@imendio.com>
83
84         Reviewed by Alp Toker.
85
86         * WebView/webkitwebview.cpp
87         * WebCoreSupport/ChromeClientGtk.cpp
88         * WebCoreSupport/FrameLoaderClientGtk.cpp: canonicalize signal names.
89
90 2007-12-04  Darin Adler  <darin@apple.com>
91
92         Reviewed by Kevin Decker.
93
94         * WebCoreSupport/FrameLoaderClientGtk.cpp: Removed obsolete privateBrowsingEnabled.
95         * WebCoreSupport/FrameLoaderClientGtk.h: Ditto.
96
97 2007-12-04  Michael Natterer  <mitch@imendio.com>
98
99         Reviewed by Alp Toker.
100
101         * WebView/webkitwebframe.cpp: don't redeclare the marshaller
102         prototype but simply include "webkit-marshal.h" now that its build
103         is fixed.
104
105 2007-12-04  Luca Bruno  <lethalman88@gmail.com>
106
107         Reviewed by Alp Toker.
108
109         Fix a regression in key press propagation in r28386.
110
111         Fix indentation (was off by two spaces).
112
113         * WebView/webkitwebview.cpp:
114
115 2007-12-04  Luca Bruno  <lethalman88@gmail.com>
116
117         Reviewed by Alp Toker.
118
119         http://bugs.webkit.org/show_bug.cgi?id=15911
120         [GTK] Use GtkBindingSet to make key bindings user-configurable
121
122         This patch doesn't cover the full range of bindings, only the ones
123         that seem obviously correct and have clear public API.
124
125         * WebCoreSupport/EditorClientGtk.cpp:
126         (WebKit::EditorClient::handleKeypress): do not handle clipboard operations and select-all
127         * WebView/webkitwebview.cpp: add cut, copy, paste and select-all signals and allow binding sets (issue #15911 and #16144)
128         * WebView/webkitwebview.h:
129
130 2007-12-04  Xan Lopez  <xan@gnome.org>
131
132         Reviewed by Alp Toker.
133
134         http://bugs.webkit.org/show_bug.cgi?id=15561
135         GTK port needs DumpRenderTree implementation
136
137         Start work on the GTK+ DRT.
138
139         Add a couple of proposed new API entry points. They are currently for
140         internal use only by DRT and not in the public headers.
141
142         * WebView/webkitprivate.h:
143         * WebView/webkitwebframe.cpp:
144
145 2007-12-03  Dan Bernstein  <mitz@apple.com>
146
147         Reviewed by Dave Hyatt.
148
149         - fix <rdar://problem/5346452> Resize event doesn't fire on body element inside a frame
150
151         * WebView/webkitwebview.cpp: Remove the call to sendResizeEvent() since
152         FrameView sends it now.
153
154 2007-12-03  Alp Toker  <alp@atoker.com>
155
156         globalObject() GTK+ build fix.
157
158         * WebCoreSupport/FrameLoaderClientGtk.cpp:
159         (WebKit::FrameLoaderClient::windowObjectCleared):
160
161 2007-12-03  Geoffrey Garen  <ggaren@apple.com>
162
163         GTK Build fix: get globalExec from the right place.
164
165         * WebView/webkitwebframe.cpp:
166
167 2007-12-01  Alp Toker  <alp@atoker.com>
168
169         Reviewed by Adam Roben.
170
171         Wrap type definitions in webkitdefines.h with G_BEGIN_DECLS, which
172         takes care of extern "C".
173
174         Introduce a webkit.h convenience header.
175
176         Remove another left-over from the old API.
177
178         * WebView/headers.pri:
179         * WebView/webkit.h: Added.
180         * WebView/webkitdefines.h:
181
182 2007-12-01  Alp Toker  <alp@atoker.com>
183
184         Reviewed by Adam Roben.
185
186         http://bugs.webkit.org/show_bug.cgi?id=15687
187         [Gtk] Allow API clients to interact with JavaScript in web pages
188
189         Include the necessary JavaScriptCore headers directly in the public
190         API headers.
191
192         This is the last of a series of changes needed to allow GTK+
193         applications to access the JS API.
194
195         Until http://bugs.webkit.org/show_bug.cgi?id=16029 is resolved,
196         developers will still have to include the individual JS API headers
197         individually if they want to use it in their applications.
198
199         Patch also removes some old legacy use of GDK that was in
200         WebKitWebFrame. No ABI change.
201
202         * WebView/webkitdefines.h:
203         * WebView/webkitwebframe.h:
204         * WebView/webkitwebview.h:
205
206 2007-11-30  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
207
208         Fix for GTK+ Debug build breakage introduced in r28273.
209
210         * WebView/webkitprivate.cpp:
211         (WebKit::kit):
212
213 2007-11-30  Alp Toker  <alp@atoker.com>
214
215         Reviewed by Adam Roben.
216
217         http://bugs.webkit.org/show_bug.cgi?id=15691
218         [GTK] Public API does not follow GTK+ conventions
219
220         Refactor the WebKit/GTK+ public API. Changes:
221           WebKitPage -> WebKitWebView
222           WebKitFrame -> WebKitWebFrame
223
224         Public API source and header names have been updated to mirror the API
225         changes.
226
227         The API is now kept in WebKit/gtk/WebView to match other ports in the
228         same class such as Mac and Win.
229
230         API/ABI-breaking change.
231
232         * Api: Removed.
233         * Api/headers.pri: Removed.
234         * Api/webkitgtk-marshal.list: Removed.
235         * Api/webkitgtkdefines.h: Removed.
236         * Api/webkitgtkframe.cpp: Removed.
237         * Api/webkitgtkframe.h: Removed.
238         * Api/webkitgtkglobal.cpp: Removed.
239         * Api/webkitgtkglobal.h: Removed.
240         * Api/webkitgtknetworkrequest.cpp: Removed.
241         * Api/webkitgtknetworkrequest.h: Removed.
242         * Api/webkitgtkpage.cpp: Removed.
243         * Api/webkitgtkpage.h: Removed.
244         * Api/webkitgtkprivate.cpp: Removed.
245         * Api/webkitgtkprivate.h: Removed.
246         * Api/webkitgtksettings.cpp: Removed.
247         * Api/webkitgtksettings.h: Removed.
248         * WebCoreSupport/ChromeClientGtk.cpp:
249         (WebKit::ChromeClient::ChromeClient):
250         (WebKit::ChromeClient::createWindow):
251         * WebCoreSupport/ChromeClientGtk.h:
252         (WebKit::ChromeClient::webPage):
253         * WebCoreSupport/EditorClientGtk.cpp:
254         (WebKit::EditorClient::isEditable):
255         (WebKit::EditorClient::EditorClient):
256         * WebCoreSupport/EditorClientGtk.h:
257         * WebCoreSupport/FrameLoaderClientGtk.cpp:
258         (WebKit::FrameLoaderClient::FrameLoaderClient):
259         (WebKit::FrameLoaderClient::postProgressStartedNotification):
260         (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification):
261         (WebKit::FrameLoaderClient::postProgressFinishedNotification):
262         (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):
263         (WebKit::FrameLoaderClient::createFrame):
264         (WebKit::FrameLoaderClient::windowObjectCleared):
265         (WebKit::FrameLoaderClient::dispatchDidReceiveIcon):
266         (WebKit::FrameLoaderClient::setTitle):
267         * WebCoreSupport/FrameLoaderClientGtk.h:
268         (WebKit::FrameLoaderClient::webFrame):
269         * WebView: Added.
270         * WebView/headers.pri: Added.
271         * WebView/webkit-marshal.list: Added.
272         * WebView/webkitdefines.h: Added.
273         * WebView/webkitglobal.cpp: Added.
274         * WebView/webkitglobal.h: Added.
275         * WebView/webkitnetworkrequest.cpp: Added.
276         * WebView/webkitnetworkrequest.h: Added.
277         * WebView/webkitprivate.cpp: Added.
278         (WebKit::apply):
279         (WebKit::create):
280         (WebKit::getFrameFromView):
281         (WebKit::getViewFromFrame):
282         (WebKit::core):
283         (WebKit::kit):
284         * WebView/webkitprivate.h: Added.
285         * WebView/webkitsettings.cpp: Added.
286         * WebView/webkitsettings.h: Added.
287         * WebView/webkitwebframe.cpp: Added.
288         * WebView/webkitwebframe.h: Added.
289         * WebView/webkitwebview.cpp: Added.
290         * WebView/webkitwebview.h: Added.
291
292 2007-11-28  Alp Toker  <alp@atoker.com>
293
294         Reviewed by Timothy Hatcher.
295
296         http://bugs.webkit.org/show_bug.cgi?id=16174
297         [GTK] Use "URI" not "URL" in public API
298
299         Replace use of the term "URL" with "URI" in public headers,
300         documentation and some internal code to match GLib/GTK+ convention.
301
302         This is now mentioned in the API guidelines:
303           http://trac.webkit.org/projects/webkit/wiki/HackingGtk
304
305         API/ABI-breaking change.
306
307         * Api/webkitgtkframe.cpp:
308         * Api/webkitgtknetworkrequest.cpp:
309         * Api/webkitgtknetworkrequest.h:
310         * Api/webkitgtkpage.cpp:
311         * Api/webkitgtkpage.h:
312         * Api/webkitgtkprivate.h:
313         * Api/webkitgtksettings.h:
314
315 2007-11-29  Brady Eidson  <beidson@apple.com>
316
317         Better build fix for Gtk
318
319         * WebCoreSupport/ChromeClientGtk.h:
320
321 2007-11-29  Brady Eidson  <beidson@apple.com>
322
323         Keep it building with new client method
324
325         * WebCoreSupport/ChromeClientGtk.cpp:
326         (WebKit::ChromeClient::requestQuotaIncreaseForNewDatabase):
327         (WebKit::ChromeClient::requestQuotaIncreaseForDatabaseOperation):
328         * WebCoreSupport/ChromeClientGtk.h:
329
330 2007-11-26  Alp Toker  <alp@atoker.com>
331
332         Reviewed by Adam Roben.
333
334         http://bugs.webkit.org/show_bug.cgi?id=16149
335         Implement the window-object-cleared signal
336
337         This implementation provides the JSGlobalContextRef and JSObjectRef
338         directly rather than using an intermediate JS wrapper object, similar
339         to the approach taken by the Win port.
340
341         * Api/webkitgtk-marshal.list:
342         * Api/webkitgtkframe.h:
343         * Api/webkitgtkpage.cpp:
344         * Api/webkitgtkpage.h:
345         * WebCoreSupport/FrameLoaderClientGtk.cpp:
346         (WebKit::FrameLoaderClient::windowObjectCleared):
347
348 2007-11-24  Alp Toker  <alp@atoker.com>
349
350         Reviewed by Mark Rowe.
351
352         http://bugs.webkit.org/show_bug.cgi?id=15691
353         [GTK] Public API does not follow GTK+ conventions
354
355         Public API enhancements:
356
357         Implement webkit_page_get_editable() and webkit_page_set_editable().
358
359         Implement webkit_frame_get_name().
360
361         Remove definitions for functions that are unusable or not implemented.
362         This has caused much confusion for application developers.
363
364         Improve documentation.
365
366         Correct/constify some return types.
367
368         Add parameter checks.
369
370         Make the default fixed font "Courier New" to match the other Web
371         font names.
372
373         * Api/webkitgtkframe.cpp:
374         * Api/webkitgtkframe.h:
375         * Api/webkitgtkpage.cpp:
376         * Api/webkitgtkpage.h:
377         * Api/webkitgtkprivate.h:
378         * WebCoreSupport/EditorClientGtk.cpp:
379         (WebKit::EditorClient::isEditable):
380
381 2007-11-24  Alp Toker  <alp@atoker.com>
382
383         Reviewed by Mark Rowe.
384
385         http://bugs.webkit.org/show_bug.cgi?id=16125
386         [GTK] Up key doesn't work properly when content is editable
387
388         Add a missing 'break' to avoid falling through to the next case when
389         handling VK_UP keystrokes. This was noticed when working on editing
390         support in the GTK+ port.
391
392         I've checked the other cases for similar typos and they seem fine.
393
394         * WebCoreSupport/EditorClientGtk.cpp:
395         (WebKit::EditorClient::handleKeypress):
396
397 2007-11-24  Xan Lopez  <xan@gnome.org>
398
399         Reviewed by Alp Toker.
400
401         http://bugs.webkit.org/show_bug.cgi?id=15745
402         [GTK] Arrow keys do not Scroll
403         
404         * Api/webkitgtkpage.cpp:
405
406         Support Up/Down/Right/Left keys to scroll. Slight hack, see FIXME for
407         details.
408
409 2007-11-24  Christian Dywan  <christian@twotoasts.de>
410
411         Reviewed by Alp Toker.
412
413         http://bugs.webkit.org/show_bug.cgi?id=15891
414         [GTK] Javascript console and dialogs are not implemented
415
416         Fix call to gtk_message_dialog_new() which expects a format string.
417
418         * Api/webkitgtkpage.cpp:
419
420 2007-11-24  Christian Dywan  <christian@twotoasts.de>
421
422         Reviewed by Alp Toker.
423
424         http://bugs.webkit.org/show_bug.cgi?id=15793
425         [GTK] Webkit doesn't show title attribute tooltip when hovering over an image
426
427         Implement tooltip support using the new Tooltip API.
428
429         Support for older versions of GTK+ is still lacking.
430
431         * WebCoreSupport/ChromeClientGtk.cpp:
432         (WebKit::ChromeClient::setToolTip):
433
434 2007-11-22  Alp Toker  <alp@atoker.com>
435
436         Reviewed by Mark Rowe.
437
438         Implement and document several WebKitFrame functions, some of which
439         are necessary to support DRT.
440
441         Correct NULL handling and improve run-time checks.
442
443         * Api/webkitgtkframe.cpp:
444         * Api/webkitgtkframe.h:
445         * Api/webkitgtkprivate.cpp:
446
447 2007-11-22  Alp Toker  <alp@atoker.com>
448
449         Whitespace fixes only.
450
451         * Api/webkitgtkframe.cpp:
452         * Api/webkitgtkpage.cpp:
453         * Api/webkitgtkpage.h:
454         * Api/webkitgtkprivate.h:
455         * WebCoreSupport/ChromeClientGtk.cpp:
456         * WebCoreSupport/ContextMenuClientGtk.cpp:
457         * WebCoreSupport/ContextMenuClientGtk.h:
458         * WebCoreSupport/DragClientGtk.h:
459         * WebCoreSupport/EditorClientGtk.h:
460         * WebCoreSupport/FrameLoaderClientGtk.cpp:
461         (WebKit::FrameLoaderClient::dispatchWillSendRequest):
462         (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest):
463         (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification):
464         (WebKit::FrameLoaderClient::createFrame):
465         (WebKit::FrameLoaderClient::createJavaAppletWidget):
466         (WebKit::FrameLoaderClient::registerForIconNotification):
467         (WebKit::FrameLoaderClient::setMainFrameDocumentReady):
468         (WebKit::FrameLoaderClient::dispatchDidFinishLoad):
469         (WebKit::FrameLoaderClient::frameLoadCompleted):
470         (WebKit::FrameLoaderClient::saveViewStateToItem):
471         (WebKit::FrameLoaderClient::restoreViewState):
472         (WebKit::FrameLoaderClient::shouldGoToHistoryItem):
473         (WebKit::FrameLoaderClient::setTitle):
474         * WebCoreSupport/FrameLoaderClientGtk.h:
475
476 2007-11-22  Michael Natterer  <mitch@imendio.com>
477
478         Reviewed by Alp Toker.
479
480         http://bugs.webkit.org/show_bug.cgi?id=15984
481         Implement "navigation-requested" signal for WebKit Gtk
482
483         * Api/webkitgtknetworkrequest.h: fix parent class member.
484
485         * Api/webkitgtknetworkrequest.cpp
486         * Api/webkitgtkprivate.h: basic implementation featuring an
487         "url" member and API.
488
489         * Api/webkitgtkdefines.h: added network request typedefs.
490
491         * Api/webkitgtkpage.h: fix enum name:
492         s/WEBKIT_NAVIGATION_REQUEST_RESPONSE/WebKitNavigationRequestResponse/
493         and sanitized enum values.
494
495         * Api/webkitgtkpage.cpp: made "navigation-requested" a signal.
496
497         * Api/webkitgtk-marshal.list: added INT:OBJECT,OBJECT
498
499         * WebCoreSupport/FrameLoaderClientGtk.cpp: emit the new signal in
500         dispatchDecidePolicyForNavigationAction().
501
502 2007-11-18  Christian Dywan  <christian@twotoasts.de>
503
504         Reviewed by Alp.
505
506         http://bugs.webkit.org/show_bug.cgi?id=15891
507         [GTK] Javascript console and dialogs are not implemented
508
509         Correct script-prompt to return NULL when cancelled.
510
511         Small changes to avoid compiler warnings.
512
513         * Api/webkitgtkpage.cpp:
514
515 2007-11-17  Timothy Hatcher  <timothy@apple.com>
516
517         Reviewed by Mark Rowe.
518
519         Bug 13470: i18n: The Web Inspector is not localizable
520         http://bugs.webkit.org/show_bug.cgi?id=13470
521
522         * WebCoreSupport/InspectorClientGtk.cpp:
523         (WebKit::InspectorClient::localizedStringsURL): Empty stub.
524         * WebCoreSupport/InspectorClientGtk.h: Add localizedStringsURL.
525
526 2007-11-13  Mark Rowe  <mrowe@apple.com>
527
528         Gtk build fix. Replace incorrect use of the LOG macro with g_print.
529
530         * Api/webkitgtkpage.cpp:
531
532 2007-11-13  Christian Dywan  <christian@twotoasts.de>
533
534         Reviewed by Alp.
535
536         http://bugs.webkit.org/show_bug.cgi?id=15891
537         [GTK] Javascript console and dialogs are not implemented
538
539         Implement signals for script dialogs and console messages.
540
541         * Api/webkitgtk-marshal.list:
542         * Api/webkitgtkpage.cpp:
543         * Api/webkitgtkpage.h:
544         * WebCoreSupport/ChromeClientGtk.cpp:
545         (WebKit::ChromeClient::addMessageToConsole):
546         (WebKit::ChromeClient::runJavaScriptAlert):
547         (WebKit::ChromeClient::runJavaScriptConfirm):
548         (WebKit::ChromeClient::runJavaScriptPrompt):
549
550 2007-11-11  Alp Toker  <alp@atoker.com>
551
552         Reviewed by Anders.
553
554         Initialize m_userAgent.
555
556         Fix typos in GDK_WINDOWING conditionals.
557
558         * WebCoreSupport/FrameLoaderClientGtk.cpp:
559         (WebKit::FrameLoaderClient::FrameLoaderClient):
560         (WebKit::agentPlatform):
561
562 2007-11-11  Alp Toker  <alp@atoker.com>
563
564         Reviewed by Mark Rowe.
565
566         Mention Safari in the UserAgent string to improve site compatibility.
567
568         Also bump the hard-coded AppleWebKit version number.
569
570         * WebCoreSupport/FrameLoaderClientGtk.cpp:
571         (WebKit::composeUserAgent):
572
573 2007-11-09  Xan Lopez  <xan@gnome.org>
574
575         Reviewed by Alp.
576
577         Fix http://bugs.webkit.org/show_bug.cgi?id=15926
578         [GTK] WebKitPage map handler is redundant.
579
580         * Api/webkitgtkpage.cpp:
581         The map handler for WebKitPage is redundant, GtkContainer does
582         the same (and more correctly).
583
584 2007-11-08  Alp Toker  <alp@atoker.com>
585
586         Reviewed by Mark Rowe.
587
588         http://bugs.webkit.org/show_bug.cgi?id=15653
589         [GTK] Text editor does not handle common keystrokes
590
591         Handle more keystrokes in EditorClientGtk. Note that this is a
592         temporary measure pending a proper solution using GtkBindingSet (see
593         http://bugs.webkit.org/show_bug.cgi?id=15911).
594
595         * WebCoreSupport/EditorClientGtk.cpp:
596         (WebKit::EditorClient::handleKeypress):
597
598 2007-11-08  Kevin McCullough  <kmccullough@apple.com>
599
600         Reviewed by Sam.
601
602         - windowObjectCleared() is no longer const.  It needs to setup the
603         script debugger and cannot be const to do so.
604
605         * WebCoreSupport/FrameLoaderClientGtk.cpp:
606         (WebKit::FrameLoaderClient::windowObjectCleared):
607         * WebCoreSupport/FrameLoaderClientGtk.h:
608
609 2007-11-06  Rodney Dawes  <dobey@wayofthemonkey.com>
610
611         Fix http://bugs.webkit.org/attachment.cgi?id=17043&action=view
612         Bug 15766: [GTK] WebKit sometimes spews binary data as text/plain into iframes
613
614         FrameLoaderClient::objectContentType needs to check with the MIMETypeRegistry
615         to determine whether the given MIME type is displayable as an image or non-image.
616
617         * WebCoreSupport/FrameLoaderClientGtk.cpp:
618         (FrameLoaderClient::objectContentType): Change logic to match that in
619         the Windows and Mac ports.
620
621 2007-11-05  Christian Dywan  <christian@twotoasts.de>
622
623         Reviewed by Maciej.
624
625         http://bugs.webkit.org/show_bug.cgi?id=15409
626         FrameLoaderClientGtk hardcodes data, including platform to Linux i686
627
628         Compute a proper user agent string.
629
630         Patch includes fixes by Alp.
631
632         * WebCoreSupport/FrameLoaderClientGtk.cpp:
633         (WebKit::agentPlatform):
634         (WebKit::agentOS):
635         (WebKit::composeUserAgent):
636         (WebKit::FrameLoaderClient::userAgent):
637         * WebCoreSupport/FrameLoaderClientGtk.h:
638
639 2007-11-05  Mark Rowe  <mrowe@apple.com>
640
641         Rubber-stamped by Alp Toker.
642
643         Remove unused m_firstData member from FrameLoaderClientGtk.
644
645         * WebCoreSupport/FrameLoaderClientGtk.cpp:
646         * WebCoreSupport/FrameLoaderClientGtk.h:
647
648 2007-11-05  Mark Rowe  <mrowe@apple.com>
649
650         Reviewed by Alp Toker.
651
652         Fix http://bugs.webkit.org/show_bug.cgi?id=15842
653         Bug 15842: [Gtk] about:blank doesn't work
654
655         * WebCoreSupport/FrameLoaderClientGtk.cpp:
656         (WebKit::FrameLoaderClient::finishedLoading): Set the encoding on the frame loader to
657         get work done that is normally done when the first bit of data is received, even in the
658         case of a document with no data (like about:blank).
659
660 2007-11-03  Alp Toker  <alp@atoker.com>
661
662         Reviewed by Mark Rowe.
663
664         Restore correct double and triple click behaviour
665
666         We ended up ignoring GDK_2BUTTON_PRESS and GDK_3BUTTON_PRESS after
667         recent refactoring.
668
669         * Api/webkitgtkpage.cpp:
670
671 2007-11-03  Alp Toker  <alp@atoker.com>
672
673         Reviewed by Mark Rowe.
674
675         Frame scrolling and invalidation fixes
676
677         Make upward scroll events have a positive delta to match other ports.
678
679         Fix the invalidation rect offset for frames so that scrolling works properly.
680
681         Avoid allocating negative sizes to widgets to avoid GTK+ warnings.
682
683         Allow tabbing to all widgets and links.
684
685         Fix event returns, improving the focus situation and correcting scroll wheel
686         behavior.
687
688         * Api/webkitgtkpage.cpp:
689         * WebCoreSupport/ChromeClientGtk.cpp:
690
691 2007-10-29  Alp Toker  <alp@atoker.com>
692
693         Reviewed by Maciej.
694
695         Do not allow control to reach end of non-void functions
696
697         * Api/webkitgtksettings.cpp:
698
699 2007-10-28  Lars Lindner  <lars.lindner@gmail.com>
700
701         Reviewed by Alp.
702
703         http://bugs.webkit.org/show_bug.cgi?id=15466
704         [gtk] widget does not take focus on mouse click
705
706         Grab widget focus in mouse press callback.
707
708         * Api/webkitgtkpage.cpp:
709
710 2007-10-25  Alp Toker  <alp@atoker.com>
711
712         Reviewed by Brady.
713
714         http://bugs.webkit.org/show_bug.cgi?id=15686
715         GtkLauncher aborts on launch due to uninitialized threading subsystem
716
717         Re-enable database support in the GTK+ port, with a fix.
718
719         Initialize GLib threading as early as possible.
720
721         * Api/webkitgtkglobal.cpp:
722
723 2007-10-25  Alp Toker  <alp@atoker.com>
724
725         Unreviewed fix to make the GTK+ port run.
726
727         http://bugs.webkit.org/show_bug.cgi?id=15686
728         GtkLauncher aborts on launch due to uninitialized threading subsystem
729
730         http://bugs.webkit.org/show_bug.cgi?id=15688
731         [GTK] Make it possible to disable database support
732
733         Make database path initialization conditional on database support
734         being enabled.
735
736         * Api/webkitgtkglobal.cpp:
737
738 2007-10-24  Mark Rowe  <mrowe@apple.com>
739
740         Gtk build fix.  Track WebCore changes in r27004.
741
742         * Api/webkitgtkglobal.cpp:
743
744 2007-10-22  Alp Toker  <alp@atoker.com>
745
746         Reviewed by Mark Rowe.
747
748         http://bugs.webkit.org/show_bug.cgi?id=15611
749         [GTK] Text selection behaviour different in Debug and Release builds
750
751         http://bugs.webkit.org/show_bug.cgi?id=15578
752         [GTK] Text editor caret does not blink
753
754         Never allow control to reach the end of non-void functions.
755
756         Return more sensible values, or in some cases, nulls.
757
758         * Api/webkitgtksettings.cpp:
759         * Api/webkitgtksettings.h:
760         * WebCoreSupport/DragClientGtk.cpp:
761         (WebKit::DragClient::actionMaskForDrag):
762         (WebKit::DragClient::dragSourceActionMaskForPoint):
763         (WebKit::DragClient::createDragImageForLink):
764
765 2007-10-20  Mark Rowe  <mrowe@apple.com>
766
767         Reviewed by Alp.
768
769         Gtk changes needed to enable HTML 5 client-side database storage.
770
771         * Api/webkitgtkglobal.cpp: Set a default database path based on the user data directory.
772         This should become configurable by client applications in the future.
773
774 2007-10-20  Mark Rowe  <mrowe@apple.com>
775
776         Reviewed by Eric.
777
778         Don't allow control characters to be inserted into editable regions.
779
780         * WebCoreSupport/EditorClientGtk.cpp:
781         (WebKit::EditorClient::handleKeypress):
782
783 2007-10-19  Alp Toker  <alp@atoker.com>
784
785         Reviewed by Oliver.
786
787         GTK+ build fix enabling the new local database storage feature.
788         There is also a prospective Qt build fix.
789
790         * WebCoreSupport/ChromeClientGtk.cpp:
791         (WebKit::ChromeClient::runDatabaseSizeLimitPrompt):
792         * WebCoreSupport/ChromeClientGtk.h:
793
794 2007-10-14  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
795
796         Reviewed by Adam.
797
798         http://bugs.webkit.org/show_bug.cgi?id=15299
799         Fix "hovering_over_link" signal not emitted when consecutive links
800         are hovered.
801
802         * WebCoreSupport/ChromeClientGtk.cpp:
803         (WebKit::ChromeClient::mouseDidMoveOverElement):
804         * WebCoreSupport/ChromeClientGtk.h:
805         - Remove m_didSendLinkSignal as it is superseded by m_hoveredLinkURL
806
807 2007-10-10  Alice Liu  <alice.liu@apple.com>
808
809         Reviewed by Geoff Garen.
810
811         changes to keep the build from breaking
812
813         * WebCoreSupport/FrameLoaderClientGtk.cpp:
814         (WebKit::FrameLoaderClient::createFrame):
815         * WebCoreSupport/FrameLoaderClientGtk.h:
816
817 2007-10-03  Alp Toker  <alp@atoker.com>
818
819         Reviewed by Adam.
820
821         http://bugs.webkit.org/show_bug.cgi?id=14726
822         [gtk] API design. Mapping the WebView delegates to signals.
823
824         Change the API namespace of the Gtk+ port from 'WebKitGtk' to 'WebKit'.
825
826         * Api/webkitgtkdefines.h:
827         * Api/webkitgtkframe.cpp:
828         * Api/webkitgtkframe.h:
829         * Api/webkitgtkglobal.cpp:
830         * Api/webkitgtkglobal.h:
831         * Api/webkitgtknetworkrequest.h:
832         * Api/webkitgtkpage.cpp:
833         * Api/webkitgtkpage.h:
834         * Api/webkitgtkprivate.cpp:
835         (WebKit::apply):
836         (WebKit::create):
837         (WebKit::getFrameFromPage):
838         (WebKit::getPageFromFrame):
839         (WebKit::core):
840         (WebKit::kit):
841         * Api/webkitgtkprivate.h:
842         * Api/webkitgtksettings.cpp:
843         * Api/webkitgtksettings.h:
844         * WebCoreSupport/ChromeClientGtk.cpp:
845         (WebKit::ChromeClient::ChromeClient):
846         (WebKit::ChromeClient::createWindow):
847         (WebKit::ChromeClient::addMessageToConsole):
848         (WebKit::ChromeClient::runJavaScriptAlert):
849         (WebKit::ChromeClient::runJavaScriptConfirm):
850         (WebKit::ChromeClient::runJavaScriptPrompt):
851         * WebCoreSupport/ChromeClientGtk.h:
852         (WebKit::ChromeClient::webPage):
853         * WebCoreSupport/EditorClientGtk.cpp:
854         (WebKit::EditorClient::EditorClient):
855         * WebCoreSupport/EditorClientGtk.h:
856         * WebCoreSupport/FrameLoaderClientGtk.cpp:
857         (WebKit::FrameLoaderClient::FrameLoaderClient):
858         (WebKit::FrameLoaderClient::postProgressStartedNotification):
859         (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification):
860         (WebKit::FrameLoaderClient::postProgressFinishedNotification):
861         (WebKit::FrameLoaderClient::createFrame):
862         (WebKit::FrameLoaderClient::dispatchDidReceiveIcon):
863         (WebKit::FrameLoaderClient::setTitle):
864         * WebCoreSupport/FrameLoaderClientGtk.h:
865         (WebKit::FrameLoaderClient::webFrame):
866
867 2007-10-02  Cosimo Cecchi  <cosimoc@svn.gnome.org>
868
869         Reviewed by Mark.
870
871         http://bugs.webkit.org/show_bug.cgi?id=15299
872         Fix "hovering_over_link" signal being fired every time mouse moves.
873
874         * WebCoreSupport/ChromeClientGtk.cpp:
875         (WebKit::ChromeClient::ChromeClient):
876         (WebKit::ChromeClient::mouseDidMoveOverElement):
877         * WebCoreSupport/ChromeClientGtk.h:
878
879 2007-09-21  Sean Egan  <seanegan@gmail.com>
880
881         Reviewed by Alp.
882
883         Add an "execute_script" method to programmatically call Javascript
884         http://bugs.webkit.org/show_bug.cgi?id=15255
885
886         * Api/webkitgtkpage.cpp:
887         * Api/webkitgtkpage.h:
888
889 2007-09-29  Lars Lindner  <lars.lindner@gmail.com>
890
891         Reviewed by Adam.
892
893         ChromeClientGtk.cpp does not implement mouseDidMoveOverElement()
894         http://bugs.webkit.org/show_bug.cgi?id=15299
895
896         Implementing "hovering_over_link" signal.
897
898         * WebCoreSupport/ChromeClientGtk.cpp:
899         (WebKit::ChromeClient::mouseDidMoveOverElement):
900
901 2007-09-26  Mark Rowe  <mrowe@apple.com>
902
903         Gtk build fix.
904
905         * WebCoreSupport/FrameLoaderClientGtk.cpp:  Check for empty URL instead of invalid URL.
906
907 2007-09-17  Holger Hans Peter Freyther  <zecke@selfish.org>
908
909         Reviewed by Adam.
910
911         WebKitGtkPage and WebKitGtkFrame have a dependency on each other. To
912         allow client code to include both headers the typedef's for
913         WebKitGtkFrame, WebKitGtkPage, WebKitGtkFrameData and WebKitGtkNetworkRequest
914         are moved into webkitgtkdefines.h and included by both webkitgtkpage.h and
915         webkitgtkframe.h
916
917         * Api/webkitgtkdefines.h:
918         * Api/webkitgtkframe.h:
919         * Api/webkitgtkpage.h:
920
921 2007-09-17  Cyril Brulebois  <cyril.brulebois@enst-bretagne.fr>
922
923         Reviewed by Mark, some Coding Style changes by Holger.
924
925         This is from http://bugs.webkit.org/show_bug.cgi?id=14812.
926
927         Add title and location to WebKitGtkFramePrivate, add
928         webkit_gtk_frame_get_location to the WebKitGtkFrame API as well
929         as a title_changed callback, implement
930         webkit_gtk_frame_get_title and webkit_gtk_frame_get_location.
931
932         Initial patch by Diego Escalante Urrelo.
933
934         * Api/webkitgtkframe.cpp:
935         * Api/webkitgtkframe.h:
936         * Api/webkitgtkprivate.h:
937
938 2007-09-15  Holger Hans Peter Freyther  <zecke@selfish.org>
939
940         Reviewed by Mark.
941
942         Use the new WebCore::String::fromUTF8 function to convert
943         from the Gtk+ representation of a string to WebCore::String.
944
945         * WebCoreSupport/ChromeClientGtk.cpp:
946         (WebKit::ChromeClient::runJavaScriptPrompt):
947
948 2007-09-10  Nigel Tao  <nigeltao@gnome.org>
949
950         Reviewed by Mark Rowe.
951
952         Fix a typo where webkit_gtk_page_can_copy was declared twice,
953         rather than webkit_gtk_page_can_paste.
954
955         * Api/webkitgtkpage.h:
956
957 2007-09-08  Brady Eidson  <beidson@apple.com>
958
959         Better build fix
960
961         * WebCoreSupport/FrameLoaderClientGtk.cpp:
962         (WebKit::FrameLoaderClient::registerForIconNotification):
963         * WebCoreSupport/FrameLoaderClientGtk.h:
964
965 2007-09-08  Brady Eidson  <beidson@apple.com>
966
967         Build fix
968
969         * WebCoreSupport/FrameLoaderClientGtk.cpp:
970         (WebKit::FrameLoaderClient::registerForIconNotification):
971         * WebCoreSupport/FrameLoaderClientGtk.h:
972
973 2007-09-05  Geoffrey Garen  <ggaren@apple.com>
974
975         Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
976         
977         Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no 
978         memory cache, or a very tiny one
979         
980         Keep the GTK build working with an empty stub.
981         
982         * WebCoreSupport/FrameLoaderClientGtk.cpp:
983         (WebKit::FrameLoaderClient::didPerformFirstNavigation):
984         * WebCoreSupport/FrameLoaderClientGtk.h:
985
986 2007-09-01  Oliver Hunt  <oliver@apple.com>
987
988         Reviewed by Sam.
989
990         <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions
991  
992         EditorClient::setInputMethodState stub
993
994         * WebCoreSupport/EditorClientGtk.cpp:
995         (WebKit::EditorClient::setInputMethodState):
996         * WebCoreSupport/EditorClientGtk.h:
997
998 2007-08-18  Holger Hans Peter Freyther  <zecke@selfish.org>
999
1000         Build fix. Add const to the first parameter of createPlugin
1001
1002         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1003
1004 2007-08-17  Anders Carlsson  <andersca@apple.com>
1005
1006         Build fix.
1007         
1008         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1009         (WebKit::FrameLoaderClient::createPlugin):
1010         * WebCoreSupport/FrameLoaderClientGtk.h:
1011
1012 2007-08-11  Holger Hans Peter Freyther  <zecke@selfish.org>
1013
1014         Reviewed by Adam.
1015
1016         To not hit the needsLayout() assert of Frame::paint for subframes we need to
1017         make sure they are layed out. Use the newly created FrameView::layoutIfNeededRecursive
1018         method to do this.
1019
1020         * Api/webkitgtkpage.cpp:
1021
1022 2007-08-11  Holger Hans Peter Freyther  <zecke@selfish.org>
1023
1024         Reviewed by Adam.
1025
1026         Fix text selection by setting a DragClient when creating the Page. Now
1027         that we have a DragClient we can free the Page when WebKitGtkPage gets
1028         destructed.
1029
1030         * Api/webkitgtkpage.cpp:
1031         * WebCoreSupport/DragClientGtk.cpp: Added.
1032         (WebKit::DragClient::willPerformDragDestinationAction):
1033         (WebKit::DragClient::willPerformDragSourceAction):
1034         (WebKit::DragClient::actionMaskForDrag):
1035         (WebKit::DragClient::dragSourceActionMaskForPoint):
1036         (WebKit::DragClient::startDrag):
1037         (WebKit::DragClient::createDragImageForLink):
1038         * WebCoreSupport/DragClientGtk.h: Added.
1039
1040 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
1041
1042         Reviewed by Anders.
1043
1044         Make WebKitGtkPage a GtkContainer to avoid a size_allocate
1045         race of GtkScrollBar and GtkLayout.
1046
1047         * Api/webkitgtk-marshal.list:
1048         * Api/webkitgtkframe.cpp:
1049         * Api/webkitgtkpage.cpp:
1050         * Api/webkitgtkpage.h:
1051         * Api/webkitgtkprivate.h:
1052
1053 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
1054
1055         Reviewed by Niko.
1056
1057         Minor changes to the WebKit::EditorClient to allow removing
1058         of text from TextFields. Remove the selectWordBeforeMenuEvent method
1059         which is not used and not within WebCore::EditorClient. 
1060
1061         * WebCoreSupport/EditorClientGtk.cpp:
1062         (WebKit::EditorClient::shouldDeleteRange):
1063         (WebKit::EditorClient::shouldBeginEditing):
1064         (WebKit::EditorClient::shouldEndEditing):
1065         (WebKit::EditorClient::shouldApplyStyle):
1066         (WebKit::EditorClient::shouldInsertNode):
1067         * WebCoreSupport/EditorClientGtk.h:
1068
1069 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
1070
1071         Reviewed by Mark.
1072
1073         Rename the namespace from WebKitGtk to WebKit. Move the various *Client
1074         classes into the WebKit namespace. Change the class names to not contain Gtk.
1075         The file names have to contain the Gtk suffix to not clash with files in WebCore (e.g.
1076         bridge/EditorClient.h).
1077         
1078
1079         * Api/webkitgtkframe.cpp:
1080         * Api/webkitgtkpage.cpp:
1081         * Api/webkitgtkprivate.cpp:
1082         * Api/webkitgtkprivate.h:
1083         * ChangeLog:
1084         * WebCoreSupport/ChromeClientGtk.cpp:
1085         (WebKit::ChromeClient::ChromeClient):
1086         (WebKit::ChromeClient::chromeDestroyed):
1087         (WebKit::ChromeClient::windowRect):
1088         (WebKit::ChromeClient::setWindowRect):
1089         (WebKit::ChromeClient::pageRect):
1090         (WebKit::ChromeClient::scaleFactor):
1091         (WebKit::ChromeClient::focus):
1092         (WebKit::ChromeClient::unfocus):
1093         (WebKit::ChromeClient::createWindow):
1094         (WebKit::ChromeClient::createModalDialog):
1095         (WebKit::ChromeClient::show):
1096         (WebKit::ChromeClient::canRunModal):
1097         (WebKit::ChromeClient::runModal):
1098         (WebKit::ChromeClient::setToolbarsVisible):
1099         (WebKit::ChromeClient::toolbarsVisible):
1100         (WebKit::ChromeClient::setStatusbarVisible):
1101         (WebKit::ChromeClient::statusbarVisible):
1102         (WebKit::ChromeClient::setScrollbarsVisible):
1103         (WebKit::ChromeClient::scrollbarsVisible):
1104         (WebKit::ChromeClient::setMenubarVisible):
1105         (WebKit::ChromeClient::menubarVisible):
1106         (WebKit::ChromeClient::setResizable):
1107         (WebKit::ChromeClient::closeWindowSoon):
1108         (WebKit::ChromeClient::canTakeFocus):
1109         (WebKit::ChromeClient::takeFocus):
1110         (WebKit::ChromeClient::canRunBeforeUnloadConfirmPanel):
1111         (WebKit::ChromeClient::runBeforeUnloadConfirmPanel):
1112         (WebKit::ChromeClient::runJavaScriptAlert):
1113         (WebKit::ChromeClient::runJavaScriptConfirm):
1114         (WebKit::ChromeClient::setStatusbarText):
1115         (WebKit::ChromeClient::shouldInterruptJavaScript):
1116         (WebKit::ChromeClient::tabsToLinks):
1117         (WebKit::ChromeClient::windowResizerRect):
1118         (WebKit::ChromeClient::addToDirtyRegion):
1119         (WebKit::ChromeClient::scrollBackingStore):
1120         (WebKit::ChromeClient::updateBackingStore):
1121         (WebKit::ChromeClient::mouseDidMoveOverElement):
1122         (WebKit::ChromeClient::setToolTip):
1123         * WebCoreSupport/ChromeClientGtk.h:
1124         * WebCoreSupport/ContextMenuClientGtk.cpp:
1125         (WebKit::ContextMenuClient::contextMenuDestroyed):
1126         (WebKit::ContextMenuClient::getCustomMenuFromDefaultItems):
1127         (WebKit::ContextMenuClient::contextMenuItemSelected):
1128         (WebKit::ContextMenuClient::downloadURL):
1129         (WebKit::ContextMenuClient::copyImageToClipboard):
1130         (WebKit::ContextMenuClient::searchWithGoogle):
1131         (WebKit::ContextMenuClient::lookUpInDictionary):
1132         (WebKit::ContextMenuClient::speak):
1133         * WebCoreSupport/ContextMenuClientGtk.h:
1134         * WebCoreSupport/EditorClientGtk.cpp:
1135         (WebKit::EditorClient::shouldDeleteRange):
1136         (WebKit::EditorClient::shouldShowDeleteInterface):
1137         (WebKit::EditorClient::isContinuousSpellCheckingEnabled):
1138         (WebKit::EditorClient::isGrammarCheckingEnabled):
1139         (WebKit::EditorClient::spellCheckerDocumentTag):
1140         (WebKit::EditorClient::shouldBeginEditing):
1141         (WebKit::EditorClient::shouldEndEditing):
1142         (WebKit::EditorClient::shouldInsertText):
1143         (WebKit::EditorClient::shouldChangeSelectedRange):
1144         (WebKit::EditorClient::shouldApplyStyle):
1145         (WebKit::EditorClient::shouldMoveRangeAfterDelete):
1146         (WebKit::EditorClient::didBeginEditing):
1147         (WebKit::EditorClient::respondToChangedContents):
1148         (WebKit::EditorClient::respondToChangedSelection):
1149         (WebKit::EditorClient::didEndEditing):
1150         (WebKit::EditorClient::didWriteSelectionToPasteboard):
1151         (WebKit::EditorClient::didSetSelectionTypesForPasteboard):
1152         (WebKit::EditorClient::selectWordBeforeMenuEvent):
1153         (WebKit::EditorClient::isEditable):
1154         (WebKit::EditorClient::registerCommandForUndo):
1155         (WebKit::EditorClient::registerCommandForRedo):
1156         (WebKit::EditorClient::clearUndoRedoOperations):
1157         (WebKit::EditorClient::canUndo):
1158         (WebKit::EditorClient::canRedo):
1159         (WebKit::EditorClient::undo):
1160         (WebKit::EditorClient::redo):
1161         (WebKit::EditorClient::shouldInsertNode):
1162         (WebKit::EditorClient::pageDestroyed):
1163         (WebKit::EditorClient::smartInsertDeleteEnabled):
1164         (WebKit::EditorClient::toggleContinuousSpellChecking):
1165         (WebKit::EditorClient::toggleGrammarChecking):
1166         (WebKit::EditorClient::handleInputMethodKeypress):
1167         (WebKit::EditorClient::EditorClient):
1168         (WebKit::EditorClient::textFieldDidBeginEditing):
1169         (WebKit::EditorClient::textFieldDidEndEditing):
1170         (WebKit::EditorClient::textDidChangeInTextField):
1171         (WebKit::EditorClient::doTextFieldCommandFromEvent):
1172         (WebKit::EditorClient::textWillBeDeletedInTextField):
1173         (WebKit::EditorClient::textDidChangeInTextArea):
1174         (WebKit::EditorClient::ignoreWordInSpellDocument):
1175         (WebKit::EditorClient::learnWord):
1176         (WebKit::EditorClient::checkSpellingOfString):
1177         (WebKit::EditorClient::checkGrammarOfString):
1178         (WebKit::EditorClient::updateSpellingUIWithGrammarString):
1179         (WebKit::EditorClient::updateSpellingUIWithMisspelledWord):
1180         (WebKit::EditorClient::showSpellingUI):
1181         (WebKit::EditorClient::spellingUIIsShowing):
1182         * WebCoreSupport/EditorClientGtk.h:
1183         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1184         (WebKit::FrameLoaderClient::FrameLoaderClient):
1185         (WebKit::FrameLoaderClient::userAgent):
1186         (WebKit::FrameLoaderClient::createDocumentLoader):
1187         (WebKit::FrameLoaderClient::committedLoad):
1188         (WebKit::FrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
1189         (WebKit::FrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
1190         (WebKit::FrameLoaderClient::dispatchWillSendRequest):
1191         (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest):
1192         (WebKit::FrameLoaderClient::postProgressStartedNotification):
1193         (WebKit::FrameLoaderClient::postProgressFinishedNotification):
1194         (WebKit::FrameLoaderClient::frameLoaderDestroyed):
1195         (WebKit::FrameLoaderClient::dispatchDidReceiveResponse):
1196         (WebKit::FrameLoaderClient::createPlugin):
1197         (WebKit::FrameLoaderClient::redirectDataToPlugin):
1198         (WebKit::FrameLoaderClient::createJavaAppletWidget):
1199         (WebKit::FrameLoaderClient::overrideMediaType):
1200         (WebKit::FrameLoaderClient::windowObjectCleared):
1201         (WebKit::FrameLoaderClient::setMainFrameDocumentReady):
1202         (WebKit::FrameLoaderClient::hasWebView):
1203         (WebKit::FrameLoaderClient::hasFrameView):
1204         (WebKit::FrameLoaderClient::dispatchDidFinishLoad):
1205         (WebKit::FrameLoaderClient::frameLoadCompleted):
1206         (WebKit::FrameLoaderClient::saveViewStateToItem):
1207         (WebKit::FrameLoaderClient::restoreViewState):
1208         (WebKit::FrameLoaderClient::privateBrowsingEnabled):
1209         (WebKit::FrameLoaderClient::makeDocumentView):
1210         (WebKit::FrameLoaderClient::makeRepresentation):
1211         (WebKit::FrameLoaderClient::forceLayout):
1212         (WebKit::FrameLoaderClient::forceLayoutForNonHTML):
1213         (WebKit::FrameLoaderClient::setCopiesOnScroll):
1214         (WebKit::FrameLoaderClient::detachedFromParent1):
1215         (WebKit::FrameLoaderClient::detachedFromParent2):
1216         (WebKit::FrameLoaderClient::detachedFromParent3):
1217         (WebKit::FrameLoaderClient::detachedFromParent4):
1218         (WebKit::FrameLoaderClient::loadedFromCachedPage):
1219         (WebKit::FrameLoaderClient::dispatchDidHandleOnloadEvents):
1220         (WebKit::FrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
1221         (WebKit::FrameLoaderClient::dispatchDidCancelClientRedirect):
1222         (WebKit::FrameLoaderClient::dispatchWillPerformClientRedirect):
1223         (WebKit::FrameLoaderClient::dispatchDidChangeLocationWithinPage):
1224         (WebKit::FrameLoaderClient::dispatchWillClose):
1225         (WebKit::FrameLoaderClient::dispatchDidReceiveIcon):
1226         (WebKit::FrameLoaderClient::dispatchDidStartProvisionalLoad):
1227         (WebKit::FrameLoaderClient::dispatchDidReceiveTitle):
1228         (WebKit::FrameLoaderClient::dispatchDidCommitLoad):
1229         (WebKit::FrameLoaderClient::dispatchDidFinishDocumentLoad):
1230         (WebKit::FrameLoaderClient::dispatchDidFirstLayout):
1231         (WebKit::FrameLoaderClient::dispatchShow):
1232         (WebKit::FrameLoaderClient::cancelPolicyCheck):
1233         (WebKit::FrameLoaderClient::dispatchDidLoadMainResource):
1234         (WebKit::FrameLoaderClient::revertToProvisionalState):
1235         (WebKit::FrameLoaderClient::clearUnarchivingState):
1236         (WebKit::FrameLoaderClient::willChangeTitle):
1237         (WebKit::FrameLoaderClient::didChangeTitle):
1238         (WebKit::FrameLoaderClient::finishedLoading):
1239         (WebKit::FrameLoaderClient::finalSetupForReplace):
1240         (WebKit::FrameLoaderClient::setDefersLoading):
1241         (WebKit::FrameLoaderClient::isArchiveLoadPending):
1242         (WebKit::FrameLoaderClient::cancelPendingArchiveLoad):
1243         (WebKit::FrameLoaderClient::clearArchivedResources):
1244         (WebKit::FrameLoaderClient::canHandleRequest):
1245         (WebKit::FrameLoaderClient::canShowMIMEType):
1246         (WebKit::FrameLoaderClient::representationExistsForURLScheme):
1247         (WebKit::FrameLoaderClient::generatedMIMETypeForURLScheme):
1248         (WebKit::FrameLoaderClient::provisionalLoadStarted):
1249         (WebKit::FrameLoaderClient::didFinishLoad):
1250         (WebKit::FrameLoaderClient::setDocumentViewFromCachedPage):
1251         (WebKit::FrameLoaderClient::dispatchDidReceiveContentLength):
1252         (WebKit::FrameLoaderClient::dispatchDidFinishLoading):
1253         (WebKit::FrameLoaderClient::dispatchDidFailLoading):
1254         (WebKit::FrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
1255         (WebKit::FrameLoaderClient::dispatchDidFailProvisionalLoad):
1256         (WebKit::FrameLoaderClient::dispatchDidFailLoad):
1257         (WebKit::FrameLoaderClient::download):
1258         (WebKit::FrameLoaderClient::cancelledError):
1259         (WebKit::FrameLoaderClient::blockedError):
1260         (WebKit::FrameLoaderClient::cannotShowURLError):
1261         (WebKit::FrameLoaderClient::interruptForPolicyChangeError):
1262         (WebKit::FrameLoaderClient::cannotShowMIMETypeError):
1263         (WebKit::FrameLoaderClient::fileDoesNotExistError):
1264         (WebKit::FrameLoaderClient::shouldFallBack):
1265         (WebKit::FrameLoaderClient::willUseArchive):
1266         (WebKit::FrameLoaderClient::saveDocumentViewToCachedPage):
1267         (WebKit::FrameLoaderClient::canCachePage):
1268         (WebKit::FrameLoaderClient::dispatchCreatePage):
1269         (WebKit::FrameLoaderClient::dispatchUnableToImplementPolicy):
1270         * WebCoreSupport/FrameLoaderClientGtk.h:
1271         * WebCoreSupport/InspectorClientGtk.cpp:
1272         (WebKit::InspectorClient::inspectorDestroyed):
1273         (WebKit::InspectorClient::createPage):
1274         (WebKit::InspectorClient::showWindow):
1275         (WebKit::InspectorClient::closeWindow):
1276         (WebKit::InspectorClient::attachWindow):
1277         (WebKit::InspectorClient::detachWindow):
1278         (WebKit::InspectorClient::highlight):
1279         (WebKit::InspectorClient::hideHighlight):
1280         * WebCoreSupport/InspectorClientGtk.h:
1281
1282 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
1283
1284         Reviewed by Adam.
1285
1286         As of http://bugs.webkit.org/show_bug.cgi?id=14727 move the
1287         various *ClientGdk.{cpp,h} files from WebCore to WebKit/gtk/WebCoreSupport and
1288         rename it from Gdk to Gtk.
1289
1290         * Api/webkitgtkdefines.h:
1291         * Api/webkitgtkframe.cpp:
1292         * Api/webkitgtkframe.h:
1293         * Api/webkitgtkglobal.cpp:
1294         * Api/webkitgtkglobal.h:
1295         * Api/webkitgtknetworkrequest.cpp:
1296         * Api/webkitgtknetworkrequest.h:
1297         * Api/webkitgtkpage.cpp:
1298         * Api/webkitgtkpage.h:
1299         * Api/webkitgtkprivate.cpp:
1300         * Api/webkitgtkprivate.h:
1301         * Api/webkitgtksettings.cpp:
1302         * Api/webkitgtksettings.h:
1303         * WebCoreSupport/ChromeClientGtk.cpp: Renamed from WebKit/gtk/WebCoreSupport/ChromeClientGdk.cpp.
1304         (WebKitGtk::ChromeClientGtk::ChromeClientGtk):
1305         (WebKitGtk::ChromeClientGtk::chromeDestroyed):
1306         (WebKitGtk::ChromeClientGtk::windowRect):
1307         (WebKitGtk::ChromeClientGtk::setWindowRect):
1308         (WebKitGtk::ChromeClientGtk::pageRect):
1309         (WebKitGtk::ChromeClientGtk::scaleFactor):
1310         (WebKitGtk::ChromeClientGtk::focus):
1311         (WebKitGtk::ChromeClientGtk::unfocus):
1312         (WebKitGtk::ChromeClientGtk::createWindow):
1313         (WebKitGtk::ChromeClientGtk::createModalDialog):
1314         (WebKitGtk::ChromeClientGtk::show):
1315         (WebKitGtk::ChromeClientGtk::canRunModal):
1316         (WebKitGtk::ChromeClientGtk::runModal):
1317         (WebKitGtk::ChromeClientGtk::setToolbarsVisible):
1318         (WebKitGtk::ChromeClientGtk::toolbarsVisible):
1319         (WebKitGtk::ChromeClientGtk::setStatusbarVisible):
1320         (WebKitGtk::ChromeClientGtk::statusbarVisible):
1321         (WebKitGtk::ChromeClientGtk::setScrollbarsVisible):
1322         (WebKitGtk::ChromeClientGtk::scrollbarsVisible):
1323         (WebKitGtk::ChromeClientGtk::setMenubarVisible):
1324         (WebKitGtk::ChromeClientGtk::menubarVisible):
1325         (WebKitGtk::ChromeClientGtk::setResizable):
1326         (WebKitGtk::ChromeClientGtk::closeWindowSoon):
1327         (WebKitGtk::ChromeClientGtk::canTakeFocus):
1328         (WebKitGtk::ChromeClientGtk::takeFocus):
1329         (WebKitGtk::ChromeClientGtk::canRunBeforeUnloadConfirmPanel):
1330         (WebKitGtk::ChromeClientGtk::runBeforeUnloadConfirmPanel):
1331         (WebKitGtk::ChromeClientGtk::addMessageToConsole):
1332         (WebKitGtk::ChromeClientGtk::runJavaScriptAlert):
1333         (WebKitGtk::ChromeClientGtk::runJavaScriptConfirm):
1334         (WebKitGtk::ChromeClientGtk::runJavaScriptPrompt):
1335         (WebKitGtk::ChromeClientGtk::setStatusbarText):
1336         (WebKitGtk::ChromeClientGtk::shouldInterruptJavaScript):
1337         (WebKitGtk::ChromeClientGtk::tabsToLinks):
1338         (WebKitGtk::ChromeClientGtk::windowResizerRect):
1339         (WebKitGtk::ChromeClientGtk::addToDirtyRegion):
1340         (WebKitGtk::ChromeClientGtk::scrollBackingStore):
1341         (WebKitGtk::ChromeClientGtk::updateBackingStore):
1342         (WebKitGtk::ChromeClientGtk::mouseDidMoveOverElement):
1343         (WebKitGtk::ChromeClientGtk::setToolTip):
1344         * WebCoreSupport/ChromeClientGtk.h: Renamed from WebKit/gtk/WebCoreSupport/ChromeClientGdk.h.
1345         (WebKitGtk::ChromeClientGtk::webPage):
1346         * WebCoreSupport/ContextMenuClientGtk.cpp: Renamed from WebCore/page/gdk/ContextMenuClientGdk.cpp.
1347         (WebCore::ContextMenuClientGtk::contextMenuDestroyed):
1348         (WebCore::ContextMenuClientGtk::getCustomMenuFromDefaultItems):
1349         (WebCore::ContextMenuClientGtk::contextMenuItemSelected):
1350         (WebCore::ContextMenuClientGtk::downloadURL):
1351         (WebCore::ContextMenuClientGtk::copyImageToClipboard):
1352         (WebCore::ContextMenuClientGtk::searchWithGoogle):
1353         (WebCore::ContextMenuClientGtk::lookUpInDictionary):
1354         (WebCore::ContextMenuClientGtk::speak):
1355         (WebCore::ContextMenuClientGtk::stopSpeaking):
1356         * WebCoreSupport/ContextMenuClientGtk.h: Renamed from WebCore/page/gdk/ContextMenuClientGdk.h.
1357         * WebCoreSupport/EditorClientGtk.cpp: Renamed from WebCore/platform/gdk/EditorClientGdk.cpp.
1358         (WebCore::EditorClientGtk::shouldDeleteRange):
1359         (WebCore::EditorClientGtk::shouldShowDeleteInterface):
1360         (WebCore::EditorClientGtk::isContinuousSpellCheckingEnabled):
1361         (WebCore::EditorClientGtk::isGrammarCheckingEnabled):
1362         (WebCore::EditorClientGtk::spellCheckerDocumentTag):
1363         (WebCore::EditorClientGtk::shouldBeginEditing):
1364         (WebCore::EditorClientGtk::shouldEndEditing):
1365         (WebCore::EditorClientGtk::shouldInsertText):
1366         (WebCore::EditorClientGtk::shouldChangeSelectedRange):
1367         (WebCore::EditorClientGtk::shouldApplyStyle):
1368         (WebCore::EditorClientGtk::shouldMoveRangeAfterDelete):
1369         (WebCore::EditorClientGtk::didBeginEditing):
1370         (WebCore::EditorClientGtk::respondToChangedContents):
1371         (WebCore::EditorClientGtk::respondToChangedSelection):
1372         (WebCore::EditorClientGtk::didEndEditing):
1373         (WebCore::EditorClientGtk::didWriteSelectionToPasteboard):
1374         (WebCore::EditorClientGtk::didSetSelectionTypesForPasteboard):
1375         (WebCore::EditorClientGtk::selectWordBeforeMenuEvent):
1376         (WebCore::EditorClientGtk::isEditable):
1377         (WebCore::EditorClientGtk::registerCommandForUndo):
1378         (WebCore::EditorClientGtk::registerCommandForRedo):
1379         (WebCore::EditorClientGtk::clearUndoRedoOperations):
1380         (WebCore::EditorClientGtk::canUndo):
1381         (WebCore::EditorClientGtk::canRedo):
1382         (WebCore::EditorClientGtk::undo):
1383         (WebCore::EditorClientGtk::redo):
1384         (WebCore::EditorClientGtk::shouldInsertNode):
1385         (WebCore::EditorClientGtk::pageDestroyed):
1386         (WebCore::EditorClientGtk::smartInsertDeleteEnabled):
1387         (WebCore::EditorClientGtk::toggleContinuousSpellChecking):
1388         (WebCore::EditorClientGtk::toggleGrammarChecking):
1389         (WebCore::EditorClientGtk::handleKeypress):
1390         (WebCore::EditorClientGtk::handleInputMethodKeypress):
1391         (WebCore::EditorClientGtk::EditorClientGtk):
1392         (WebCore::EditorClientGtk::textFieldDidBeginEditing):
1393         (WebCore::EditorClientGtk::textFieldDidEndEditing):
1394         (WebCore::EditorClientGtk::textDidChangeInTextField):
1395         (WebCore::EditorClientGtk::doTextFieldCommandFromEvent):
1396         (WebCore::EditorClientGtk::textWillBeDeletedInTextField):
1397         (WebCore::EditorClientGtk::textDidChangeInTextArea):
1398         (WebCore::EditorClientGtk::ignoreWordInSpellDocument):
1399         (WebCore::EditorClientGtk::learnWord):
1400         (WebCore::EditorClientGtk::checkSpellingOfString):
1401         (WebCore::EditorClientGtk::checkGrammarOfString):
1402         (WebCore::EditorClientGtk::updateSpellingUIWithGrammarString):
1403         (WebCore::EditorClientGtk::updateSpellingUIWithMisspelledWord):
1404         (WebCore::EditorClientGtk::showSpellingUI):
1405         (WebCore::EditorClientGtk::spellingUIIsShowing):
1406         (WebCore::EditorClientGtk::getGuessesForWord):
1407         * WebCoreSupport/EditorClientGtk.h: Renamed from WebCore/platform/gdk/EditorClientGdk.h.
1408         * WebCoreSupport/FrameLoaderClientGtk.cpp: Renamed from WebCore/loader/gdk/FrameLoaderClientGdk.cpp.
1409         (WebCore::FrameLoaderClientGtk::FrameLoaderClientGtk):
1410         (WebCore::FrameLoaderClientGtk::userAgent):
1411         (WebCore::FrameLoaderClientGtk::createDocumentLoader):
1412         (WebCore::FrameLoaderClientGtk::dispatchWillSubmitForm):
1413         (WebCore::FrameLoaderClientGtk::committedLoad):
1414         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveAuthenticationChallenge):
1415         (WebCore::FrameLoaderClientGtk::dispatchDidCancelAuthenticationChallenge):
1416         (WebCore::FrameLoaderClientGtk::dispatchWillSendRequest):
1417         (WebCore::FrameLoaderClientGtk::assignIdentifierToInitialRequest):
1418         (WebCore::FrameLoaderClientGtk::postProgressStartedNotification):
1419         (WebCore::FrameLoaderClientGtk::postProgressEstimateChangedNotification):
1420         (WebCore::FrameLoaderClientGtk::postProgressFinishedNotification):
1421         (WebCore::FrameLoaderClientGtk::frameLoaderDestroyed):
1422         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveResponse):
1423         (WebCore::FrameLoaderClientGtk::dispatchDecidePolicyForMIMEType):
1424         (WebCore::FrameLoaderClientGtk::dispatchDecidePolicyForNewWindowAction):
1425         (WebCore::FrameLoaderClientGtk::dispatchDecidePolicyForNavigationAction):
1426         (WebCore::FrameLoaderClientGtk::createPlugin):
1427         (WebCore::FrameLoaderClientGtk::createFrame):
1428         (WebCore::FrameLoaderClientGtk::redirectDataToPlugin):
1429         (WebCore::FrameLoaderClientGtk::createJavaAppletWidget):
1430         (WebCore::FrameLoaderClientGtk::objectContentType):
1431         (WebCore::FrameLoaderClientGtk::overrideMediaType):
1432         (WebCore::FrameLoaderClientGtk::windowObjectCleared):
1433         (WebCore::FrameLoaderClientGtk::setMainFrameDocumentReady):
1434         (WebCore::FrameLoaderClientGtk::hasWebView):
1435         (WebCore::FrameLoaderClientGtk::hasFrameView):
1436         (WebCore::FrameLoaderClientGtk::dispatchDidFinishLoad):
1437         (WebCore::FrameLoaderClientGtk::frameLoadCompleted):
1438         (WebCore::FrameLoaderClientGtk::saveViewStateToItem):
1439         (WebCore::FrameLoaderClientGtk::restoreViewState):
1440         (WebCore::FrameLoaderClientGtk::shouldGoToHistoryItem):
1441         (WebCore::FrameLoaderClientGtk::privateBrowsingEnabled):
1442         (WebCore::FrameLoaderClientGtk::makeDocumentView):
1443         (WebCore::FrameLoaderClientGtk::makeRepresentation):
1444         (WebCore::FrameLoaderClientGtk::forceLayout):
1445         (WebCore::FrameLoaderClientGtk::forceLayoutForNonHTML):
1446         (WebCore::FrameLoaderClientGtk::setCopiesOnScroll):
1447         (WebCore::FrameLoaderClientGtk::detachedFromParent1):
1448         (WebCore::FrameLoaderClientGtk::detachedFromParent2):
1449         (WebCore::FrameLoaderClientGtk::detachedFromParent3):
1450         (WebCore::FrameLoaderClientGtk::detachedFromParent4):
1451         (WebCore::FrameLoaderClientGtk::loadedFromCachedPage):
1452         (WebCore::FrameLoaderClientGtk::dispatchDidHandleOnloadEvents):
1453         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveServerRedirectForProvisionalLoad):
1454         (WebCore::FrameLoaderClientGtk::dispatchDidCancelClientRedirect):
1455         (WebCore::FrameLoaderClientGtk::dispatchWillPerformClientRedirect):
1456         (WebCore::FrameLoaderClientGtk::dispatchDidChangeLocationWithinPage):
1457         (WebCore::FrameLoaderClientGtk::dispatchWillClose):
1458         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveIcon):
1459         (WebCore::FrameLoaderClientGtk::dispatchDidStartProvisionalLoad):
1460         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveTitle):
1461         (WebCore::FrameLoaderClientGtk::dispatchDidCommitLoad):
1462         (WebCore::FrameLoaderClientGtk::dispatchDidFinishDocumentLoad):
1463         (WebCore::FrameLoaderClientGtk::dispatchDidFirstLayout):
1464         (WebCore::FrameLoaderClientGtk::dispatchShow):
1465         (WebCore::FrameLoaderClientGtk::cancelPolicyCheck):
1466         (WebCore::FrameLoaderClientGtk::dispatchDidLoadMainResource):
1467         (WebCore::FrameLoaderClientGtk::revertToProvisionalState):
1468         (WebCore::FrameLoaderClientGtk::clearUnarchivingState):
1469         (WebCore::FrameLoaderClientGtk::willChangeTitle):
1470         (WebCore::FrameLoaderClientGtk::didChangeTitle):
1471         (WebCore::FrameLoaderClientGtk::finishedLoading):
1472         (WebCore::FrameLoaderClientGtk::finalSetupForReplace):
1473         (WebCore::FrameLoaderClientGtk::setDefersLoading):
1474         (WebCore::FrameLoaderClientGtk::isArchiveLoadPending):
1475         (WebCore::FrameLoaderClientGtk::cancelPendingArchiveLoad):
1476         (WebCore::FrameLoaderClientGtk::clearArchivedResources):
1477         (WebCore::FrameLoaderClientGtk::canHandleRequest):
1478         (WebCore::FrameLoaderClientGtk::canShowMIMEType):
1479         (WebCore::FrameLoaderClientGtk::representationExistsForURLScheme):
1480         (WebCore::FrameLoaderClientGtk::generatedMIMETypeForURLScheme):
1481         (WebCore::FrameLoaderClientGtk::provisionalLoadStarted):
1482         (WebCore::FrameLoaderClientGtk::didFinishLoad):
1483         (WebCore::FrameLoaderClientGtk::prepareForDataSourceReplacement):
1484         (WebCore::FrameLoaderClientGtk::setTitle):
1485         (WebCore::FrameLoaderClientGtk::setDocumentViewFromCachedPage):
1486         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveContentLength):
1487         (WebCore::FrameLoaderClientGtk::dispatchDidFinishLoading):
1488         (WebCore::FrameLoaderClientGtk::dispatchDidFailLoading):
1489         (WebCore::FrameLoaderClientGtk::dispatchDidLoadResourceFromMemoryCache):
1490         (WebCore::FrameLoaderClientGtk::dispatchDidFailProvisionalLoad):
1491         (WebCore::FrameLoaderClientGtk::dispatchDidFailLoad):
1492         (WebCore::FrameLoaderClientGtk::download):
1493         (WebCore::FrameLoaderClientGtk::cancelledError):
1494         (WebCore::FrameLoaderClientGtk::blockedError):
1495         (WebCore::FrameLoaderClientGtk::cannotShowURLError):
1496         (WebCore::FrameLoaderClientGtk::interruptForPolicyChangeError):
1497         (WebCore::FrameLoaderClientGtk::cannotShowMIMETypeError):
1498         (WebCore::FrameLoaderClientGtk::fileDoesNotExistError):
1499         (WebCore::FrameLoaderClientGtk::shouldFallBack):
1500         (WebCore::FrameLoaderClientGtk::willUseArchive):
1501         (WebCore::FrameLoaderClientGtk::saveDocumentViewToCachedPage):
1502         (WebCore::FrameLoaderClientGtk::canCachePage):
1503         (WebCore::FrameLoaderClientGtk::dispatchCreatePage):
1504         (WebCore::FrameLoaderClientGtk::dispatchUnableToImplementPolicy):
1505         * WebCoreSupport/FrameLoaderClientGtk.h: Renamed from WebCore/loader/gdk/FrameLoaderClientGdk.h.
1506         (WebCore::FrameLoaderClientGtk::~FrameLoaderClientGtk):
1507         (WebCore::FrameLoaderClientGtk::webFrame):
1508         * WebCoreSupport/InspectorClientGtk.cpp: Renamed from WebCore/page/gdk/InspectorClientGdk.cpp.
1509         (WebCore::InspectorClientGtk::inspectorDestroyed):
1510         (WebCore::InspectorClientGtk::createPage):
1511         (WebCore::InspectorClientGtk::showWindow):
1512         (WebCore::InspectorClientGtk::closeWindow):
1513         (WebCore::InspectorClientGtk::attachWindow):
1514         (WebCore::InspectorClientGtk::detachWindow):
1515         (WebCore::InspectorClientGtk::highlight):
1516         (WebCore::InspectorClientGtk::hideHighlight):
1517         (WebCore::InspectorClientGtk::inspectedURLChanged):
1518         * WebCoreSupport/InspectorClientGtk.h: Renamed from WebCore/page/gdk/InspectorClientGdk.h.
1519
1520 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
1521
1522         Build fix.
1523
1524         * Api/webkitgtkframe.cpp:
1525
1526 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
1527
1528         Reviewed by Adam.
1529
1530         Remove the create_frame virtual method of WebKitGtkPage. This method was inspired
1531         by the Qt port but to be useful for reimplementations WebKitGtkFrameData would need
1532         to export/expose WebCore types. WebView doesn't offer such a method so I decided to
1533         remove it.
1534         Add a internal constructor to WebKitGtkFrame to be used for constructing Sub-Frames. This
1535         is currently used by FrameLoaderClientGdk::createFrame.
1536
1537         * Api/webkitgtkframe.cpp:
1538         * Api/webkitgtkframedata.cpp: Removed.
1539         * Api/webkitgtkframedata.h: Removed.
1540         * Api/webkitgtkpage.cpp:
1541         * Api/webkitgtkpage.h:
1542         * Api/webkitgtkprivate.h:
1543
1544 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
1545
1546         Reviewed by Adam.
1547
1548         Follow the changes of ScrollView in WebCore and call setContainingWindow, set the
1549         GtkAdjustment of the GtkLayout and reimplement the set_scroll_adjustments method and pass
1550         the GtkAdjustments to ScrollView.
1551         This makes having one GdkWindow for the complete FrameTree possible.
1552         
1553
1554         * gtk/Api/webkitgtkframe.cpp:
1555         * gtk/Api/webkitgtkpage.cpp:
1556
1557 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1558
1559         Reviewed by Niko.
1560
1561         We only need to set the Settings of the Page once so do it in
1562         WebKitGtkPage instead of WebKitGtkFrame.
1563
1564         * gtk/Api/webkitgtkframe.cpp:
1565         * gtk/Api/webkitgtkpage.cpp:
1566
1567 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1568
1569         Reviewed by Niko.
1570
1571         Instead of reimplementing the general event method, reimplement
1572         the specific mouse, expose, keyboard event methods.
1573
1574         Call the finalize implementation of the base class from WebKitGtkPage
1575         and WebKitGtkFrame.
1576
1577         * gtk/Api/webkitgtkframe.cpp:
1578         * gtk/Api/webkitgtkpage.cpp:
1579
1580 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1581
1582         Reviewed by Niko.
1583
1584         Remove the custom painting in favor of the Widget::paint
1585         implementation.
1586
1587         * gtk/Api/webkitgtkpage.cpp:
1588
1589 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1590
1591         Reviewed by Adam.
1592
1593         Moved code from class FrameGdk into WebKitGtkFrame. Update the
1594         webkitgrkprivate.h header file to not include FrameGdk.h.
1595
1596         * gtk/Api/webkitgtkframe.cpp:
1597         * gtk/Api/webkitgtkprivate.h:
1598
1599 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1600
1601         Reviewed by Adam.
1602
1603         Change variable names to follow the Coding-Style. Replace occurences
1604         of a_b with aB and place the '*' correctly.
1605
1606         * gtk/Api/webkitgtkframe.cpp:
1607         * gtk/Api/webkitgtkpage.cpp:
1608         * gtk/Api/webkitgtkprivate.h:
1609
1610 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1611
1612         Reviewed by Adam.
1613
1614         Reimplement GtkWidget::event and handle the keyboard and mouse
1615         events inside WebKitGtkPage.
1616
1617         * gtk/Api/webkitgtkpage.cpp:
1618         (FrameGdkExposeData::frame_gdk_expose_child):
1619         (FrameGdkExposeData::webkit_gtk_page_rendering_area_handle_gdk_event):
1620         (FrameGdkExposeData::webkit_gtk_page_register_rendering_area_events):
1621         (FrameGdkExposeData::webkit_gtk_page_class_init):
1622
1623 2007-08-07  Xan Lopez  <xan@gnome.org>
1624
1625         Reviewed by Mark Rowe.
1626
1627         http://bugs.webkit.org/show_bug.cgi?id=14815
1628         [gtk] API implementation: reload
1629
1630         * gtk/Api/webkitgtkpage.cpp: Implement the webkit_gtk_page_reload()
1631         function.
1632
1633 2007-07-30  Diego Escalante Urrelo  <diegoe@gnome.org>
1634
1635         Reviewed by Adam.
1636
1637         http://bugs.webkit.org/show_bug.cgi?id=14806
1638         Implement can_go_backward and can_go_forward in webkitgtkpage.cpp
1639
1640         * gtk/Api/webkitgtkpage.cpp: Implement webkit_gtk_page_can_go_backward() and
1641         webkit_gtk_page_can_go_forward() functions.
1642
1643 2007-07-30  Diego Escalante Urrelo  <diegoe@gnome.org> 
1644
1645         Reviewed by Alp Toker.
1646
1647         http://bugs.webkit.org/show_bug.cgi?id=14810
1648         Bad n_params on load_finished's g_signal_new in webkitgtkpage.cpp
1649
1650         This is the proper fix for #14810.
1651
1652         * gtk/Api/webkitgtkframe.cpp:
1653         * gtk/Api/webkitgtkpage.cpp: Fix the marshaller type of the "load_finished" signal and
1654         correct the class_offset parameters.
1655
1656 2007-07-29  Diego Escalante Urrelo  <diegoe@gnome.org>
1657
1658         Reviewed by Alp Toker.
1659
1660         http://bugs.webkit.org/show_bug.cgi?id=14810
1661         Bad n_params on load_finished's g_signal_new in webkitgtkpage.cpp
1662
1663         * gtk/Api/webkitgtkpage.cpp: Use a correct n_params value and the corresponding types for
1664         them in the "load_finished" signal.
1665
1666 2007-07-22  Holger Hans Peter Freyther  <zecke@selfish.org>
1667
1668         Reviewed by Adam.
1669
1670         Add the first API and partial implementation of the WebKit/Gtk port as
1671         of http://bugs.webkit.org/show_bug.cgi?id=14678.
1672
1673         The delegates of WebView will be modeled as signals. Delegates like the
1674         WebPolicyDelegate will be implemented as signals with default handlers.
1675
1676         Start moving files to WebKit/gtk/WebCoreSupport.
1677
1678         * gtk: Added.
1679         * gtk/Api: Added.
1680         * gtk/Api/headers.pri: Added.
1681         * gtk/Api/webkitgtk-marshal.list: Added.
1682         * gtk/Api/webkitgtkdefines.h: Added.
1683         * gtk/Api/webkitgtkframe.cpp: Added.
1684         * gtk/Api/webkitgtkframe.h: Added.
1685         * gtk/Api/webkitgtkframedata.cpp: Added.
1686         * gtk/Api/webkitgtkframedata.h: Added.
1687         * gtk/Api/webkitgtkglobal.cpp: Added.
1688         * gtk/Api/webkitgtkglobal.h: Added.
1689         * gtk/Api/webkitgtknetworkrequest.cpp: Added.
1690         * gtk/Api/webkitgtknetworkrequest.h: Added.
1691         * gtk/Api/webkitgtkpage.cpp: Added.
1692         * gtk/Api/webkitgtkpage.h: Added.
1693         * gtk/Api/webkitgtkprivate.cpp: Added.
1694         * gtk/Api/webkitgtkprivate.h: Added.
1695         * gtk/Api/webkitgtksettings.cpp: Added.
1696         * gtk/Api/webkitgtksettings.h: Added.
1697         * gtk/WebCoreSupport: Added.
1698         * gtk/WebCoreSupport/ChromeClientGdk.cpp: Added.
1699         (WebCore::ChromeClientGdk::ChromeClientGdk):
1700         (WebCore::ChromeClientGdk::chromeDestroyed):
1701         (WebCore::ChromeClientGdk::windowRect):
1702         (WebCore::ChromeClientGdk::setWindowRect):
1703         (WebCore::ChromeClientGdk::pageRect):
1704         (WebCore::ChromeClientGdk::scaleFactor):
1705         (WebCore::ChromeClientGdk::focus):
1706         (WebCore::ChromeClientGdk::unfocus):
1707         (WebCore::ChromeClientGdk::createWindow):
1708         (WebCore::ChromeClientGdk::createModalDialog):
1709         (WebCore::ChromeClientGdk::show):
1710         (WebCore::ChromeClientGdk::canRunModal):
1711         (WebCore::ChromeClientGdk::runModal):
1712         (WebCore::ChromeClientGdk::setToolbarsVisible):
1713         (WebCore::ChromeClientGdk::toolbarsVisible):
1714         (WebCore::ChromeClientGdk::setStatusbarVisible):
1715         (WebCore::ChromeClientGdk::statusbarVisible):
1716         (WebCore::ChromeClientGdk::setScrollbarsVisible):
1717         (WebCore::ChromeClientGdk::scrollbarsVisible):
1718         (WebCore::ChromeClientGdk::setMenubarVisible):
1719         (WebCore::ChromeClientGdk::menubarVisible):
1720         (WebCore::ChromeClientGdk::setResizable):
1721         (WebCore::ChromeClientGdk::closeWindowSoon):
1722         (WebCore::ChromeClientGdk::canTakeFocus):
1723         (WebCore::ChromeClientGdk::takeFocus):
1724         (WebCore::ChromeClientGdk::canRunBeforeUnloadConfirmPanel):
1725         (WebCore::ChromeClientGdk::runBeforeUnloadConfirmPanel):
1726         (WebCore::ChromeClientGdk::addMessageToConsole):
1727         (WebCore::ChromeClientGdk::runJavaScriptAlert):
1728         (WebCore::ChromeClientGdk::runJavaScriptConfirm):
1729         (WebCore::ChromeClientGdk::runJavaScriptPrompt):
1730         (WebCore::ChromeClientGdk::setStatusbarText):
1731         (WebCore::ChromeClientGdk::shouldInterruptJavaScript):
1732         (WebCore::ChromeClientGdk::tabsToLinks):
1733         (WebCore::ChromeClientGdk::windowResizerRect):
1734         (WebCore::ChromeClientGdk::addToDirtyRegion):
1735         (WebCore::ChromeClientGdk::scrollBackingStore):
1736         (WebCore::ChromeClientGdk::updateBackingStore):
1737         (WebCore::ChromeClientGdk::mouseDidMoveOverElement):
1738         (WebCore::ChromeClientGdk::setToolTip):
1739         (WebCore::ChromeClientGdk::print):
1740         * gtk/WebCoreSupport/ChromeClientGdk.h: Added.
1741