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