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