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