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