2007-12-14 Alp Toker <alp@atoker.com>
[WebKit-https.git] / WebKit / gtk / ChangeLog
1 2007-12-14  Alp Toker  <alp@atoker.com>
2
3         Fix inconsistent indentation in the license header. Maciej was right!
4
5         * WebCoreSupport/FrameLoaderClientGtk.cpp:
6
7 2007-12-14  Alp Toker  <alp@atoker.com>
8
9         Reviewed by Maciej.
10
11         http://bugs.webkit.org/show_bug.cgi?id=16432
12         [GTK] Update license headers
13
14         Consent has been given by the authors of these files to change license
15         to the LGPL as outlined in the bug report.
16
17         * WebCoreSupport/ChromeClientGtk.cpp:
18         * WebCoreSupport/ContextMenuClientGtk.cpp:
19         * WebCoreSupport/DragClientGtk.cpp:
20         * WebCoreSupport/EditorClientGtk.cpp:
21         * WebCoreSupport/FrameLoaderClientGtk.cpp:
22         (WebKit::FrameLoaderClient::makeRepresentation):
23         (WebKit::FrameLoaderClient::forceLayout):
24         (WebKit::FrameLoaderClient::forceLayoutForNonHTML):
25         (WebKit::FrameLoaderClient::setCopiesOnScroll):
26         (WebKit::FrameLoaderClient::detachedFromParent1):
27         (WebKit::FrameLoaderClient::detachedFromParent2):
28         (WebKit::FrameLoaderClient::detachedFromParent3):
29         (WebKit::FrameLoaderClient::detachedFromParent4):
30         (WebKit::FrameLoaderClient::loadedFromCachedPage):
31         (WebKit::FrameLoaderClient::dispatchDidHandleOnloadEvents):
32         (WebKit::FrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
33         (WebKit::FrameLoaderClient::dispatchDidCancelClientRedirect):
34         (WebKit::FrameLoaderClient::dispatchWillPerformClientRedirect):
35         (WebKit::FrameLoaderClient::dispatchDidChangeLocationWithinPage):
36         (WebKit::FrameLoaderClient::dispatchWillClose):
37         (WebKit::FrameLoaderClient::dispatchDidCommitLoad):
38         (WebKit::FrameLoaderClient::dispatchDidFinishDocumentLoad):
39         (WebKit::FrameLoaderClient::dispatchDidFirstLayout):
40         (WebKit::FrameLoaderClient::dispatchShow):
41         (WebKit::FrameLoaderClient::cancelPolicyCheck):
42         (WebKit::FrameLoaderClient::dispatchDidLoadMainResource):
43         (WebKit::FrameLoaderClient::revertToProvisionalState):
44         (WebKit::FrameLoaderClient::clearUnarchivingState):
45         (WebKit::FrameLoaderClient::willChangeTitle):
46         (WebKit::FrameLoaderClient::didChangeTitle):
47         (WebKit::FrameLoaderClient::finalSetupForReplace):
48         (WebKit::FrameLoaderClient::setDefersLoading):
49         (WebKit::FrameLoaderClient::isArchiveLoadPending):
50         (WebKit::FrameLoaderClient::cancelPendingArchiveLoad):
51         (WebKit::FrameLoaderClient::clearArchivedResources):
52         (WebKit::FrameLoaderClient::canHandleRequest):
53         (WebKit::FrameLoaderClient::canShowMIMEType):
54         (WebKit::FrameLoaderClient::representationExistsForURLScheme):
55         (WebKit::FrameLoaderClient::generatedMIMETypeForURLScheme):
56         (WebKit::FrameLoaderClient::dispatchDidReceiveContentLength):
57         (WebKit::FrameLoaderClient::dispatchDidFinishLoading):
58         (WebKit::FrameLoaderClient::dispatchDidFailLoading):
59         (WebKit::FrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
60         (WebKit::FrameLoaderClient::download):
61         (WebKit::FrameLoaderClient::cancelledError):
62         (WebKit::FrameLoaderClient::blockedError):
63         (WebKit::FrameLoaderClient::cannotShowURLError):
64         (WebKit::FrameLoaderClient::interruptForPolicyChangeError):
65         (WebKit::FrameLoaderClient::cannotShowMIMETypeError):
66         (WebKit::FrameLoaderClient::fileDoesNotExistError):
67         (WebKit::FrameLoaderClient::shouldFallBack):
68         (WebKit::FrameLoaderClient::willUseArchive):
69         (WebKit::FrameLoaderClient::canCachePage):
70         (WebKit::FrameLoaderClient::dispatchCreatePage):
71         (WebKit::FrameLoaderClient::dispatchUnableToImplementPolicy):
72         (WebKit::FrameLoaderClient::setMainDocumentError):
73         (WebKit::FrameLoaderClient::startDownload):
74         (WebKit::FrameLoaderClient::updateGlobalHistoryForStandardLoad):
75         (WebKit::FrameLoaderClient::updateGlobalHistoryForReload):
76         (WebKit::FrameLoaderClient::savePlatformDataToCachedPage):
77         (WebKit::FrameLoaderClient::transitionToCommittedFromCachedPage):
78         (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
79         * WebCoreSupport/InspectorClientGtk.cpp:
80         * WebView/webkitwebview.cpp:
81
82 2007-12-14  Darin Adler  <darin@apple.com>
83
84         Reviewed by Alexey.
85
86         * WebCoreSupport/EditorClientGtk.cpp:
87         (WebKit::EditorClient::handleKeyboardEvent): Changed to use Editor::command
88         instead of Editor::execCommand.
89         * WebView/webkitwebview.cpp: Ditto.
90
91 2007-12-12  Brady Eidson  <beidson@apple.com>
92
93         Reviewed by Sam Weinig
94
95         As part of doing some CachedPage and client cleanup, keep GTK building
96
97         * WebCoreSupport/FrameLoaderClientGtk.cpp:
98         (WebKit::FrameLoaderClient::savePlatformDataToCachedPage):
99         (WebKit::FrameLoaderClient::transitionToCommittedFromCachedPage):
100         (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
101         * WebCoreSupport/FrameLoaderClientGtk.h:
102
103 2007-12-12  Alp Toker  <alp@atoker.com>
104
105         Reviewed by Holger Freyther.
106
107         http://bugs.webkit.org/show_bug.cgi?id=15576
108         [GTK] Printing support
109
110         Add printing support.
111
112         The API will be kept internal for the time being, but printing can now
113         be triggered by Web pages or the JSC API using JavaScript.
114
115         The print spooler and pagination code is fairly abstract and could be
116         shared by other ports including Win and Qt once complete. It doesn't
117         have header/footer support yet.
118
119         * WebCoreSupport/ChromeClientGtk.cpp:
120         (WebKit::ChromeClient::print):
121         * WebView/webkitprivate.h:
122         * WebView/webkitwebframe.cpp:
123         (PrintContext::begin_print):
124         (PrintContext::draw_page):
125         (PrintContext::end_print):
126         (PrintContext::webkit_web_frame_print):
127
128 2007-12-12  Sam Weinig  <sam@webkit.org>
129
130         Build fix.
131
132         * WebCoreSupport/FrameLoaderClientGtk.cpp:
133         (WebKit::FrameLoaderClient::didChangeTitle):
134
135 2007-12-12  Sam Weinig  <sam@webkit.org>
136
137         Build fix.
138
139         * WebCoreSupport/FrameLoaderClientGtk.cpp:
140         (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):
141
142 2007-12-11  George Wright  <george.wright@collabora.co.uk>
143
144         Reviewed by Alp Toker.
145
146         http://bugs.webkit.org/show_bug.cgi?id=14120
147         [GDK] Support input methods
148
149         This patch adds infrastructure for input method support.
150
151         It also adds Hildon features for the Maemo mobile platform sufficient
152         to support the virtual keyboard.
153
154         * WebCoreSupport/EditorClientGtk.cpp:
155         (WebKit::imContextCommitted):
156         (WebKit::EditorClient::EditorClient):
157         (WebKit::EditorClient::~EditorClient):
158         (WebKit::EditorClient::textFieldDidBeginEditing):
159         (WebKit::EditorClient::textFieldDidEndEditing):
160         * WebCoreSupport/EditorClientGtk.h:
161         * WebView/webkitprivate.h:
162         * WebView/webkitwebview.cpp:
163
164 2007-12-07  Alexey Proskuryakov  <ap@webkit.org>
165
166         Reviewed by Darin.
167
168         <rdar://problem/5535636>
169         Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
170
171         http://bugs.webkit.org/show_bug.cgi?id=13916
172         JavaScript detects Tab as a character input on a textfield validation
173
174         * WebCoreSupport/EditorClientGtk.cpp:
175         (WebKit::EditorClient::handleKeyboardEvent):
176         (WebKit::EditorClient::handleInputMethodKeydown):
177         * WebCoreSupport/EditorClientGtk.h:
178         Updated for cross-platform changes as much as it was possible without a gtk build environment.
179
180 2007-12-08  Luca Bruno  <lethalman88@gmail.com>
181
182         Reviewed by Alp Toker.
183
184         http://bugs.webkit.org/show_bug.cgi?id=16346
185         [GTK] Some webview parts must use the focused frame.
186
187         Also update some old code.
188
189         * WebView/webkitprivate.cpp:
190         (getFrameFromView): removed
191
192         * WebView/webkitprivate.h:
193         (getFrameFromView): removed
194         
195         * WebView/webkitwebview.cpp:
196         (webkit_web_view_expose_event):
197         (webkit_web_view_key_press_event): use focused frame
198         (webkit_web_view_key_release_event): use focused frame
199         (webkit_web_view_button_press_event):
200         (webkit_web_view_button_release_event):
201         (webkit_web_view_motion_event):
202         (webkit_web_view_scroll_event):
203         (webkit_web_view_size_allocate):
204         (webkit_web_view_set_scroll_adjustments):
205         (webkit_web_view_execute_script):
206         (webkit_web_view_stop_loading):
207         (webkit_web_view_load_string):
208         (webkit_web_view_reload):
209         (webkit_web_view_open):
210         (webkit_web_view_can_go_forward):
211         (webkit_web_view_can_go_backward):
212         (webkit_web_view_go_forward):
213         (webkit_web_view_go_backward):
214
215         * WebCoreSupport/EditorClientGtk.cpp:
216         (WebKit::EditorClient::handleKeypress): fix for page up and page down keys for editable contents
217
218 2007-12-07  Luca Bruno  <lethalman88@gmail.com>
219
220         Reviewed by Alp Toker.
221
222         http://bugs.webkit.org/show_bug.cgi?id=16333
223         [GTK] Key bindings must work with focused frames.
224
225         There are still more cases where getFrameFromView() is mis-used that
226         need to be fixed, but this is a good start.
227
228         * WebView/webkitwebview.cpp:
229         (webkit_web_view_real_select_all):
230         (webkit_web_view_real_cut_clipboard):
231         (webkit_web_view_real_copy_clipboard):
232         (webkit_web_view_real_paste_clipboard):
233
234 2007-12-06  Xan Lopez  <xan@gnome.org>
235
236         Reviewed by Alp Toker.
237
238         http://bugs.webkit.org/show_bug.cgi?id=16329
239         [GTK] Two small cleanups
240
241         * WebCoreSupport/ChromeClientGtk.cpp:
242         (WebKit::ChromeClient::createWindow):
243         (WebKit::ChromeClient::addMessageToConsole):
244         (WebKit::ChromeClient::runJavaScriptAlert):
245         (WebKit::ChromeClient::runJavaScriptConfirm):
246         (WebKit::ChromeClient::runJavaScriptPrompt):
247         (WebKit::ChromeClient::setStatusbarText):
248         (WebKit::ChromeClient::mouseDidMoveOverElement):
249         (WebKit::ChromeClient::setToolTip):
250         * WebCoreSupport/ChromeClientGtk.h:
251         * WebView/webkitprivate.cpp:
252         (WebKit::kit):
253         s/m_webPage/m_webView/
254         * WebView/webkitwebview.cpp:
255         Chain up to the parent class to activate bindings instead
256         of doing it explicitely.
257
258 2007-12-06  Holger Hans Peter Freyther <holger.freyther@trolltech.com>
259
260         Reviewed by Alp Toker.
261
262         http://bugs.webkit.org/show_bug.cgi?id=16173
263         Licensing change
264
265         Change license from BSD to LGPL.
266
267         * WebCoreSupport/ChromeClientGtk.h:
268         * WebView/webkitdefines.h:
269         * WebView/webkitglobal.cpp:
270         * WebView/webkitglobal.h:
271         * WebView/webkitnetworkrequest.cpp:
272         * WebView/webkitnetworkrequest.h:
273         * WebView/webkitprivate.cpp:
274         * WebView/webkitprivate.h:
275         * WebView/webkitsettings.cpp:
276         * WebView/webkitsettings.h:
277         * WebView/webkitwebframe.cpp:
278         * WebView/webkitwebframe.h:
279         * WebView/webkitwebview.h:
280
281 2007-12-05  Michael Natterer  <mitch@imendio.com>
282
283         Reviewed by Alp Toker.
284
285         * WebView/webkitwebview.cpp: split key and button event handlers
286         into separate press and release functions.
287
288 2007-12-05  Luca Bruno  <lethalman88@gmail.com>
289
290         Reviewed by Alp Toker.
291
292         Handle events for Home and End keys.
293
294         * WebView/webkitwebview.cpp:
295         (webkit_web_view_key_event):
296         * WebCoreSupport/EditorClientGtk.cpp:
297         (EditorClient::handleKeypress):
298
299 2007-12-05  Michael Natterer  <mitch@imendio.com>
300
301         Reviewed by Alp Toker.
302
303         * WebView/webkitwebview.cpp
304         * WebCoreSupport/ChromeClientGtk.cpp
305         * WebCoreSupport/FrameLoaderClientGtk.cpp: canonicalize signal names.
306
307 2007-12-04  Darin Adler  <darin@apple.com>
308
309         Reviewed by Kevin Decker.
310
311         * WebCoreSupport/FrameLoaderClientGtk.cpp: Removed obsolete privateBrowsingEnabled.
312         * WebCoreSupport/FrameLoaderClientGtk.h: Ditto.
313
314 2007-12-04  Michael Natterer  <mitch@imendio.com>
315
316         Reviewed by Alp Toker.
317
318         * WebView/webkitwebframe.cpp: don't redeclare the marshaller
319         prototype but simply include "webkit-marshal.h" now that its build
320         is fixed.
321
322 2007-12-04  Luca Bruno  <lethalman88@gmail.com>
323
324         Reviewed by Alp Toker.
325
326         Fix a regression in key press propagation in r28386.
327
328         Fix indentation (was off by two spaces).
329
330         * WebView/webkitwebview.cpp:
331
332 2007-12-04  Luca Bruno  <lethalman88@gmail.com>
333
334         Reviewed by Alp Toker.
335
336         http://bugs.webkit.org/show_bug.cgi?id=15911
337         [GTK] Use GtkBindingSet to make key bindings user-configurable
338
339         This patch doesn't cover the full range of bindings, only the ones
340         that seem obviously correct and have clear public API.
341
342         * WebCoreSupport/EditorClientGtk.cpp:
343         (WebKit::EditorClient::handleKeypress): do not handle clipboard operations and select-all
344         * WebView/webkitwebview.cpp: add cut, copy, paste and select-all signals and allow binding sets (issue #15911 and #16144)
345         * WebView/webkitwebview.h:
346
347 2007-12-04  Xan Lopez  <xan@gnome.org>
348
349         Reviewed by Alp Toker.
350
351         http://bugs.webkit.org/show_bug.cgi?id=15561
352         GTK port needs DumpRenderTree implementation
353
354         Start work on the GTK+ DRT.
355
356         Add a couple of proposed new API entry points. They are currently for
357         internal use only by DRT and not in the public headers.
358
359         * WebView/webkitprivate.h:
360         * WebView/webkitwebframe.cpp:
361
362 2007-12-03  Dan Bernstein  <mitz@apple.com>
363
364         Reviewed by Dave Hyatt.
365
366         - fix <rdar://problem/5346452> Resize event doesn't fire on body element inside a frame
367
368         * WebView/webkitwebview.cpp: Remove the call to sendResizeEvent() since
369         FrameView sends it now.
370
371 2007-12-03  Alp Toker  <alp@atoker.com>
372
373         globalObject() GTK+ build fix.
374
375         * WebCoreSupport/FrameLoaderClientGtk.cpp:
376         (WebKit::FrameLoaderClient::windowObjectCleared):
377
378 2007-12-03  Geoffrey Garen  <ggaren@apple.com>
379
380         GTK Build fix: get globalExec from the right place.
381
382         * WebView/webkitwebframe.cpp:
383
384 2007-12-01  Alp Toker  <alp@atoker.com>
385
386         Reviewed by Adam Roben.
387
388         Wrap type definitions in webkitdefines.h with G_BEGIN_DECLS, which
389         takes care of extern "C".
390
391         Introduce a webkit.h convenience header.
392
393         Remove another left-over from the old API.
394
395         * WebView/headers.pri:
396         * WebView/webkit.h: Added.
397         * WebView/webkitdefines.h:
398
399 2007-12-01  Alp Toker  <alp@atoker.com>
400
401         Reviewed by Adam Roben.
402
403         http://bugs.webkit.org/show_bug.cgi?id=15687
404         [Gtk] Allow API clients to interact with JavaScript in web pages
405
406         Include the necessary JavaScriptCore headers directly in the public
407         API headers.
408
409         This is the last of a series of changes needed to allow GTK+
410         applications to access the JS API.
411
412         Until http://bugs.webkit.org/show_bug.cgi?id=16029 is resolved,
413         developers will still have to include the individual JS API headers
414         individually if they want to use it in their applications.
415
416         Patch also removes some old legacy use of GDK that was in
417         WebKitWebFrame. No ABI change.
418
419         * WebView/webkitdefines.h:
420         * WebView/webkitwebframe.h:
421         * WebView/webkitwebview.h:
422
423 2007-11-30  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
424
425         Fix for GTK+ Debug build breakage introduced in r28273.
426
427         * WebView/webkitprivate.cpp:
428         (WebKit::kit):
429
430 2007-11-30  Alp Toker  <alp@atoker.com>
431
432         Reviewed by Adam Roben.
433
434         http://bugs.webkit.org/show_bug.cgi?id=15691
435         [GTK] Public API does not follow GTK+ conventions
436
437         Refactor the WebKit/GTK+ public API. Changes:
438           WebKitPage -> WebKitWebView
439           WebKitFrame -> WebKitWebFrame
440
441         Public API source and header names have been updated to mirror the API
442         changes.
443
444         The API is now kept in WebKit/gtk/WebView to match other ports in the
445         same class such as Mac and Win.
446
447         API/ABI-breaking change.
448
449         * Api: Removed.
450         * Api/headers.pri: Removed.
451         * Api/webkitgtk-marshal.list: Removed.
452         * Api/webkitgtkdefines.h: Removed.
453         * Api/webkitgtkframe.cpp: Removed.
454         * Api/webkitgtkframe.h: Removed.
455         * Api/webkitgtkglobal.cpp: Removed.
456         * Api/webkitgtkglobal.h: Removed.
457         * Api/webkitgtknetworkrequest.cpp: Removed.
458         * Api/webkitgtknetworkrequest.h: Removed.
459         * Api/webkitgtkpage.cpp: Removed.
460         * Api/webkitgtkpage.h: Removed.
461         * Api/webkitgtkprivate.cpp: Removed.
462         * Api/webkitgtkprivate.h: Removed.
463         * Api/webkitgtksettings.cpp: Removed.
464         * Api/webkitgtksettings.h: Removed.
465         * WebCoreSupport/ChromeClientGtk.cpp:
466         (WebKit::ChromeClient::ChromeClient):
467         (WebKit::ChromeClient::createWindow):
468         * WebCoreSupport/ChromeClientGtk.h:
469         (WebKit::ChromeClient::webPage):
470         * WebCoreSupport/EditorClientGtk.cpp:
471         (WebKit::EditorClient::isEditable):
472         (WebKit::EditorClient::EditorClient):
473         * WebCoreSupport/EditorClientGtk.h:
474         * WebCoreSupport/FrameLoaderClientGtk.cpp:
475         (WebKit::FrameLoaderClient::FrameLoaderClient):
476         (WebKit::FrameLoaderClient::postProgressStartedNotification):
477         (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification):
478         (WebKit::FrameLoaderClient::postProgressFinishedNotification):
479         (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):
480         (WebKit::FrameLoaderClient::createFrame):
481         (WebKit::FrameLoaderClient::windowObjectCleared):
482         (WebKit::FrameLoaderClient::dispatchDidReceiveIcon):
483         (WebKit::FrameLoaderClient::setTitle):
484         * WebCoreSupport/FrameLoaderClientGtk.h:
485         (WebKit::FrameLoaderClient::webFrame):
486         * WebView: Added.
487         * WebView/headers.pri: Added.
488         * WebView/webkit-marshal.list: Added.
489         * WebView/webkitdefines.h: Added.
490         * WebView/webkitglobal.cpp: Added.
491         * WebView/webkitglobal.h: Added.
492         * WebView/webkitnetworkrequest.cpp: Added.
493         * WebView/webkitnetworkrequest.h: Added.
494         * WebView/webkitprivate.cpp: Added.
495         (WebKit::apply):
496         (WebKit::create):
497         (WebKit::getFrameFromView):
498         (WebKit::getViewFromFrame):
499         (WebKit::core):
500         (WebKit::kit):
501         * WebView/webkitprivate.h: Added.
502         * WebView/webkitsettings.cpp: Added.
503         * WebView/webkitsettings.h: Added.
504         * WebView/webkitwebframe.cpp: Added.
505         * WebView/webkitwebframe.h: Added.
506         * WebView/webkitwebview.cpp: Added.
507         * WebView/webkitwebview.h: Added.
508
509 2007-11-28  Alp Toker  <alp@atoker.com>
510
511         Reviewed by Timothy Hatcher.
512
513         http://bugs.webkit.org/show_bug.cgi?id=16174
514         [GTK] Use "URI" not "URL" in public API
515
516         Replace use of the term "URL" with "URI" in public headers,
517         documentation and some internal code to match GLib/GTK+ convention.
518
519         This is now mentioned in the API guidelines:
520           http://trac.webkit.org/projects/webkit/wiki/HackingGtk
521
522         API/ABI-breaking change.
523
524         * Api/webkitgtkframe.cpp:
525         * Api/webkitgtknetworkrequest.cpp:
526         * Api/webkitgtknetworkrequest.h:
527         * Api/webkitgtkpage.cpp:
528         * Api/webkitgtkpage.h:
529         * Api/webkitgtkprivate.h:
530         * Api/webkitgtksettings.h:
531
532 2007-11-29  Brady Eidson  <beidson@apple.com>
533
534         Better build fix for Gtk
535
536         * WebCoreSupport/ChromeClientGtk.h:
537
538 2007-11-29  Brady Eidson  <beidson@apple.com>
539
540         Keep it building with new client method
541
542         * WebCoreSupport/ChromeClientGtk.cpp:
543         (WebKit::ChromeClient::requestQuotaIncreaseForNewDatabase):
544         (WebKit::ChromeClient::requestQuotaIncreaseForDatabaseOperation):
545         * WebCoreSupport/ChromeClientGtk.h:
546
547 2007-11-26  Alp Toker  <alp@atoker.com>
548
549         Reviewed by Adam Roben.
550
551         http://bugs.webkit.org/show_bug.cgi?id=16149
552         Implement the window-object-cleared signal
553
554         This implementation provides the JSGlobalContextRef and JSObjectRef
555         directly rather than using an intermediate JS wrapper object, similar
556         to the approach taken by the Win port.
557
558         * Api/webkitgtk-marshal.list:
559         * Api/webkitgtkframe.h:
560         * Api/webkitgtkpage.cpp:
561         * Api/webkitgtkpage.h:
562         * WebCoreSupport/FrameLoaderClientGtk.cpp:
563         (WebKit::FrameLoaderClient::windowObjectCleared):
564
565 2007-11-24  Alp Toker  <alp@atoker.com>
566
567         Reviewed by Mark Rowe.
568
569         http://bugs.webkit.org/show_bug.cgi?id=15691
570         [GTK] Public API does not follow GTK+ conventions
571
572         Public API enhancements:
573
574         Implement webkit_page_get_editable() and webkit_page_set_editable().
575
576         Implement webkit_frame_get_name().
577
578         Remove definitions for functions that are unusable or not implemented.
579         This has caused much confusion for application developers.
580
581         Improve documentation.
582
583         Correct/constify some return types.
584
585         Add parameter checks.
586
587         Make the default fixed font "Courier New" to match the other Web
588         font names.
589
590         * Api/webkitgtkframe.cpp:
591         * Api/webkitgtkframe.h:
592         * Api/webkitgtkpage.cpp:
593         * Api/webkitgtkpage.h:
594         * Api/webkitgtkprivate.h:
595         * WebCoreSupport/EditorClientGtk.cpp:
596         (WebKit::EditorClient::isEditable):
597
598 2007-11-24  Alp Toker  <alp@atoker.com>
599
600         Reviewed by Mark Rowe.
601
602         http://bugs.webkit.org/show_bug.cgi?id=16125
603         [GTK] Up key doesn't work properly when content is editable
604
605         Add a missing 'break' to avoid falling through to the next case when
606         handling VK_UP keystrokes. This was noticed when working on editing
607         support in the GTK+ port.
608
609         I've checked the other cases for similar typos and they seem fine.
610
611         * WebCoreSupport/EditorClientGtk.cpp:
612         (WebKit::EditorClient::handleKeypress):
613
614 2007-11-24  Xan Lopez  <xan@gnome.org>
615
616         Reviewed by Alp Toker.
617
618         http://bugs.webkit.org/show_bug.cgi?id=15745
619         [GTK] Arrow keys do not Scroll
620         
621         * Api/webkitgtkpage.cpp:
622
623         Support Up/Down/Right/Left keys to scroll. Slight hack, see FIXME for
624         details.
625
626 2007-11-24  Christian Dywan  <christian@twotoasts.de>
627
628         Reviewed by Alp Toker.
629
630         http://bugs.webkit.org/show_bug.cgi?id=15891
631         [GTK] Javascript console and dialogs are not implemented
632
633         Fix call to gtk_message_dialog_new() which expects a format string.
634
635         * Api/webkitgtkpage.cpp:
636
637 2007-11-24  Christian Dywan  <christian@twotoasts.de>
638
639         Reviewed by Alp Toker.
640
641         http://bugs.webkit.org/show_bug.cgi?id=15793
642         [GTK] Webkit doesn't show title attribute tooltip when hovering over an image
643
644         Implement tooltip support using the new Tooltip API.
645
646         Support for older versions of GTK+ is still lacking.
647
648         * WebCoreSupport/ChromeClientGtk.cpp:
649         (WebKit::ChromeClient::setToolTip):
650
651 2007-11-22  Alp Toker  <alp@atoker.com>
652
653         Reviewed by Mark Rowe.
654
655         Implement and document several WebKitFrame functions, some of which
656         are necessary to support DRT.
657
658         Correct NULL handling and improve run-time checks.
659
660         * Api/webkitgtkframe.cpp:
661         * Api/webkitgtkframe.h:
662         * Api/webkitgtkprivate.cpp:
663
664 2007-11-22  Alp Toker  <alp@atoker.com>
665
666         Whitespace fixes only.
667
668         * Api/webkitgtkframe.cpp:
669         * Api/webkitgtkpage.cpp:
670         * Api/webkitgtkpage.h:
671         * Api/webkitgtkprivate.h:
672         * WebCoreSupport/ChromeClientGtk.cpp:
673         * WebCoreSupport/ContextMenuClientGtk.cpp:
674         * WebCoreSupport/ContextMenuClientGtk.h:
675         * WebCoreSupport/DragClientGtk.h:
676         * WebCoreSupport/EditorClientGtk.h:
677         * WebCoreSupport/FrameLoaderClientGtk.cpp:
678         (WebKit::FrameLoaderClient::dispatchWillSendRequest):
679         (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest):
680         (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification):
681         (WebKit::FrameLoaderClient::createFrame):
682         (WebKit::FrameLoaderClient::createJavaAppletWidget):
683         (WebKit::FrameLoaderClient::registerForIconNotification):
684         (WebKit::FrameLoaderClient::setMainFrameDocumentReady):
685         (WebKit::FrameLoaderClient::dispatchDidFinishLoad):
686         (WebKit::FrameLoaderClient::frameLoadCompleted):
687         (WebKit::FrameLoaderClient::saveViewStateToItem):
688         (WebKit::FrameLoaderClient::restoreViewState):
689         (WebKit::FrameLoaderClient::shouldGoToHistoryItem):
690         (WebKit::FrameLoaderClient::setTitle):
691         * WebCoreSupport/FrameLoaderClientGtk.h:
692
693 2007-11-22  Michael Natterer  <mitch@imendio.com>
694
695         Reviewed by Alp Toker.
696
697         http://bugs.webkit.org/show_bug.cgi?id=15984
698         Implement "navigation-requested" signal for WebKit Gtk
699
700         * Api/webkitgtknetworkrequest.h: fix parent class member.
701
702         * Api/webkitgtknetworkrequest.cpp
703         * Api/webkitgtkprivate.h: basic implementation featuring an
704         "url" member and API.
705
706         * Api/webkitgtkdefines.h: added network request typedefs.
707
708         * Api/webkitgtkpage.h: fix enum name:
709         s/WEBKIT_NAVIGATION_REQUEST_RESPONSE/WebKitNavigationRequestResponse/
710         and sanitized enum values.
711
712         * Api/webkitgtkpage.cpp: made "navigation-requested" a signal.
713
714         * Api/webkitgtk-marshal.list: added INT:OBJECT,OBJECT
715
716         * WebCoreSupport/FrameLoaderClientGtk.cpp: emit the new signal in
717         dispatchDecidePolicyForNavigationAction().
718
719 2007-11-18  Christian Dywan  <christian@twotoasts.de>
720
721         Reviewed by Alp.
722
723         http://bugs.webkit.org/show_bug.cgi?id=15891
724         [GTK] Javascript console and dialogs are not implemented
725
726         Correct script-prompt to return NULL when cancelled.
727
728         Small changes to avoid compiler warnings.
729
730         * Api/webkitgtkpage.cpp:
731
732 2007-11-17  Timothy Hatcher  <timothy@apple.com>
733
734         Reviewed by Mark Rowe.
735
736         Bug 13470: i18n: The Web Inspector is not localizable
737         http://bugs.webkit.org/show_bug.cgi?id=13470
738
739         * WebCoreSupport/InspectorClientGtk.cpp:
740         (WebKit::InspectorClient::localizedStringsURL): Empty stub.
741         * WebCoreSupport/InspectorClientGtk.h: Add localizedStringsURL.
742
743 2007-11-13  Mark Rowe  <mrowe@apple.com>
744
745         Gtk build fix. Replace incorrect use of the LOG macro with g_print.
746
747         * Api/webkitgtkpage.cpp:
748
749 2007-11-13  Christian Dywan  <christian@twotoasts.de>
750
751         Reviewed by Alp.
752
753         http://bugs.webkit.org/show_bug.cgi?id=15891
754         [GTK] Javascript console and dialogs are not implemented
755
756         Implement signals for script dialogs and console messages.
757
758         * Api/webkitgtk-marshal.list:
759         * Api/webkitgtkpage.cpp:
760         * Api/webkitgtkpage.h:
761         * WebCoreSupport/ChromeClientGtk.cpp:
762         (WebKit::ChromeClient::addMessageToConsole):
763         (WebKit::ChromeClient::runJavaScriptAlert):
764         (WebKit::ChromeClient::runJavaScriptConfirm):
765         (WebKit::ChromeClient::runJavaScriptPrompt):
766
767 2007-11-11  Alp Toker  <alp@atoker.com>
768
769         Reviewed by Anders.
770
771         Initialize m_userAgent.
772
773         Fix typos in GDK_WINDOWING conditionals.
774
775         * WebCoreSupport/FrameLoaderClientGtk.cpp:
776         (WebKit::FrameLoaderClient::FrameLoaderClient):
777         (WebKit::agentPlatform):
778
779 2007-11-11  Alp Toker  <alp@atoker.com>
780
781         Reviewed by Mark Rowe.
782
783         Mention Safari in the UserAgent string to improve site compatibility.
784
785         Also bump the hard-coded AppleWebKit version number.
786
787         * WebCoreSupport/FrameLoaderClientGtk.cpp:
788         (WebKit::composeUserAgent):
789
790 2007-11-09  Xan Lopez  <xan@gnome.org>
791
792         Reviewed by Alp.
793
794         Fix http://bugs.webkit.org/show_bug.cgi?id=15926
795         [GTK] WebKitPage map handler is redundant.
796
797         * Api/webkitgtkpage.cpp:
798         The map handler for WebKitPage is redundant, GtkContainer does
799         the same (and more correctly).
800
801 2007-11-08  Alp Toker  <alp@atoker.com>
802
803         Reviewed by Mark Rowe.
804
805         http://bugs.webkit.org/show_bug.cgi?id=15653
806         [GTK] Text editor does not handle common keystrokes
807
808         Handle more keystrokes in EditorClientGtk. Note that this is a
809         temporary measure pending a proper solution using GtkBindingSet (see
810         http://bugs.webkit.org/show_bug.cgi?id=15911).
811
812         * WebCoreSupport/EditorClientGtk.cpp:
813         (WebKit::EditorClient::handleKeypress):
814
815 2007-11-08  Kevin McCullough  <kmccullough@apple.com>
816
817         Reviewed by Sam.
818
819         - windowObjectCleared() is no longer const.  It needs to setup the
820         script debugger and cannot be const to do so.
821
822         * WebCoreSupport/FrameLoaderClientGtk.cpp:
823         (WebKit::FrameLoaderClient::windowObjectCleared):
824         * WebCoreSupport/FrameLoaderClientGtk.h:
825
826 2007-11-06  Rodney Dawes  <dobey@wayofthemonkey.com>
827
828         Fix http://bugs.webkit.org/attachment.cgi?id=17043&action=view
829         Bug 15766: [GTK] WebKit sometimes spews binary data as text/plain into iframes
830
831         FrameLoaderClient::objectContentType needs to check with the MIMETypeRegistry
832         to determine whether the given MIME type is displayable as an image or non-image.
833
834         * WebCoreSupport/FrameLoaderClientGtk.cpp:
835         (FrameLoaderClient::objectContentType): Change logic to match that in
836         the Windows and Mac ports.
837
838 2007-11-05  Christian Dywan  <christian@twotoasts.de>
839
840         Reviewed by Maciej.
841
842         http://bugs.webkit.org/show_bug.cgi?id=15409
843         FrameLoaderClientGtk hardcodes data, including platform to Linux i686
844
845         Compute a proper user agent string.
846
847         Patch includes fixes by Alp.
848
849         * WebCoreSupport/FrameLoaderClientGtk.cpp:
850         (WebKit::agentPlatform):
851         (WebKit::agentOS):
852         (WebKit::composeUserAgent):
853         (WebKit::FrameLoaderClient::userAgent):
854         * WebCoreSupport/FrameLoaderClientGtk.h:
855
856 2007-11-05  Mark Rowe  <mrowe@apple.com>
857
858         Rubber-stamped by Alp Toker.
859
860         Remove unused m_firstData member from FrameLoaderClientGtk.
861
862         * WebCoreSupport/FrameLoaderClientGtk.cpp:
863         * WebCoreSupport/FrameLoaderClientGtk.h:
864
865 2007-11-05  Mark Rowe  <mrowe@apple.com>
866
867         Reviewed by Alp Toker.
868
869         Fix http://bugs.webkit.org/show_bug.cgi?id=15842
870         Bug 15842: [Gtk] about:blank doesn't work
871
872         * WebCoreSupport/FrameLoaderClientGtk.cpp:
873         (WebKit::FrameLoaderClient::finishedLoading): Set the encoding on the frame loader to
874         get work done that is normally done when the first bit of data is received, even in the
875         case of a document with no data (like about:blank).
876
877 2007-11-03  Alp Toker  <alp@atoker.com>
878
879         Reviewed by Mark Rowe.
880
881         Restore correct double and triple click behaviour
882
883         We ended up ignoring GDK_2BUTTON_PRESS and GDK_3BUTTON_PRESS after
884         recent refactoring.
885
886         * Api/webkitgtkpage.cpp:
887
888 2007-11-03  Alp Toker  <alp@atoker.com>
889
890         Reviewed by Mark Rowe.
891
892         Frame scrolling and invalidation fixes
893
894         Make upward scroll events have a positive delta to match other ports.
895
896         Fix the invalidation rect offset for frames so that scrolling works properly.
897
898         Avoid allocating negative sizes to widgets to avoid GTK+ warnings.
899
900         Allow tabbing to all widgets and links.
901
902         Fix event returns, improving the focus situation and correcting scroll wheel
903         behavior.
904
905         * Api/webkitgtkpage.cpp:
906         * WebCoreSupport/ChromeClientGtk.cpp:
907
908 2007-10-29  Alp Toker  <alp@atoker.com>
909
910         Reviewed by Maciej.
911
912         Do not allow control to reach end of non-void functions
913
914         * Api/webkitgtksettings.cpp:
915
916 2007-10-28  Lars Lindner  <lars.lindner@gmail.com>
917
918         Reviewed by Alp.
919
920         http://bugs.webkit.org/show_bug.cgi?id=15466
921         [gtk] widget does not take focus on mouse click
922
923         Grab widget focus in mouse press callback.
924
925         * Api/webkitgtkpage.cpp:
926
927 2007-10-25  Alp Toker  <alp@atoker.com>
928
929         Reviewed by Brady.
930
931         http://bugs.webkit.org/show_bug.cgi?id=15686
932         GtkLauncher aborts on launch due to uninitialized threading subsystem
933
934         Re-enable database support in the GTK+ port, with a fix.
935
936         Initialize GLib threading as early as possible.
937
938         * Api/webkitgtkglobal.cpp:
939
940 2007-10-25  Alp Toker  <alp@atoker.com>
941
942         Unreviewed fix to make the GTK+ port run.
943
944         http://bugs.webkit.org/show_bug.cgi?id=15686
945         GtkLauncher aborts on launch due to uninitialized threading subsystem
946
947         http://bugs.webkit.org/show_bug.cgi?id=15688
948         [GTK] Make it possible to disable database support
949
950         Make database path initialization conditional on database support
951         being enabled.
952
953         * Api/webkitgtkglobal.cpp:
954
955 2007-10-24  Mark Rowe  <mrowe@apple.com>
956
957         Gtk build fix.  Track WebCore changes in r27004.
958
959         * Api/webkitgtkglobal.cpp:
960
961 2007-10-22  Alp Toker  <alp@atoker.com>
962
963         Reviewed by Mark Rowe.
964
965         http://bugs.webkit.org/show_bug.cgi?id=15611
966         [GTK] Text selection behaviour different in Debug and Release builds
967
968         http://bugs.webkit.org/show_bug.cgi?id=15578
969         [GTK] Text editor caret does not blink
970
971         Never allow control to reach the end of non-void functions.
972
973         Return more sensible values, or in some cases, nulls.
974
975         * Api/webkitgtksettings.cpp:
976         * Api/webkitgtksettings.h:
977         * WebCoreSupport/DragClientGtk.cpp:
978         (WebKit::DragClient::actionMaskForDrag):
979         (WebKit::DragClient::dragSourceActionMaskForPoint):
980         (WebKit::DragClient::createDragImageForLink):
981
982 2007-10-20  Mark Rowe  <mrowe@apple.com>
983
984         Reviewed by Alp.
985
986         Gtk changes needed to enable HTML 5 client-side database storage.
987
988         * Api/webkitgtkglobal.cpp: Set a default database path based on the user data directory.
989         This should become configurable by client applications in the future.
990
991 2007-10-20  Mark Rowe  <mrowe@apple.com>
992
993         Reviewed by Eric.
994
995         Don't allow control characters to be inserted into editable regions.
996
997         * WebCoreSupport/EditorClientGtk.cpp:
998         (WebKit::EditorClient::handleKeypress):
999
1000 2007-10-19  Alp Toker  <alp@atoker.com>
1001
1002         Reviewed by Oliver.
1003
1004         GTK+ build fix enabling the new local database storage feature.
1005         There is also a prospective Qt build fix.
1006
1007         * WebCoreSupport/ChromeClientGtk.cpp:
1008         (WebKit::ChromeClient::runDatabaseSizeLimitPrompt):
1009         * WebCoreSupport/ChromeClientGtk.h:
1010
1011 2007-10-14  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
1012
1013         Reviewed by Adam.
1014
1015         http://bugs.webkit.org/show_bug.cgi?id=15299
1016         Fix "hovering_over_link" signal not emitted when consecutive links
1017         are hovered.
1018
1019         * WebCoreSupport/ChromeClientGtk.cpp:
1020         (WebKit::ChromeClient::mouseDidMoveOverElement):
1021         * WebCoreSupport/ChromeClientGtk.h:
1022         - Remove m_didSendLinkSignal as it is superseded by m_hoveredLinkURL
1023
1024 2007-10-10  Alice Liu  <alice.liu@apple.com>
1025
1026         Reviewed by Geoff Garen.
1027
1028         changes to keep the build from breaking
1029
1030         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1031         (WebKit::FrameLoaderClient::createFrame):
1032         * WebCoreSupport/FrameLoaderClientGtk.h:
1033
1034 2007-10-03  Alp Toker  <alp@atoker.com>
1035
1036         Reviewed by Adam.
1037
1038         http://bugs.webkit.org/show_bug.cgi?id=14726
1039         [gtk] API design. Mapping the WebView delegates to signals.
1040
1041         Change the API namespace of the Gtk+ port from 'WebKitGtk' to 'WebKit'.
1042
1043         * Api/webkitgtkdefines.h:
1044         * Api/webkitgtkframe.cpp:
1045         * Api/webkitgtkframe.h:
1046         * Api/webkitgtkglobal.cpp:
1047         * Api/webkitgtkglobal.h:
1048         * Api/webkitgtknetworkrequest.h:
1049         * Api/webkitgtkpage.cpp:
1050         * Api/webkitgtkpage.h:
1051         * Api/webkitgtkprivate.cpp:
1052         (WebKit::apply):
1053         (WebKit::create):
1054         (WebKit::getFrameFromPage):
1055         (WebKit::getPageFromFrame):
1056         (WebKit::core):
1057         (WebKit::kit):
1058         * Api/webkitgtkprivate.h:
1059         * Api/webkitgtksettings.cpp:
1060         * Api/webkitgtksettings.h:
1061         * WebCoreSupport/ChromeClientGtk.cpp:
1062         (WebKit::ChromeClient::ChromeClient):
1063         (WebKit::ChromeClient::createWindow):
1064         (WebKit::ChromeClient::addMessageToConsole):
1065         (WebKit::ChromeClient::runJavaScriptAlert):
1066         (WebKit::ChromeClient::runJavaScriptConfirm):
1067         (WebKit::ChromeClient::runJavaScriptPrompt):
1068         * WebCoreSupport/ChromeClientGtk.h:
1069         (WebKit::ChromeClient::webPage):
1070         * WebCoreSupport/EditorClientGtk.cpp:
1071         (WebKit::EditorClient::EditorClient):
1072         * WebCoreSupport/EditorClientGtk.h:
1073         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1074         (WebKit::FrameLoaderClient::FrameLoaderClient):
1075         (WebKit::FrameLoaderClient::postProgressStartedNotification):
1076         (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification):
1077         (WebKit::FrameLoaderClient::postProgressFinishedNotification):
1078         (WebKit::FrameLoaderClient::createFrame):
1079         (WebKit::FrameLoaderClient::dispatchDidReceiveIcon):
1080         (WebKit::FrameLoaderClient::setTitle):
1081         * WebCoreSupport/FrameLoaderClientGtk.h:
1082         (WebKit::FrameLoaderClient::webFrame):
1083
1084 2007-10-02  Cosimo Cecchi  <cosimoc@svn.gnome.org>
1085
1086         Reviewed by Mark.
1087
1088         http://bugs.webkit.org/show_bug.cgi?id=15299
1089         Fix "hovering_over_link" signal being fired every time mouse moves.
1090
1091         * WebCoreSupport/ChromeClientGtk.cpp:
1092         (WebKit::ChromeClient::ChromeClient):
1093         (WebKit::ChromeClient::mouseDidMoveOverElement):
1094         * WebCoreSupport/ChromeClientGtk.h:
1095
1096 2007-09-21  Sean Egan  <seanegan@gmail.com>
1097
1098         Reviewed by Alp.
1099
1100         Add an "execute_script" method to programmatically call Javascript
1101         http://bugs.webkit.org/show_bug.cgi?id=15255
1102
1103         * Api/webkitgtkpage.cpp:
1104         * Api/webkitgtkpage.h:
1105
1106 2007-09-29  Lars Lindner  <lars.lindner@gmail.com>
1107
1108         Reviewed by Adam.
1109
1110         ChromeClientGtk.cpp does not implement mouseDidMoveOverElement()
1111         http://bugs.webkit.org/show_bug.cgi?id=15299
1112
1113         Implementing "hovering_over_link" signal.
1114
1115         * WebCoreSupport/ChromeClientGtk.cpp:
1116         (WebKit::ChromeClient::mouseDidMoveOverElement):
1117
1118 2007-09-26  Mark Rowe  <mrowe@apple.com>
1119
1120         Gtk build fix.
1121
1122         * WebCoreSupport/FrameLoaderClientGtk.cpp:  Check for empty URL instead of invalid URL.
1123
1124 2007-09-17  Holger Hans Peter Freyther  <zecke@selfish.org>
1125
1126         Reviewed by Adam.
1127
1128         WebKitGtkPage and WebKitGtkFrame have a dependency on each other. To
1129         allow client code to include both headers the typedef's for
1130         WebKitGtkFrame, WebKitGtkPage, WebKitGtkFrameData and WebKitGtkNetworkRequest
1131         are moved into webkitgtkdefines.h and included by both webkitgtkpage.h and
1132         webkitgtkframe.h
1133
1134         * Api/webkitgtkdefines.h:
1135         * Api/webkitgtkframe.h:
1136         * Api/webkitgtkpage.h:
1137
1138 2007-09-17  Cyril Brulebois  <cyril.brulebois@enst-bretagne.fr>
1139
1140         Reviewed by Mark, some Coding Style changes by Holger.
1141
1142         This is from http://bugs.webkit.org/show_bug.cgi?id=14812.
1143
1144         Add title and location to WebKitGtkFramePrivate, add
1145         webkit_gtk_frame_get_location to the WebKitGtkFrame API as well
1146         as a title_changed callback, implement
1147         webkit_gtk_frame_get_title and webkit_gtk_frame_get_location.
1148
1149         Initial patch by Diego Escalante Urrelo.
1150
1151         * Api/webkitgtkframe.cpp:
1152         * Api/webkitgtkframe.h:
1153         * Api/webkitgtkprivate.h:
1154
1155 2007-09-15  Holger Hans Peter Freyther  <zecke@selfish.org>
1156
1157         Reviewed by Mark.
1158
1159         Use the new WebCore::String::fromUTF8 function to convert
1160         from the Gtk+ representation of a string to WebCore::String.
1161
1162         * WebCoreSupport/ChromeClientGtk.cpp:
1163         (WebKit::ChromeClient::runJavaScriptPrompt):
1164
1165 2007-09-10  Nigel Tao  <nigeltao@gnome.org>
1166
1167         Reviewed by Mark Rowe.
1168
1169         Fix a typo where webkit_gtk_page_can_copy was declared twice,
1170         rather than webkit_gtk_page_can_paste.
1171
1172         * Api/webkitgtkpage.h:
1173
1174 2007-09-08  Brady Eidson  <beidson@apple.com>
1175
1176         Better build fix
1177
1178         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1179         (WebKit::FrameLoaderClient::registerForIconNotification):
1180         * WebCoreSupport/FrameLoaderClientGtk.h:
1181
1182 2007-09-08  Brady Eidson  <beidson@apple.com>
1183
1184         Build fix
1185
1186         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1187         (WebKit::FrameLoaderClient::registerForIconNotification):
1188         * WebCoreSupport/FrameLoaderClientGtk.h:
1189
1190 2007-09-05  Geoffrey Garen  <ggaren@apple.com>
1191
1192         Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
1193         
1194         Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no 
1195         memory cache, or a very tiny one
1196         
1197         Keep the GTK build working with an empty stub.
1198         
1199         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1200         (WebKit::FrameLoaderClient::didPerformFirstNavigation):
1201         * WebCoreSupport/FrameLoaderClientGtk.h:
1202
1203 2007-09-01  Oliver Hunt  <oliver@apple.com>
1204
1205         Reviewed by Sam.
1206
1207         <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions
1208  
1209         EditorClient::setInputMethodState stub
1210
1211         * WebCoreSupport/EditorClientGtk.cpp:
1212         (WebKit::EditorClient::setInputMethodState):
1213         * WebCoreSupport/EditorClientGtk.h:
1214
1215 2007-08-18  Holger Hans Peter Freyther  <zecke@selfish.org>
1216
1217         Build fix. Add const to the first parameter of createPlugin
1218
1219         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1220
1221 2007-08-17  Anders Carlsson  <andersca@apple.com>
1222
1223         Build fix.
1224         
1225         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1226         (WebKit::FrameLoaderClient::createPlugin):
1227         * WebCoreSupport/FrameLoaderClientGtk.h:
1228
1229 2007-08-11  Holger Hans Peter Freyther  <zecke@selfish.org>
1230
1231         Reviewed by Adam.
1232
1233         To not hit the needsLayout() assert of Frame::paint for subframes we need to
1234         make sure they are layed out. Use the newly created FrameView::layoutIfNeededRecursive
1235         method to do this.
1236
1237         * Api/webkitgtkpage.cpp:
1238
1239 2007-08-11  Holger Hans Peter Freyther  <zecke@selfish.org>
1240
1241         Reviewed by Adam.
1242
1243         Fix text selection by setting a DragClient when creating the Page. Now
1244         that we have a DragClient we can free the Page when WebKitGtkPage gets
1245         destructed.
1246
1247         * Api/webkitgtkpage.cpp:
1248         * WebCoreSupport/DragClientGtk.cpp: Added.
1249         (WebKit::DragClient::willPerformDragDestinationAction):
1250         (WebKit::DragClient::willPerformDragSourceAction):
1251         (WebKit::DragClient::actionMaskForDrag):
1252         (WebKit::DragClient::dragSourceActionMaskForPoint):
1253         (WebKit::DragClient::startDrag):
1254         (WebKit::DragClient::createDragImageForLink):
1255         * WebCoreSupport/DragClientGtk.h: Added.
1256
1257 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
1258
1259         Reviewed by Anders.
1260
1261         Make WebKitGtkPage a GtkContainer to avoid a size_allocate
1262         race of GtkScrollBar and GtkLayout.
1263
1264         * Api/webkitgtk-marshal.list:
1265         * Api/webkitgtkframe.cpp:
1266         * Api/webkitgtkpage.cpp:
1267         * Api/webkitgtkpage.h:
1268         * Api/webkitgtkprivate.h:
1269
1270 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
1271
1272         Reviewed by Niko.
1273
1274         Minor changes to the WebKit::EditorClient to allow removing
1275         of text from TextFields. Remove the selectWordBeforeMenuEvent method
1276         which is not used and not within WebCore::EditorClient. 
1277
1278         * WebCoreSupport/EditorClientGtk.cpp:
1279         (WebKit::EditorClient::shouldDeleteRange):
1280         (WebKit::EditorClient::shouldBeginEditing):
1281         (WebKit::EditorClient::shouldEndEditing):
1282         (WebKit::EditorClient::shouldApplyStyle):
1283         (WebKit::EditorClient::shouldInsertNode):
1284         * WebCoreSupport/EditorClientGtk.h:
1285
1286 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
1287
1288         Reviewed by Mark.
1289
1290         Rename the namespace from WebKitGtk to WebKit. Move the various *Client
1291         classes into the WebKit namespace. Change the class names to not contain Gtk.
1292         The file names have to contain the Gtk suffix to not clash with files in WebCore (e.g.
1293         bridge/EditorClient.h).
1294         
1295
1296         * Api/webkitgtkframe.cpp:
1297         * Api/webkitgtkpage.cpp:
1298         * Api/webkitgtkprivate.cpp:
1299         * Api/webkitgtkprivate.h:
1300         * ChangeLog:
1301         * WebCoreSupport/ChromeClientGtk.cpp:
1302         (WebKit::ChromeClient::ChromeClient):
1303         (WebKit::ChromeClient::chromeDestroyed):
1304         (WebKit::ChromeClient::windowRect):
1305         (WebKit::ChromeClient::setWindowRect):
1306         (WebKit::ChromeClient::pageRect):
1307         (WebKit::ChromeClient::scaleFactor):
1308         (WebKit::ChromeClient::focus):
1309         (WebKit::ChromeClient::unfocus):
1310         (WebKit::ChromeClient::createWindow):
1311         (WebKit::ChromeClient::createModalDialog):
1312         (WebKit::ChromeClient::show):
1313         (WebKit::ChromeClient::canRunModal):
1314         (WebKit::ChromeClient::runModal):
1315         (WebKit::ChromeClient::setToolbarsVisible):
1316         (WebKit::ChromeClient::toolbarsVisible):
1317         (WebKit::ChromeClient::setStatusbarVisible):
1318         (WebKit::ChromeClient::statusbarVisible):
1319         (WebKit::ChromeClient::setScrollbarsVisible):
1320         (WebKit::ChromeClient::scrollbarsVisible):
1321         (WebKit::ChromeClient::setMenubarVisible):
1322         (WebKit::ChromeClient::menubarVisible):
1323         (WebKit::ChromeClient::setResizable):
1324         (WebKit::ChromeClient::closeWindowSoon):
1325         (WebKit::ChromeClient::canTakeFocus):
1326         (WebKit::ChromeClient::takeFocus):
1327         (WebKit::ChromeClient::canRunBeforeUnloadConfirmPanel):
1328         (WebKit::ChromeClient::runBeforeUnloadConfirmPanel):
1329         (WebKit::ChromeClient::runJavaScriptAlert):
1330         (WebKit::ChromeClient::runJavaScriptConfirm):
1331         (WebKit::ChromeClient::setStatusbarText):
1332         (WebKit::ChromeClient::shouldInterruptJavaScript):
1333         (WebKit::ChromeClient::tabsToLinks):
1334         (WebKit::ChromeClient::windowResizerRect):
1335         (WebKit::ChromeClient::addToDirtyRegion):
1336         (WebKit::ChromeClient::scrollBackingStore):
1337         (WebKit::ChromeClient::updateBackingStore):
1338         (WebKit::ChromeClient::mouseDidMoveOverElement):
1339         (WebKit::ChromeClient::setToolTip):
1340         * WebCoreSupport/ChromeClientGtk.h:
1341         * WebCoreSupport/ContextMenuClientGtk.cpp:
1342         (WebKit::ContextMenuClient::contextMenuDestroyed):
1343         (WebKit::ContextMenuClient::getCustomMenuFromDefaultItems):
1344         (WebKit::ContextMenuClient::contextMenuItemSelected):
1345         (WebKit::ContextMenuClient::downloadURL):
1346         (WebKit::ContextMenuClient::copyImageToClipboard):
1347         (WebKit::ContextMenuClient::searchWithGoogle):
1348         (WebKit::ContextMenuClient::lookUpInDictionary):
1349         (WebKit::ContextMenuClient::speak):
1350         * WebCoreSupport/ContextMenuClientGtk.h:
1351         * WebCoreSupport/EditorClientGtk.cpp:
1352         (WebKit::EditorClient::shouldDeleteRange):
1353         (WebKit::EditorClient::shouldShowDeleteInterface):
1354         (WebKit::EditorClient::isContinuousSpellCheckingEnabled):
1355         (WebKit::EditorClient::isGrammarCheckingEnabled):
1356         (WebKit::EditorClient::spellCheckerDocumentTag):
1357         (WebKit::EditorClient::shouldBeginEditing):
1358         (WebKit::EditorClient::shouldEndEditing):
1359         (WebKit::EditorClient::shouldInsertText):
1360         (WebKit::EditorClient::shouldChangeSelectedRange):
1361         (WebKit::EditorClient::shouldApplyStyle):
1362         (WebKit::EditorClient::shouldMoveRangeAfterDelete):
1363         (WebKit::EditorClient::didBeginEditing):
1364         (WebKit::EditorClient::respondToChangedContents):
1365         (WebKit::EditorClient::respondToChangedSelection):
1366         (WebKit::EditorClient::didEndEditing):
1367         (WebKit::EditorClient::didWriteSelectionToPasteboard):
1368         (WebKit::EditorClient::didSetSelectionTypesForPasteboard):
1369         (WebKit::EditorClient::selectWordBeforeMenuEvent):
1370         (WebKit::EditorClient::isEditable):
1371         (WebKit::EditorClient::registerCommandForUndo):
1372         (WebKit::EditorClient::registerCommandForRedo):
1373         (WebKit::EditorClient::clearUndoRedoOperations):
1374         (WebKit::EditorClient::canUndo):
1375         (WebKit::EditorClient::canRedo):
1376         (WebKit::EditorClient::undo):
1377         (WebKit::EditorClient::redo):
1378         (WebKit::EditorClient::shouldInsertNode):
1379         (WebKit::EditorClient::pageDestroyed):
1380         (WebKit::EditorClient::smartInsertDeleteEnabled):
1381         (WebKit::EditorClient::toggleContinuousSpellChecking):
1382         (WebKit::EditorClient::toggleGrammarChecking):
1383         (WebKit::EditorClient::handleInputMethodKeypress):
1384         (WebKit::EditorClient::EditorClient):
1385         (WebKit::EditorClient::textFieldDidBeginEditing):
1386         (WebKit::EditorClient::textFieldDidEndEditing):
1387         (WebKit::EditorClient::textDidChangeInTextField):
1388         (WebKit::EditorClient::doTextFieldCommandFromEvent):
1389         (WebKit::EditorClient::textWillBeDeletedInTextField):
1390         (WebKit::EditorClient::textDidChangeInTextArea):
1391         (WebKit::EditorClient::ignoreWordInSpellDocument):
1392         (WebKit::EditorClient::learnWord):
1393         (WebKit::EditorClient::checkSpellingOfString):
1394         (WebKit::EditorClient::checkGrammarOfString):
1395         (WebKit::EditorClient::updateSpellingUIWithGrammarString):
1396         (WebKit::EditorClient::updateSpellingUIWithMisspelledWord):
1397         (WebKit::EditorClient::showSpellingUI):
1398         (WebKit::EditorClient::spellingUIIsShowing):
1399         * WebCoreSupport/EditorClientGtk.h:
1400         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1401         (WebKit::FrameLoaderClient::FrameLoaderClient):
1402         (WebKit::FrameLoaderClient::userAgent):
1403         (WebKit::FrameLoaderClient::createDocumentLoader):
1404         (WebKit::FrameLoaderClient::committedLoad):
1405         (WebKit::FrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
1406         (WebKit::FrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
1407         (WebKit::FrameLoaderClient::dispatchWillSendRequest):
1408         (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest):
1409         (WebKit::FrameLoaderClient::postProgressStartedNotification):
1410         (WebKit::FrameLoaderClient::postProgressFinishedNotification):
1411         (WebKit::FrameLoaderClient::frameLoaderDestroyed):
1412         (WebKit::FrameLoaderClient::dispatchDidReceiveResponse):
1413         (WebKit::FrameLoaderClient::createPlugin):
1414         (WebKit::FrameLoaderClient::redirectDataToPlugin):
1415         (WebKit::FrameLoaderClient::createJavaAppletWidget):
1416         (WebKit::FrameLoaderClient::overrideMediaType):
1417         (WebKit::FrameLoaderClient::windowObjectCleared):
1418         (WebKit::FrameLoaderClient::setMainFrameDocumentReady):
1419         (WebKit::FrameLoaderClient::hasWebView):
1420         (WebKit::FrameLoaderClient::hasFrameView):
1421         (WebKit::FrameLoaderClient::dispatchDidFinishLoad):
1422         (WebKit::FrameLoaderClient::frameLoadCompleted):
1423         (WebKit::FrameLoaderClient::saveViewStateToItem):
1424         (WebKit::FrameLoaderClient::restoreViewState):
1425         (WebKit::FrameLoaderClient::privateBrowsingEnabled):
1426         (WebKit::FrameLoaderClient::makeDocumentView):
1427         (WebKit::FrameLoaderClient::makeRepresentation):
1428         (WebKit::FrameLoaderClient::forceLayout):
1429         (WebKit::FrameLoaderClient::forceLayoutForNonHTML):
1430         (WebKit::FrameLoaderClient::setCopiesOnScroll):
1431         (WebKit::FrameLoaderClient::detachedFromParent1):
1432         (WebKit::FrameLoaderClient::detachedFromParent2):
1433         (WebKit::FrameLoaderClient::detachedFromParent3):
1434         (WebKit::FrameLoaderClient::detachedFromParent4):
1435         (WebKit::FrameLoaderClient::loadedFromCachedPage):
1436         (WebKit::FrameLoaderClient::dispatchDidHandleOnloadEvents):
1437         (WebKit::FrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
1438         (WebKit::FrameLoaderClient::dispatchDidCancelClientRedirect):
1439         (WebKit::FrameLoaderClient::dispatchWillPerformClientRedirect):
1440         (WebKit::FrameLoaderClient::dispatchDidChangeLocationWithinPage):
1441         (WebKit::FrameLoaderClient::dispatchWillClose):
1442         (WebKit::FrameLoaderClient::dispatchDidReceiveIcon):
1443         (WebKit::FrameLoaderClient::dispatchDidStartProvisionalLoad):
1444         (WebKit::FrameLoaderClient::dispatchDidReceiveTitle):
1445         (WebKit::FrameLoaderClient::dispatchDidCommitLoad):
1446         (WebKit::FrameLoaderClient::dispatchDidFinishDocumentLoad):
1447         (WebKit::FrameLoaderClient::dispatchDidFirstLayout):
1448         (WebKit::FrameLoaderClient::dispatchShow):
1449         (WebKit::FrameLoaderClient::cancelPolicyCheck):
1450         (WebKit::FrameLoaderClient::dispatchDidLoadMainResource):
1451         (WebKit::FrameLoaderClient::revertToProvisionalState):
1452         (WebKit::FrameLoaderClient::clearUnarchivingState):
1453         (WebKit::FrameLoaderClient::willChangeTitle):
1454         (WebKit::FrameLoaderClient::didChangeTitle):
1455         (WebKit::FrameLoaderClient::finishedLoading):
1456         (WebKit::FrameLoaderClient::finalSetupForReplace):
1457         (WebKit::FrameLoaderClient::setDefersLoading):
1458         (WebKit::FrameLoaderClient::isArchiveLoadPending):
1459         (WebKit::FrameLoaderClient::cancelPendingArchiveLoad):
1460         (WebKit::FrameLoaderClient::clearArchivedResources):
1461         (WebKit::FrameLoaderClient::canHandleRequest):
1462         (WebKit::FrameLoaderClient::canShowMIMEType):
1463         (WebKit::FrameLoaderClient::representationExistsForURLScheme):
1464         (WebKit::FrameLoaderClient::generatedMIMETypeForURLScheme):
1465         (WebKit::FrameLoaderClient::provisionalLoadStarted):
1466         (WebKit::FrameLoaderClient::didFinishLoad):
1467         (WebKit::FrameLoaderClient::setDocumentViewFromCachedPage):
1468         (WebKit::FrameLoaderClient::dispatchDidReceiveContentLength):
1469         (WebKit::FrameLoaderClient::dispatchDidFinishLoading):
1470         (WebKit::FrameLoaderClient::dispatchDidFailLoading):
1471         (WebKit::FrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
1472         (WebKit::FrameLoaderClient::dispatchDidFailProvisionalLoad):
1473         (WebKit::FrameLoaderClient::dispatchDidFailLoad):
1474         (WebKit::FrameLoaderClient::download):
1475         (WebKit::FrameLoaderClient::cancelledError):
1476         (WebKit::FrameLoaderClient::blockedError):
1477         (WebKit::FrameLoaderClient::cannotShowURLError):
1478         (WebKit::FrameLoaderClient::interruptForPolicyChangeError):
1479         (WebKit::FrameLoaderClient::cannotShowMIMETypeError):
1480         (WebKit::FrameLoaderClient::fileDoesNotExistError):
1481         (WebKit::FrameLoaderClient::shouldFallBack):
1482         (WebKit::FrameLoaderClient::willUseArchive):
1483         (WebKit::FrameLoaderClient::saveDocumentViewToCachedPage):
1484         (WebKit::FrameLoaderClient::canCachePage):
1485         (WebKit::FrameLoaderClient::dispatchCreatePage):
1486         (WebKit::FrameLoaderClient::dispatchUnableToImplementPolicy):
1487         * WebCoreSupport/FrameLoaderClientGtk.h:
1488         * WebCoreSupport/InspectorClientGtk.cpp:
1489         (WebKit::InspectorClient::inspectorDestroyed):
1490         (WebKit::InspectorClient::createPage):
1491         (WebKit::InspectorClient::showWindow):
1492         (WebKit::InspectorClient::closeWindow):
1493         (WebKit::InspectorClient::attachWindow):
1494         (WebKit::InspectorClient::detachWindow):
1495         (WebKit::InspectorClient::highlight):
1496         (WebKit::InspectorClient::hideHighlight):
1497         * WebCoreSupport/InspectorClientGtk.h:
1498
1499 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
1500
1501         Reviewed by Adam.
1502
1503         As of http://bugs.webkit.org/show_bug.cgi?id=14727 move the
1504         various *ClientGdk.{cpp,h} files from WebCore to WebKit/gtk/WebCoreSupport and
1505         rename it from Gdk to Gtk.
1506
1507         * Api/webkitgtkdefines.h:
1508         * Api/webkitgtkframe.cpp:
1509         * Api/webkitgtkframe.h:
1510         * Api/webkitgtkglobal.cpp:
1511         * Api/webkitgtkglobal.h:
1512         * Api/webkitgtknetworkrequest.cpp:
1513         * Api/webkitgtknetworkrequest.h:
1514         * Api/webkitgtkpage.cpp:
1515         * Api/webkitgtkpage.h:
1516         * Api/webkitgtkprivate.cpp:
1517         * Api/webkitgtkprivate.h:
1518         * Api/webkitgtksettings.cpp:
1519         * Api/webkitgtksettings.h:
1520         * WebCoreSupport/ChromeClientGtk.cpp: Renamed from WebKit/gtk/WebCoreSupport/ChromeClientGdk.cpp.
1521         (WebKitGtk::ChromeClientGtk::ChromeClientGtk):
1522         (WebKitGtk::ChromeClientGtk::chromeDestroyed):
1523         (WebKitGtk::ChromeClientGtk::windowRect):
1524         (WebKitGtk::ChromeClientGtk::setWindowRect):
1525         (WebKitGtk::ChromeClientGtk::pageRect):
1526         (WebKitGtk::ChromeClientGtk::scaleFactor):
1527         (WebKitGtk::ChromeClientGtk::focus):
1528         (WebKitGtk::ChromeClientGtk::unfocus):
1529         (WebKitGtk::ChromeClientGtk::createWindow):
1530         (WebKitGtk::ChromeClientGtk::createModalDialog):
1531         (WebKitGtk::ChromeClientGtk::show):
1532         (WebKitGtk::ChromeClientGtk::canRunModal):
1533         (WebKitGtk::ChromeClientGtk::runModal):
1534         (WebKitGtk::ChromeClientGtk::setToolbarsVisible):
1535         (WebKitGtk::ChromeClientGtk::toolbarsVisible):
1536         (WebKitGtk::ChromeClientGtk::setStatusbarVisible):
1537         (WebKitGtk::ChromeClientGtk::statusbarVisible):
1538         (WebKitGtk::ChromeClientGtk::setScrollbarsVisible):
1539         (WebKitGtk::ChromeClientGtk::scrollbarsVisible):
1540         (WebKitGtk::ChromeClientGtk::setMenubarVisible):
1541         (WebKitGtk::ChromeClientGtk::menubarVisible):
1542         (WebKitGtk::ChromeClientGtk::setResizable):
1543         (WebKitGtk::ChromeClientGtk::closeWindowSoon):
1544         (WebKitGtk::ChromeClientGtk::canTakeFocus):
1545         (WebKitGtk::ChromeClientGtk::takeFocus):
1546         (WebKitGtk::ChromeClientGtk::canRunBeforeUnloadConfirmPanel):
1547         (WebKitGtk::ChromeClientGtk::runBeforeUnloadConfirmPanel):
1548         (WebKitGtk::ChromeClientGtk::addMessageToConsole):
1549         (WebKitGtk::ChromeClientGtk::runJavaScriptAlert):
1550         (WebKitGtk::ChromeClientGtk::runJavaScriptConfirm):
1551         (WebKitGtk::ChromeClientGtk::runJavaScriptPrompt):
1552         (WebKitGtk::ChromeClientGtk::setStatusbarText):
1553         (WebKitGtk::ChromeClientGtk::shouldInterruptJavaScript):
1554         (WebKitGtk::ChromeClientGtk::tabsToLinks):
1555         (WebKitGtk::ChromeClientGtk::windowResizerRect):
1556         (WebKitGtk::ChromeClientGtk::addToDirtyRegion):
1557         (WebKitGtk::ChromeClientGtk::scrollBackingStore):
1558         (WebKitGtk::ChromeClientGtk::updateBackingStore):
1559         (WebKitGtk::ChromeClientGtk::mouseDidMoveOverElement):
1560         (WebKitGtk::ChromeClientGtk::setToolTip):
1561         * WebCoreSupport/ChromeClientGtk.h: Renamed from WebKit/gtk/WebCoreSupport/ChromeClientGdk.h.
1562         (WebKitGtk::ChromeClientGtk::webPage):
1563         * WebCoreSupport/ContextMenuClientGtk.cpp: Renamed from WebCore/page/gdk/ContextMenuClientGdk.cpp.
1564         (WebCore::ContextMenuClientGtk::contextMenuDestroyed):
1565         (WebCore::ContextMenuClientGtk::getCustomMenuFromDefaultItems):
1566         (WebCore::ContextMenuClientGtk::contextMenuItemSelected):
1567         (WebCore::ContextMenuClientGtk::downloadURL):
1568         (WebCore::ContextMenuClientGtk::copyImageToClipboard):
1569         (WebCore::ContextMenuClientGtk::searchWithGoogle):
1570         (WebCore::ContextMenuClientGtk::lookUpInDictionary):
1571         (WebCore::ContextMenuClientGtk::speak):
1572         (WebCore::ContextMenuClientGtk::stopSpeaking):
1573         * WebCoreSupport/ContextMenuClientGtk.h: Renamed from WebCore/page/gdk/ContextMenuClientGdk.h.
1574         * WebCoreSupport/EditorClientGtk.cpp: Renamed from WebCore/platform/gdk/EditorClientGdk.cpp.
1575         (WebCore::EditorClientGtk::shouldDeleteRange):
1576         (WebCore::EditorClientGtk::shouldShowDeleteInterface):
1577         (WebCore::EditorClientGtk::isContinuousSpellCheckingEnabled):
1578         (WebCore::EditorClientGtk::isGrammarCheckingEnabled):
1579         (WebCore::EditorClientGtk::spellCheckerDocumentTag):
1580         (WebCore::EditorClientGtk::shouldBeginEditing):
1581         (WebCore::EditorClientGtk::shouldEndEditing):
1582         (WebCore::EditorClientGtk::shouldInsertText):
1583         (WebCore::EditorClientGtk::shouldChangeSelectedRange):
1584         (WebCore::EditorClientGtk::shouldApplyStyle):
1585         (WebCore::EditorClientGtk::shouldMoveRangeAfterDelete):
1586         (WebCore::EditorClientGtk::didBeginEditing):
1587         (WebCore::EditorClientGtk::respondToChangedContents):
1588         (WebCore::EditorClientGtk::respondToChangedSelection):
1589         (WebCore::EditorClientGtk::didEndEditing):
1590         (WebCore::EditorClientGtk::didWriteSelectionToPasteboard):
1591         (WebCore::EditorClientGtk::didSetSelectionTypesForPasteboard):
1592         (WebCore::EditorClientGtk::selectWordBeforeMenuEvent):
1593         (WebCore::EditorClientGtk::isEditable):
1594         (WebCore::EditorClientGtk::registerCommandForUndo):
1595         (WebCore::EditorClientGtk::registerCommandForRedo):
1596         (WebCore::EditorClientGtk::clearUndoRedoOperations):
1597         (WebCore::EditorClientGtk::canUndo):
1598         (WebCore::EditorClientGtk::canRedo):
1599         (WebCore::EditorClientGtk::undo):
1600         (WebCore::EditorClientGtk::redo):
1601         (WebCore::EditorClientGtk::shouldInsertNode):
1602         (WebCore::EditorClientGtk::pageDestroyed):
1603         (WebCore::EditorClientGtk::smartInsertDeleteEnabled):
1604         (WebCore::EditorClientGtk::toggleContinuousSpellChecking):
1605         (WebCore::EditorClientGtk::toggleGrammarChecking):
1606         (WebCore::EditorClientGtk::handleKeypress):
1607         (WebCore::EditorClientGtk::handleInputMethodKeypress):
1608         (WebCore::EditorClientGtk::EditorClientGtk):
1609         (WebCore::EditorClientGtk::textFieldDidBeginEditing):
1610         (WebCore::EditorClientGtk::textFieldDidEndEditing):
1611         (WebCore::EditorClientGtk::textDidChangeInTextField):
1612         (WebCore::EditorClientGtk::doTextFieldCommandFromEvent):
1613         (WebCore::EditorClientGtk::textWillBeDeletedInTextField):
1614         (WebCore::EditorClientGtk::textDidChangeInTextArea):
1615         (WebCore::EditorClientGtk::ignoreWordInSpellDocument):
1616         (WebCore::EditorClientGtk::learnWord):
1617         (WebCore::EditorClientGtk::checkSpellingOfString):
1618         (WebCore::EditorClientGtk::checkGrammarOfString):
1619         (WebCore::EditorClientGtk::updateSpellingUIWithGrammarString):
1620         (WebCore::EditorClientGtk::updateSpellingUIWithMisspelledWord):
1621         (WebCore::EditorClientGtk::showSpellingUI):
1622         (WebCore::EditorClientGtk::spellingUIIsShowing):
1623         (WebCore::EditorClientGtk::getGuessesForWord):
1624         * WebCoreSupport/EditorClientGtk.h: Renamed from WebCore/platform/gdk/EditorClientGdk.h.
1625         * WebCoreSupport/FrameLoaderClientGtk.cpp: Renamed from WebCore/loader/gdk/FrameLoaderClientGdk.cpp.
1626         (WebCore::FrameLoaderClientGtk::FrameLoaderClientGtk):
1627         (WebCore::FrameLoaderClientGtk::userAgent):
1628         (WebCore::FrameLoaderClientGtk::createDocumentLoader):
1629         (WebCore::FrameLoaderClientGtk::dispatchWillSubmitForm):
1630         (WebCore::FrameLoaderClientGtk::committedLoad):
1631         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveAuthenticationChallenge):
1632         (WebCore::FrameLoaderClientGtk::dispatchDidCancelAuthenticationChallenge):
1633         (WebCore::FrameLoaderClientGtk::dispatchWillSendRequest):
1634         (WebCore::FrameLoaderClientGtk::assignIdentifierToInitialRequest):
1635         (WebCore::FrameLoaderClientGtk::postProgressStartedNotification):
1636         (WebCore::FrameLoaderClientGtk::postProgressEstimateChangedNotification):
1637         (WebCore::FrameLoaderClientGtk::postProgressFinishedNotification):
1638         (WebCore::FrameLoaderClientGtk::frameLoaderDestroyed):
1639         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveResponse):
1640         (WebCore::FrameLoaderClientGtk::dispatchDecidePolicyForMIMEType):
1641         (WebCore::FrameLoaderClientGtk::dispatchDecidePolicyForNewWindowAction):
1642         (WebCore::FrameLoaderClientGtk::dispatchDecidePolicyForNavigationAction):
1643         (WebCore::FrameLoaderClientGtk::createPlugin):
1644         (WebCore::FrameLoaderClientGtk::createFrame):
1645         (WebCore::FrameLoaderClientGtk::redirectDataToPlugin):
1646         (WebCore::FrameLoaderClientGtk::createJavaAppletWidget):
1647         (WebCore::FrameLoaderClientGtk::objectContentType):
1648         (WebCore::FrameLoaderClientGtk::overrideMediaType):
1649         (WebCore::FrameLoaderClientGtk::windowObjectCleared):
1650         (WebCore::FrameLoaderClientGtk::setMainFrameDocumentReady):
1651         (WebCore::FrameLoaderClientGtk::hasWebView):
1652         (WebCore::FrameLoaderClientGtk::hasFrameView):
1653         (WebCore::FrameLoaderClientGtk::dispatchDidFinishLoad):
1654         (WebCore::FrameLoaderClientGtk::frameLoadCompleted):
1655         (WebCore::FrameLoaderClientGtk::saveViewStateToItem):
1656         (WebCore::FrameLoaderClientGtk::restoreViewState):
1657         (WebCore::FrameLoaderClientGtk::shouldGoToHistoryItem):
1658         (WebCore::FrameLoaderClientGtk::privateBrowsingEnabled):
1659         (WebCore::FrameLoaderClientGtk::makeDocumentView):
1660         (WebCore::FrameLoaderClientGtk::makeRepresentation):
1661         (WebCore::FrameLoaderClientGtk::forceLayout):
1662         (WebCore::FrameLoaderClientGtk::forceLayoutForNonHTML):
1663         (WebCore::FrameLoaderClientGtk::setCopiesOnScroll):
1664         (WebCore::FrameLoaderClientGtk::detachedFromParent1):
1665         (WebCore::FrameLoaderClientGtk::detachedFromParent2):
1666         (WebCore::FrameLoaderClientGtk::detachedFromParent3):
1667         (WebCore::FrameLoaderClientGtk::detachedFromParent4):
1668         (WebCore::FrameLoaderClientGtk::loadedFromCachedPage):
1669         (WebCore::FrameLoaderClientGtk::dispatchDidHandleOnloadEvents):
1670         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveServerRedirectForProvisionalLoad):
1671         (WebCore::FrameLoaderClientGtk::dispatchDidCancelClientRedirect):
1672         (WebCore::FrameLoaderClientGtk::dispatchWillPerformClientRedirect):
1673         (WebCore::FrameLoaderClientGtk::dispatchDidChangeLocationWithinPage):
1674         (WebCore::FrameLoaderClientGtk::dispatchWillClose):
1675         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveIcon):
1676         (WebCore::FrameLoaderClientGtk::dispatchDidStartProvisionalLoad):
1677         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveTitle):
1678         (WebCore::FrameLoaderClientGtk::dispatchDidCommitLoad):
1679         (WebCore::FrameLoaderClientGtk::dispatchDidFinishDocumentLoad):
1680         (WebCore::FrameLoaderClientGtk::dispatchDidFirstLayout):
1681         (WebCore::FrameLoaderClientGtk::dispatchShow):
1682         (WebCore::FrameLoaderClientGtk::cancelPolicyCheck):
1683         (WebCore::FrameLoaderClientGtk::dispatchDidLoadMainResource):
1684         (WebCore::FrameLoaderClientGtk::revertToProvisionalState):
1685         (WebCore::FrameLoaderClientGtk::clearUnarchivingState):
1686         (WebCore::FrameLoaderClientGtk::willChangeTitle):
1687         (WebCore::FrameLoaderClientGtk::didChangeTitle):
1688         (WebCore::FrameLoaderClientGtk::finishedLoading):
1689         (WebCore::FrameLoaderClientGtk::finalSetupForReplace):
1690         (WebCore::FrameLoaderClientGtk::setDefersLoading):
1691         (WebCore::FrameLoaderClientGtk::isArchiveLoadPending):
1692         (WebCore::FrameLoaderClientGtk::cancelPendingArchiveLoad):
1693         (WebCore::FrameLoaderClientGtk::clearArchivedResources):
1694         (WebCore::FrameLoaderClientGtk::canHandleRequest):
1695         (WebCore::FrameLoaderClientGtk::canShowMIMEType):
1696         (WebCore::FrameLoaderClientGtk::representationExistsForURLScheme):
1697         (WebCore::FrameLoaderClientGtk::generatedMIMETypeForURLScheme):
1698         (WebCore::FrameLoaderClientGtk::provisionalLoadStarted):
1699         (WebCore::FrameLoaderClientGtk::didFinishLoad):
1700         (WebCore::FrameLoaderClientGtk::prepareForDataSourceReplacement):
1701         (WebCore::FrameLoaderClientGtk::setTitle):
1702         (WebCore::FrameLoaderClientGtk::setDocumentViewFromCachedPage):
1703         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveContentLength):
1704         (WebCore::FrameLoaderClientGtk::dispatchDidFinishLoading):
1705         (WebCore::FrameLoaderClientGtk::dispatchDidFailLoading):
1706         (WebCore::FrameLoaderClientGtk::dispatchDidLoadResourceFromMemoryCache):
1707         (WebCore::FrameLoaderClientGtk::dispatchDidFailProvisionalLoad):
1708         (WebCore::FrameLoaderClientGtk::dispatchDidFailLoad):
1709         (WebCore::FrameLoaderClientGtk::download):
1710         (WebCore::FrameLoaderClientGtk::cancelledError):
1711         (WebCore::FrameLoaderClientGtk::blockedError):
1712         (WebCore::FrameLoaderClientGtk::cannotShowURLError):
1713         (WebCore::FrameLoaderClientGtk::interruptForPolicyChangeError):
1714         (WebCore::FrameLoaderClientGtk::cannotShowMIMETypeError):
1715         (WebCore::FrameLoaderClientGtk::fileDoesNotExistError):
1716         (WebCore::FrameLoaderClientGtk::shouldFallBack):
1717         (WebCore::FrameLoaderClientGtk::willUseArchive):
1718         (WebCore::FrameLoaderClientGtk::saveDocumentViewToCachedPage):
1719         (WebCore::FrameLoaderClientGtk::canCachePage):
1720         (WebCore::FrameLoaderClientGtk::dispatchCreatePage):
1721         (WebCore::FrameLoaderClientGtk::dispatchUnableToImplementPolicy):
1722         * WebCoreSupport/FrameLoaderClientGtk.h: Renamed from WebCore/loader/gdk/FrameLoaderClientGdk.h.
1723         (WebCore::FrameLoaderClientGtk::~FrameLoaderClientGtk):
1724         (WebCore::FrameLoaderClientGtk::webFrame):
1725         * WebCoreSupport/InspectorClientGtk.cpp: Renamed from WebCore/page/gdk/InspectorClientGdk.cpp.
1726         (WebCore::InspectorClientGtk::inspectorDestroyed):
1727         (WebCore::InspectorClientGtk::createPage):
1728         (WebCore::InspectorClientGtk::showWindow):
1729         (WebCore::InspectorClientGtk::closeWindow):
1730         (WebCore::InspectorClientGtk::attachWindow):
1731         (WebCore::InspectorClientGtk::detachWindow):
1732         (WebCore::InspectorClientGtk::highlight):
1733         (WebCore::InspectorClientGtk::hideHighlight):
1734         (WebCore::InspectorClientGtk::inspectedURLChanged):
1735         * WebCoreSupport/InspectorClientGtk.h: Renamed from WebCore/page/gdk/InspectorClientGdk.h.
1736
1737 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
1738
1739         Build fix.
1740
1741         * Api/webkitgtkframe.cpp:
1742
1743 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
1744
1745         Reviewed by Adam.
1746
1747         Remove the create_frame virtual method of WebKitGtkPage. This method was inspired
1748         by the Qt port but to be useful for reimplementations WebKitGtkFrameData would need
1749         to export/expose WebCore types. WebView doesn't offer such a method so I decided to
1750         remove it.
1751         Add a internal constructor to WebKitGtkFrame to be used for constructing Sub-Frames. This
1752         is currently used by FrameLoaderClientGdk::createFrame.
1753
1754         * Api/webkitgtkframe.cpp:
1755         * Api/webkitgtkframedata.cpp: Removed.
1756         * Api/webkitgtkframedata.h: Removed.
1757         * Api/webkitgtkpage.cpp:
1758         * Api/webkitgtkpage.h:
1759         * Api/webkitgtkprivate.h:
1760
1761 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
1762
1763         Reviewed by Adam.
1764
1765         Follow the changes of ScrollView in WebCore and call setContainingWindow, set the
1766         GtkAdjustment of the GtkLayout and reimplement the set_scroll_adjustments method and pass
1767         the GtkAdjustments to ScrollView.
1768         This makes having one GdkWindow for the complete FrameTree possible.
1769         
1770
1771         * gtk/Api/webkitgtkframe.cpp:
1772         * gtk/Api/webkitgtkpage.cpp:
1773
1774 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1775
1776         Reviewed by Niko.
1777
1778         We only need to set the Settings of the Page once so do it in
1779         WebKitGtkPage instead of WebKitGtkFrame.
1780
1781         * gtk/Api/webkitgtkframe.cpp:
1782         * gtk/Api/webkitgtkpage.cpp:
1783
1784 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1785
1786         Reviewed by Niko.
1787
1788         Instead of reimplementing the general event method, reimplement
1789         the specific mouse, expose, keyboard event methods.
1790
1791         Call the finalize implementation of the base class from WebKitGtkPage
1792         and WebKitGtkFrame.
1793
1794         * gtk/Api/webkitgtkframe.cpp:
1795         * gtk/Api/webkitgtkpage.cpp:
1796
1797 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1798
1799         Reviewed by Niko.
1800
1801         Remove the custom painting in favor of the Widget::paint
1802         implementation.
1803
1804         * gtk/Api/webkitgtkpage.cpp:
1805
1806 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1807
1808         Reviewed by Adam.
1809
1810         Moved code from class FrameGdk into WebKitGtkFrame. Update the
1811         webkitgrkprivate.h header file to not include FrameGdk.h.
1812
1813         * gtk/Api/webkitgtkframe.cpp:
1814         * gtk/Api/webkitgtkprivate.h:
1815
1816 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1817
1818         Reviewed by Adam.
1819
1820         Change variable names to follow the Coding-Style. Replace occurences
1821         of a_b with aB and place the '*' correctly.
1822
1823         * gtk/Api/webkitgtkframe.cpp:
1824         * gtk/Api/webkitgtkpage.cpp:
1825         * gtk/Api/webkitgtkprivate.h:
1826
1827 2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
1828
1829         Reviewed by Adam.
1830
1831         Reimplement GtkWidget::event and handle the keyboard and mouse
1832         events inside WebKitGtkPage.
1833
1834         * gtk/Api/webkitgtkpage.cpp:
1835         (FrameGdkExposeData::frame_gdk_expose_child):
1836         (FrameGdkExposeData::webkit_gtk_page_rendering_area_handle_gdk_event):
1837         (FrameGdkExposeData::webkit_gtk_page_register_rendering_area_events):
1838         (FrameGdkExposeData::webkit_gtk_page_class_init):
1839
1840 2007-08-07  Xan Lopez  <xan@gnome.org>
1841
1842         Reviewed by Mark Rowe.
1843
1844         http://bugs.webkit.org/show_bug.cgi?id=14815
1845         [gtk] API implementation: reload
1846
1847         * gtk/Api/webkitgtkpage.cpp: Implement the webkit_gtk_page_reload()
1848         function.
1849
1850 2007-07-30  Diego Escalante Urrelo  <diegoe@gnome.org>
1851
1852         Reviewed by Adam.
1853
1854         http://bugs.webkit.org/show_bug.cgi?id=14806
1855         Implement can_go_backward and can_go_forward in webkitgtkpage.cpp
1856
1857         * gtk/Api/webkitgtkpage.cpp: Implement webkit_gtk_page_can_go_backward() and
1858         webkit_gtk_page_can_go_forward() functions.
1859
1860 2007-07-30  Diego Escalante Urrelo  <diegoe@gnome.org> 
1861
1862         Reviewed by Alp Toker.
1863
1864         http://bugs.webkit.org/show_bug.cgi?id=14810
1865         Bad n_params on load_finished's g_signal_new in webkitgtkpage.cpp
1866
1867         This is the proper fix for #14810.
1868
1869         * gtk/Api/webkitgtkframe.cpp:
1870         * gtk/Api/webkitgtkpage.cpp: Fix the marshaller type of the "load_finished" signal and
1871         correct the class_offset parameters.
1872
1873 2007-07-29  Diego Escalante Urrelo  <diegoe@gnome.org>
1874
1875         Reviewed by Alp Toker.
1876
1877         http://bugs.webkit.org/show_bug.cgi?id=14810
1878         Bad n_params on load_finished's g_signal_new in webkitgtkpage.cpp
1879
1880         * gtk/Api/webkitgtkpage.cpp: Use a correct n_params value and the corresponding types for
1881         them in the "load_finished" signal.
1882
1883 2007-07-22  Holger Hans Peter Freyther  <zecke@selfish.org>
1884
1885         Reviewed by Adam.
1886
1887         Add the first API and partial implementation of the WebKit/Gtk port as
1888         of http://bugs.webkit.org/show_bug.cgi?id=14678.
1889
1890         The delegates of WebView will be modeled as signals. Delegates like the
1891         WebPolicyDelegate will be implemented as signals with default handlers.
1892
1893         Start moving files to WebKit/gtk/WebCoreSupport.
1894
1895         * gtk: Added.
1896         * gtk/Api: Added.
1897         * gtk/Api/headers.pri: Added.
1898         * gtk/Api/webkitgtk-marshal.list: Added.
1899         * gtk/Api/webkitgtkdefines.h: Added.
1900         * gtk/Api/webkitgtkframe.cpp: Added.
1901         * gtk/Api/webkitgtkframe.h: Added.
1902         * gtk/Api/webkitgtkframedata.cpp: Added.
1903         * gtk/Api/webkitgtkframedata.h: Added.
1904         * gtk/Api/webkitgtkglobal.cpp: Added.
1905         * gtk/Api/webkitgtkglobal.h: Added.
1906         * gtk/Api/webkitgtknetworkrequest.cpp: Added.
1907         * gtk/Api/webkitgtknetworkrequest.h: Added.
1908         * gtk/Api/webkitgtkpage.cpp: Added.
1909         * gtk/Api/webkitgtkpage.h: Added.
1910         * gtk/Api/webkitgtkprivate.cpp: Added.
1911         * gtk/Api/webkitgtkprivate.h: Added.
1912         * gtk/Api/webkitgtksettings.cpp: Added.
1913         * gtk/Api/webkitgtksettings.h: Added.
1914         * gtk/WebCoreSupport: Added.
1915         * gtk/WebCoreSupport/ChromeClientGdk.cpp: Added.
1916         (WebCore::ChromeClientGdk::ChromeClientGdk):
1917         (WebCore::ChromeClientGdk::chromeDestroyed):
1918         (WebCore::ChromeClientGdk::windowRect):
1919         (WebCore::ChromeClientGdk::setWindowRect):
1920         (WebCore::ChromeClientGdk::pageRect):
1921         (WebCore::ChromeClientGdk::scaleFactor):
1922         (WebCore::ChromeClientGdk::focus):
1923         (WebCore::ChromeClientGdk::unfocus):
1924         (WebCore::ChromeClientGdk::createWindow):
1925         (WebCore::ChromeClientGdk::createModalDialog):
1926         (WebCore::ChromeClientGdk::show):
1927         (WebCore::ChromeClientGdk::canRunModal):
1928         (WebCore::ChromeClientGdk::runModal):
1929         (WebCore::ChromeClientGdk::setToolbarsVisible):
1930         (WebCore::ChromeClientGdk::toolbarsVisible):
1931         (WebCore::ChromeClientGdk::setStatusbarVisible):
1932         (WebCore::ChromeClientGdk::statusbarVisible):
1933         (WebCore::ChromeClientGdk::setScrollbarsVisible):
1934         (WebCore::ChromeClientGdk::scrollbarsVisible):
1935         (WebCore::ChromeClientGdk::setMenubarVisible):
1936         (WebCore::ChromeClientGdk::menubarVisible):
1937         (WebCore::ChromeClientGdk::setResizable):
1938         (WebCore::ChromeClientGdk::closeWindowSoon):
1939         (WebCore::ChromeClientGdk::canTakeFocus):
1940         (WebCore::ChromeClientGdk::takeFocus):
1941         (WebCore::ChromeClientGdk::canRunBeforeUnloadConfirmPanel):
1942         (WebCore::ChromeClientGdk::runBeforeUnloadConfirmPanel):
1943         (WebCore::ChromeClientGdk::addMessageToConsole):
1944         (WebCore::ChromeClientGdk::runJavaScriptAlert):
1945         (WebCore::ChromeClientGdk::runJavaScriptConfirm):
1946         (WebCore::ChromeClientGdk::runJavaScriptPrompt):
1947         (WebCore::ChromeClientGdk::setStatusbarText):
1948         (WebCore::ChromeClientGdk::shouldInterruptJavaScript):
1949         (WebCore::ChromeClientGdk::tabsToLinks):
1950         (WebCore::ChromeClientGdk::windowResizerRect):
1951         (WebCore::ChromeClientGdk::addToDirtyRegion):
1952         (WebCore::ChromeClientGdk::scrollBackingStore):
1953         (WebCore::ChromeClientGdk::updateBackingStore):
1954         (WebCore::ChromeClientGdk::mouseDidMoveOverElement):
1955         (WebCore::ChromeClientGdk::setToolTip):
1956         (WebCore::ChromeClientGdk::print):
1957         * gtk/WebCoreSupport/ChromeClientGdk.h: Added.
1958