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