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