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