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