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