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