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