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