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