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