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