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