Reviewed by Kevin Ollivier.
[WebKit-https.git] / WebKit / wx / ChangeLog
1 2008-05-11  Robin Dunn  <robin@alldunn.com>
2
3         Reviewed by Kevin Ollivier.
4         
5         Fix scrolling issues by implementing transitionToCommittedNewPage() so the scroll
6         positions are reset when a new page is loaded, and also maintained so that back
7         and next restore the scroll positions as well. This also simplifies the logic
8         for initializing and managing wxWebView.
9         
10         https://bugs.webkit.org/show_bug.cgi?id=18992
11
12         * WebKitSupport/FrameLoaderClientWx.cpp:
13         (WebCore::FrameLoaderClientWx::setWebView):
14         (WebCore::FrameLoaderClientWx::dispatchDidHandleOnloadEvents):
15         (WebCore::FrameLoaderClientWx::dispatchDidStartProvisionalLoad):
16         (WebCore::FrameLoaderClientWx::dispatchDidReceiveTitle):
17         (WebCore::FrameLoaderClientWx::dispatchDidCommitLoad):
18         (WebCore::FrameLoaderClientWx::dispatchDidFinishDocumentLoad):
19         (WebCore::FrameLoaderClientWx::postProgressFinishedNotification):
20         (WebCore::FrameLoaderClientWx::dispatchDecidePolicyForNavigationAction):
21         (WebCore::FrameLoaderClientWx::createFrame):
22         (WebCore::FrameLoaderClientWx::transitionToCommittedForNewPage):
23         * WebKitSupport/FrameLoaderClientWx.h:
24         * WebView.cpp:
25         (wxWebView::wxWebView):
26         (wxWebView::~wxWebView):
27         (wxWebView::GetPageSource):
28         (wxWebView::GetInnerText):
29         (wxWebView::GetExternalRepresentation):
30         (wxWebView::OnPaint):
31         (wxWebView::OnSize):
32         (wxWebView::OnMouseEvents):
33         (wxWebView::CanCopy):
34         (wxWebView::CanCut):
35         (wxWebView::CanPaste):
36         (wxWebView::OnKeyEvents):
37         * WebViewPrivate.h:
38         (WebViewPrivate::WebViewPrivate):
39
40 2008-05-04  Robin Dunn  <robin@alldunn.com>
41
42         Reviewed by Kevin Ollivier.
43         
44         Allow events to specify the ID of the particular wxWebView they are to be sent to.
45         
46         https://bugs.webkit.org/show_bug.cgi?id=18659
47
48         * WebFrame.cpp:
49         (wxWebFrame::wxWebFrame):
50         * WebView.cpp:
51         (wxWebViewLoadEvent::wxWebViewLoadEvent):
52         (wxWebViewBeforeLoadEvent::wxWebViewBeforeLoadEvent):
53         (wxWebViewNewWindowEvent::wxWebViewNewWindowEvent):
54         (wxWebViewRightClickEvent::wxWebViewRightClickEvent):
55         (wxWebViewConsoleMessageEvent::wxWebViewConsoleMessageEvent):
56         * WebView.h:
57         * bindings/python/webview.i:
58
59 2008-04-27  Robin Dunn  <robin@alldunn.com>
60
61         Reviewed by Kevin Ollivier.
62         
63         Add methods to check if there is a previous/next page in the history. Also some
64         coding style cleanup.
65         
66         https://bugs.webkit.org/show_bug.cgi?id=18757
67
68         * WebView.cpp:
69         (wxWebView::GoBack):
70         (wxWebView::GoForward):
71         (wxWebView::CanGoBack):
72         (wxWebView::CanGoForward):
73         * WebView.h:
74
75 2008-04-24  Anders Carlsson  <andersca@apple.com>
76
77         Reviewed by Sam.
78
79         Change some String arguments to be const references instead.
80
81         * WebKitSupport/EditorClientWx.cpp:
82         (WebCore::EditorClientWx::shouldInsertText):
83         * WebKitSupport/EditorClientWx.h:
84
85 2008-04-23  Kevin Ollivier  <kevino@theolliviers.com>
86
87         Reviewed by Alp Toker.
88         
89         Typo fix to restore text entry.
90
91         * WebKitSupport/EditorClientWx.cpp:
92         (WebCore::EditorClientWx::handleKeyboardEvent):
93
94 2008-04-19  Kevin Ollivier  <kevino@theolliviers.com>
95
96         wx build fix. renderer() -> contentRenderer()
97
98         * WebView.cpp:
99         (wxWebView::GetExternalRepresentation):
100         (wxWebView::OnPaint):
101
102 2008-04-18  Kevin Ollivier  <kevino@theolliviers.com>
103
104         wx build fix. We need to use ENABLE_DOM_STORAGE now.
105
106         * wxwk-settings.bkl:
107
108 2008-04-05  Kevin Ollivier  <kevino@theolliviers.com>
109
110         Rubber stamped by Mark Rowe.
111
112         Don't assume wxWebKit to be part of the wx package. This allows
113         us to run it from any directory on the PYTHONPATH rather than
114         having to copy files into the wxPython directory.
115
116         * bindings/python/webview.i:
117
118 2008-03-25  Brady Eidson  <beidson@apple.com>
119
120         Reviewed by Darin
121
122         Remove newly obsolete FrameLoaderClient methods
123
124         * WebKitSupport/FrameLoaderClientWx.cpp:
125         * WebKitSupport/FrameLoaderClientWx.h:
126
127 2008-03-16  Kevin Ollivier  <kevino@theolliviers.com>
128
129         wx build fix. Make sure we link png/jpeg libraries before
130         wx libraries to get the right symbols.
131
132         * wxwebkit.bkl:
133         * wxwk-settings.bkl:
134
135 2008-03-16  Kevin Ollivier  <kevino@theolliviers.com>
136
137         Rubber stamped by Darin.
138
139         Add set-webkit-configuration support for wx port, and centralize
140         build dir location setting.
141
142         http://bugs.webkit.org/show_bug.cgi?id=17790
143
144         * bindings/python/wxwebkit-py.bkl:
145         * presets/wxwebkit.bkl:
146         * wxwebkit.bkl:
147         * wxwk-settings.bkl:
148
149 2008-03-12  David Hyatt  <hyatt@apple.com>
150
151         Make the zoom factor a float and not a percent.
152
153         Reviewed by antti
154
155         * WebView.cpp:
156         (wxWebView::IncreaseTextSize):
157         (wxWebView::DecreaseTextSize):
158
159 2008-03-03  Kevin Ollivier  <kevino@theolliviers.com>
160
161         wx build fix after Frame::setZoomFactor API change.
162
163         * WebView.cpp:
164         (wxWebView::IncreaseTextSize):
165         (wxWebView::DecreaseTextSize):
166
167 2008-02-24  Darin Adler  <darin@apple.com>
168
169         Reviewed by Sam.
170
171         - remove separate client calls for "standard" and "reload' history
172
173         * WebKitSupport/FrameLoaderClientWx.cpp:
174         (WebCore::FrameLoaderClientWx::updateGlobalHistory):
175         * WebKitSupport/FrameLoaderClientWx.h:
176
177 2008-02-23  Kevin Ollivier  <kevino@theolliviers.com>
178
179         Reviewed by Darin Adler.
180
181         Move text drawing into wxcode, as we need platform-dependent
182         APIs for drawing non-kerned text, which wx doesn't yet have.
183         (But hopefully will, once these APIs are fleshed out on all 
184         platforms!)
185
186         http://bugs.webkit.org/show_bug.cgi?id=17396
187
188         * wxwebkit.bkl:
189         We need to directly link against GDI+ on Windows since we now
190         directly call GDI+ APIs.
191
192 2008-02-14  Darin Adler  <darin@apple.com>
193
194         * WebView.cpp: Removed use of DeprecatedString to keep this compiling.
195
196 2008-02-11  Kevin Ollivier <kevino@theolliviers.com>
197
198         Reviewed by Darin Adler.
199
200         A couple quick wx fixes.
201         
202         http://bugs.webkit.org/show_bug.cgi?id=17321
203
204         * WebView.cpp:
205         (wxWebView::OnPaint):
206         Make sure wxGCDC has its paint origin set properly after
207         the move to wxWindow for scrolling.
208         * bindings/python/webview.i:
209         Update the wxPython bindings after event rename.
210
211 2008-02-10  Darin Adler  <darin@apple.com>
212
213         Reviewed by Eric.
214
215         - http://bugs.webkit.org/show_bug.cgi?id=17256
216           eliminate default ref. count of 0 in RefCounted class
217
218         * WebKitSupport/FrameLoaderClientWx.cpp:
219         (WebCore::FrameLoaderClientWx::FrameLoaderClientWx):
220         Set the count to 0 explicitly (one stray client I missed in my last pass).
221
222 2008-02-03  Kevin Ollivier  <kevino@theolliviers.com>
223
224         Reviewed by Darin Adler.
225
226         Typo fix. Don't use the provisionalDocumentLoader() after the
227         whole page has already been loaded.
228
229         * WebKitSupport/FrameLoaderClientWx.cpp:
230         (WebCore::FrameLoaderClientWx::dispatchDidHandleOnloadEvents):
231
232 2008-02-03  Kevin Ollivier  <kevino@theolliviers.com>
233
234         Build fix for last wx commit (a couple things were not committed). 
235         Also fix some style issues.
236
237         * WebView.cpp:
238         (wxWebView::wxWebView):
239         (wxWebView::OnPaint):
240         (wxWebView::OnSize):
241         (wxWebView::CanCopy):
242         (wxWebView::Copy):
243         (wxWebView::CanCut):
244         (wxWebView::Cut):
245         (wxWebView::CanPaste):
246         (wxWebView::Paste):
247         (wxWebView::OnKeyEvents):
248         (wxWebView::OnSetFocus):
249         (wxWebView::OnKillFocus):
250         (wxWebView::OnActivate):
251         * WebView.h:
252
253 2008-01-31  Kevin Ollivier  <kevino@theolliviers.com>
254
255         Reviewed by Adam Roben.
256
257         On MSW, the wx port internally uses callbacks for wxTimer, so the
258         wx port suffers from the same crash problem that was fixed
259         in r28500 for the Windows port. For now, use the SharedTimerWin.cpp
260         impl. for wx too on MSW, until a version of wx is released that
261         fixes the issue by reworking wxTimer.
262
263         * WebView.cpp:
264         (wxWebView::wxWebView):
265
266 2008-01-21  Darin Adler  <darin@apple.com>
267
268         Reviewed by John Sullivan.
269
270         - updated for changes to ChromeClient database functions
271
272         * WebKitSupport/ChromeClientWx.cpp:
273         (WebCore::ChromeClientWx::exceededDatabaseQuota):
274         * WebKitSupport/ChromeClientWx.h:
275
276 2008-01-16  Adam Roben  <aroben@apple.com>
277
278         Updated for WebCore method renames.
279
280         Reviewed by Darin.
281
282         * WebView.cpp:
283         (wxWebView::OnSetFocus):
284         (wxWebView::OnKillFocus):
285         (wxWebView::OnActivate):
286
287 2008-01-12  Kevin Ollivier  <kevino@theolliviers.com>
288
289         Reviewed by Darin Adler.
290
291         wxWebKit API changes in preparation for DRT implementation. 
292         Specifically:
293
294         - Add CONSOLE_MESSAGE callback so clients can choose how to handle
295         console messages.
296         - Add more load events, and rename wxWebViewStateChangedEvent to 
297         wxWebViewLoadEvent to reflect that all 'states' are load states.
298         - Add wxWebView impls. for GetInnerText(), GetAsMarkup() and 
299         GetExternalRepresentation()
300
301         * WebFrame.cpp:
302         (wxWebFrame::OnLoadEvent):
303         * WebFrame.h:
304         * WebKitSupport/ChromeClientWx.cpp:
305         (WebCore::ChromeClientWx::ChromeClientWx):
306         (WebCore::ChromeClientWx::addMessageToConsole):
307         * WebKitSupport/ChromeClientWx.h:
308         * WebKitSupport/FrameLoaderClientWx.cpp:
309         (WebCore::FrameLoaderClientWx::dispatchDidHandleOnloadEvents):
310         (WebCore::FrameLoaderClientWx::dispatchDidStartProvisionalLoad):
311         (WebCore::FrameLoaderClientWx::dispatchDidCommitLoad):
312         (WebCore::FrameLoaderClientWx::dispatchDidFinishDocumentLoad):
313         (WebCore::FrameLoaderClientWx::postProgressFinishedNotification):
314         * WebView.cpp:
315         (wxWebViewLoadEvent::wxWebViewLoadEvent):
316         (wxWebViewConsoleMessageEvent::wxWebViewConsoleMessageEvent):
317         (wxWebView::wxWebView):
318         (wxWebView::GetPageSource):
319         (wxWebView::GetInnerText):
320         (wxWebView::GetAsMarkup):
321         (wxWebView::GetExternalRepresentation):
322         * WebView.h:
323
324 2008-01-12  Kevin Ollivier  <kevino@theolliviers.com>
325
326         wx build fix. Add WebCore/icu/include dir for OS X boxes with
327         only stock ICU installed.
328
329         * dependencies.bkl:
330
331 2008-01-10  Maciej Stachowiak  <mjs@apple.com>
332
333         Reviewed by Sam.
334
335         - remove SecurityOriginData and fold its functionality into SecurityOrigin
336
337         * WebKitSupport/ChromeClientWx.cpp:
338         (WebCore::ChromeClientWx::requestQuotaIncreaseForNewDatabase):
339         (WebCore::ChromeClientWx::requestQuotaIncreaseForDatabaseOperation):
340         * WebKitSupport/ChromeClientWx.h:
341
342 2007-12-16  Darin Adler  <darin@apple.com>
343
344         - try to fix the build
345
346         * WebView.cpp:
347         (wxWebView::OnKeyEvents): Add a WebCore prefix.
348
349 2007-12-16  Alexey Proskuryakov  <ap@webkit.org>
350
351         Reviewed by Darin.
352
353         http://bugs.webkit.org/show_bug.cgi?id=16462
354         REGRESSION: access keys broken on Windows
355
356         * WebView.cpp: (wxWebView::OnKeyEvents): Call handleAccessKey() as appropriate.
357
358 2007-12-14  Darin Adler  <darin@apple.com>
359
360         Reviewed by Alexey.
361
362         * WebKitSupport/EditorClientWx.cpp:
363         (WebCore::EditorClientWx::handleKeyboardEvent): Switched from Editor::execCommand
364         to Editor::command.
365
366 2007-12-12  Brady Eidson  <beidson@apple.com>
367
368         Reviewed by Sam Weinig
369
370         As part of doing some CachedPage and client cleanup, keep Wx building
371
372         * WebKitSupport/FrameLoaderClientWx.cpp:
373         (WebCore::FrameLoaderClientWx::savePlatformDataToCachedPage):
374         (WebCore::FrameLoaderClientWx::transitionToCommittedFromCachedPage):
375         (WebCore::FrameLoaderClientWx::transitionToCommittedForNewPage):
376         * WebKitSupport/FrameLoaderClientWx.h:
377
378 2007-12-12  Sam Weinig  <sam@webkit.org>
379
380         Build fix.
381
382         * WebKitSupport/ChromeClientWx.cpp:
383         (WebCore::ChromeClientWx::createWindow):
384         * WebKitSupport/FrameLoaderClientWx.cpp:
385         (WebCore::FrameLoaderClientWx::dispatchDidStartProvisionalLoad):
386         (WebCore::FrameLoaderClientWx::dispatchDidCommitLoad):
387         (WebCore::FrameLoaderClientWx::dispatchDidFinishDocumentLoad):
388         (WebCore::FrameLoaderClientWx::postProgressFinishedNotification):
389         (WebCore::FrameLoaderClientWx::didChangeTitle):
390         (WebCore::FrameLoaderClientWx::dispatchDecidePolicyForNavigationAction):
391
392 2007-12-07  Alexey Proskuryakov  <ap@webkit.org>
393
394         Reviewed by Darin.
395
396         <rdar://problem/5535636>
397         Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
398
399         http://bugs.webkit.org/show_bug.cgi?id=13916
400         JavaScript detects Tab as a character input on a textfield validation
401
402         * WebKitSupport/EditorClientWx.cpp:
403         (WebCore::EditorClientWx::handleInputMethodKeydown):
404         (WebCore::EditorClientWx::handleKeyboardEvent):
405         * WebKitSupport/EditorClientWx.h:
406         Updated for cross-platform changes as much as it was possible without a wx build environment.
407         The keyboard event model of wx is similar to Windows one, so further fixes can be modeled
408         after the Windows port.
409
410 2007-12-06  Kevin Ollivier  <kevino@theolliviers.com>
411
412         Fix page leak caused because the Frame's page pointer is 0 by the 
413         time we call delete on it. Store a reference to the page instead
414         and delete it that way.
415
416         Also, small fix to call PrepareDC(gcdc) when using wxGCDC because
417         on Linux the wxGCDC gcdc(dc) constructor will not retain the
418         changes made to dc by PrepareDC(dc).
419
420         Reviewed by Darin Adler.
421
422         * WebView.cpp:
423         (wxWebView::wxWebView):
424         (wxWebView::~wxWebView):
425         (wxWebView::OnPaint):
426         * WebViewPrivate.h:
427         (WebViewPrivate::WebViewPrivate):
428
429 2007-12-06  Kevin Ollivier  <kevino@theolliviers.com>
430
431         Linux build fix - ensure that webcore is linked before jscore
432         so that the linker will know which symbols it needs to link in.
433         Also fix MSVC project file name typo for sample app.
434
435         * Bakefiles.bkgen:
436         * wxwebkit.bkl:
437
438 2007-12-04  Darin Adler  <darin@apple.com>
439
440         Reviewed by Kevin Decker.
441
442         * WebKitSupport/FrameLoaderClientWx.cpp: Removed obsolete privateBrowsingEnabled.
443         * WebKitSupport/FrameLoaderClientWx.h: Ditto.
444
445 2007-12-03  Mark Rowe  <mrowe@apple.com>
446
447         wx build fix.
448
449         * WebView.cpp:
450         (wxWebView::RunScript):
451
452 2007-11-30  Kevin Ollivier  <kevino@theolliviers.com>
453
454         wx build fix. Add WebCore/platform/graphics/wx to includes.
455
456         * wxwebkit.bkl:
457
458 2007-11-30  Kevin Ollivier  <kevino@theolliviers.com>
459
460         Fix method signatures to be members of ClientChromeWx class.
461
462         * WebKitSupport/ChromeClientWx.cpp:
463         (WebCore::ChromeClientWx::requestQuotaIncreaseForNewDatabase):
464         (WebCore::ChromeClientWx::requestQuotaIncreaseForDatabaseOperation):
465
466 2007-11-30  Kevin Ollivier  <kevino@theolliviers.com>
467
468         Build fix. Add platform/text to includes for targets that
469         need WebCore headers.
470
471         * presets/wxwebkit.bkl:
472
473 2007-11-29  Brady Eidson  <beidson@apple.com>
474
475         Keep it building with new client method
476
477         * WebKitSupport/ChromeClientWx.cpp:
478         (WebCore::ChromeClient::requestQuotaIncreaseForNewDatabase):
479         (WebCore::ChromeClient::requestQuotaIncreaseForDatabaseOperation):
480         * WebKitSupport/ChromeClientWx.h:
481
482 2007-11-25  Kevin Ollivier  <kevino@theolliviers.com>
483
484         wx build fix. Don't get xslt-config options at bake time, do it
485         at make time.
486
487         * dependencies.bkl:
488
489 2007-11-23  Kevin Ollivier  <kevino@theolliviers.com>
490
491         wx build fix. Include config.h in WebFrame/WebView to ensure
492         WebCore headers are properly configured, fix unicode/utf8.h and
493         config.h include ordering issues, centralize wx project options to 
494         ensure proper configuration, and fix wxwebkit-python target so that
495         it links against wx libs.
496
497         * WebFrame.cpp:
498         * WebView.cpp:
499         * bindings/python/wxwebkit-py.bkl:
500         * dependencies.bkl:
501         * presets/wxwebkit.bkl:
502         * wxwebkit.bkl:
503         * wxwk-settings.bkl:
504
505 2007-11-20  Kevin Ollivier  <kevino@theolliviers.com>
506
507         wx build fix for Windows. Don't use WebCore/move-js-headers.sh as
508         it indiscriminately copies any headers inside JavaScriptCore,
509         which includes Tiger ICU headers. 
510
511         * presets/wxwebkit.bkl:
512         Remove WebCore/include reference and add JSCore header dirs needed
513         instead.
514
515 2007-11-19  Kevin Ollivier  <kevino@theolliviers.com>
516
517         Add pcre directory to JSCore includes, and update the wx port
518         to reflect the Shared -> RefCounted name change. Also, fix
519         WebFrame.cpp to re-enable code that should never have been 
520         committed disabled. 
521
522         Reviewed by Adam.
523
524         * WebFrame.cpp:
525         (wxWebFrame::wxWebFrame):
526         * WebKitSupport/FrameLoaderClientWx.cpp:
527         (WebCore::FrameLoaderClientWx::ref):
528         (WebCore::FrameLoaderClientWx::deref):
529         * WebKitSupport/FrameLoaderClientWx.h:
530         * presets/wxwebkit.bkl:
531
532 2007-11-17  Timothy Hatcher  <timothy@apple.com>
533
534         Reviewed by Mark Rowe.
535
536         Bug 13470: i18n: The Web Inspector is not localizable
537         http://bugs.webkit.org/show_bug.cgi?id=13470
538
539         * WebKitSupport/InspectorClientWx.cpp:
540         (WebCore::InspectorClientWx::localizedStringsURL): Empty stub.
541         * WebKitSupport/InspectorClientWx.h: Added localizedStringsURL.
542
543 2007-11-08  Kevin Ollivier  <kevino@theolliviers.com>
544
545         Initial commit of wx implementation of WebKit. This includes
546         the wxWebFrame and wxWebView wx front end classes, the 
547         WebKitSupport directory containing implementations of interfaces
548         used by WebCore to talk with the wxWebKit front end, and the 
549         language bindings for wxWebKit (bindings dir), currently
550         only containing bindings and a sample app for wxPython.
551
552         Reviewed by Mark Rowe.
553
554         * Bakefiles.bkgen: Added.
555         * WebFrame.cpp: Added.
556         * WebFrame.h: Added.
557         * WebKitSupport: Added.
558         * WebKitSupport/ChromeClientWx.cpp: Added.
559         * WebKitSupport/ChromeClientWx.h: Added.
560         * WebKitSupport/ContextMenuClientWx.cpp: Added.
561         * WebKitSupport/ContextMenuClientWx.h: Added.
562         * WebKitSupport/DragClientWx.cpp: Added.
563         * WebKitSupport/DragClientWx.h: Added.
564         * WebKitSupport/EditorClientWx.cpp: Added.
565         * WebKitSupport/EditorClientWx.h: Added.
566         * WebKitSupport/FrameLoaderClientWx.cpp: Added.
567         * WebKitSupport/FrameLoaderClientWx.h: Added.
568         * WebKitSupport/InspectorClientWx.cpp: Added.
569         * WebKitSupport/InspectorClientWx.h: Added.
570         * WebView.cpp: Added.
571         * WebView.h: Added.
572         * WebViewPrivate.h: Added.
573         * bindings: Added.
574         * bindings/python: Added.
575         * bindings/python/samples: Added.
576         * bindings/python/samples/simple.py: Added.
577         * bindings/python/webview.i: Added.
578         * bindings/python/wxwebkit-py.bkl: Added.
579         * dependencies.bkl: Added.
580         * presets: Added.
581         * presets/wxwebkit.bkl: Added.
582         * wxwebkit.bkl: Added.
583         * wxwk-settings.bkl: Added.
584