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