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