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