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