Commit Graph

53046 Commits

Author SHA1 Message Date
Steve Lamerton
d07fd8b021 Add tests for url and history support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-08 13:11:17 +00:00
Steve Lamerton
6a2ef29f66 Add tests for the page title
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-08 10:51:15 +00:00
Steve Lamerton
2dad08eca5 Add scaffolding for wxWebView unit tests.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-08 08:19:25 +00:00
Steve Lamerton
028894b426 Implement cut / copy / paste in osx webkit and fix the function stubs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-06 10:20:03 +00:00
Steve Lamerton
e2392c4533 Add some more missing stubs to the osx webkit backend.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-06 09:45:29 +00:00
Steve Lamerton
0e37936eb4 Add stubs to osx webkit backend to allow compilation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-05 17:06:12 +00:00
Steve Lamerton
9df97be2c1 Simplify backend enum naming, we do not need separate values for gtk and osx webkit backends. Simplify factory creation code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-05 15:33:42 +00:00
Steve Lamerton
05552dd726 Remove comment about a new frame api as this is now offered.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-05 14:19:38 +00:00
Steve Lamerton
0a6c851624 Bring osx class naming into line with the other ports.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-05 13:57:44 +00:00
Steve Lamerton
25b7299d16 Remove out of date osx defines.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-05 13:40:00 +00:00
Steve Lamerton
66243a8e4b Add osx configure support for wxWebView.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-05 11:06:33 +00:00
Steve Lamerton
617227c309 Factor logic that returns an IHTMLDocument2 into a separate function to reduce repetition.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-04 18:46:01 +00:00
Steve Lamerton
113e0a926f Filter out subframes from the ie backend history and the sample. Also document that many wxEVT_COMMAND_WEB_VIEW_LOADED events may be sent, one for each frame.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-04 18:27:14 +00:00
Steve Lamerton
c36818c8e3 Add a note to the documentation about the emulation modes of the ie backend.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-04 11:34:33 +00:00
Steve Lamerton
bf39189b1e Add web documentation category.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-02 17:11:46 +00:00
Steve Lamerton
977c53206a Get the page title from the IHtmlDocument rather than the bowser as it actually returns the title rather than the url.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-02 16:41:51 +00:00
Steve Lamerton
968a7de2c5 Overhaul the wxWebView documentation. Split the documentation into sections and add documentation for clipboard and history functions. Add documentation for wxWebHistoryItem. Fix many spelling mistakes. Alphabetise the function names. Add missing svn properties.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-02 16:24:56 +00:00
Steve Lamerton
97e49559fb Implement undo and redo for the ie and gtk webkit backends. Extend the sample to show their use.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-02 15:07:46 +00:00
Steve Lamerton
ae26e17b93 Implement clipboard api in gtk.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-02 14:32:02 +00:00
Steve Lamerton
4681a3ea0d Add new clipboard api and support for it in the ie backend. Also extend the sample to demonstrate the new functions.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-02 11:45:19 +00:00
Steve Lamerton
19fc1a2f0d Implement extended history api in gtk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-01 19:46:31 +00:00
Steve Lamerton
5cbda74b66 Extend history api using the ie backend to include loading history items, and getting the backward and forward history lists.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-01 10:57:37 +00:00
Steve Lamerton
3e7968c2da Use shared pointers throughout when managing history with the ie backend, simplifying memory management. Also add more comments explaining how the history is managed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-01 10:01:45 +00:00
Steve Lamerton
60ec28290b Add an extra assert in the case of trying to load an invalid history item
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-01 07:54:49 +00:00
Steve Lamerton
74af0b1343 Add support for the new history functions to the ie backend. For this we manage our own history as there are no suitable built-in ways of managing it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-30 19:57:26 +00:00
Steve Lamerton
3ee442ff1a Only send a document complete event when the page is completely loaded, as opposed to with every frame. This brings the event in to line with what is emitted by webkit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-30 15:07:52 +00:00
Steve Lamerton
152a58083f Add basic history api and implement it under gtk.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-30 10:03:25 +00:00
Steve Lamerton
9a00d07834 Give the sample a more sensible initial size for web browsing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 16:09:52 +00:00
Steve Lamerton
61635eed82 Adjust animation size to fit the toolbar properly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 16:04:42 +00:00
Steve Lamerton
62e8551fa0 Update the sample to show how to block navigation and new window events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 12:03:36 +00:00
Steve Lamerton
dffce0bd58 Update the web sample to use images from the art provider if possible. Scale existing images down to 24x24 so that this fit better with the art provider images.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 09:27:11 +00:00
Steve Lamerton
9ef101cd55 Add support for loading a url in the constructor to the ie backend and update the sample to use it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 08:27:33 +00:00
Steve Lamerton
0016bf1df1 Add support for new window events in gtk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-29 08:09:47 +00:00
Steve Lamerton
b5374b5cfa Don't use a depreciated method for loading a url.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-28 17:06:28 +00:00
Steve Lamerton
b64b4e70f1 Bring gtk class naming into line with the new naming scheme by dropping the gtk part.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-28 16:57:49 +00:00
Steve Lamerton
66f2aa61c3 Update msw files to use the new definitions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-28 16:11:00 +00:00
Steve Lamerton
ea1795398a Fix the build system in gtk, plus a couple of compilation errors. wxWebView now successfully builds under gtk and the sample runs correctly.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-28 15:15:51 +00:00
Steve Lamerton
726cc8697c Fix a number of mingw compile errors.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-23 20:44:19 +00:00
Steve Lamerton
324c132b1e Add wxWebView backend wxUSE_ macros
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-06-14 21:15:20 +00:00
Steve Lamerton
ec4ac0f758 Overhaul the wxWebView sample. Bring the style into line with the other samples and improve naming and consistency. Also use a wxInfoBar rather than a custom notification system.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-27 19:47:57 +00:00
Steve Lamerton
4e257ee735 Load the wxWidgets homepage by default in the wxWebView sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-26 19:53:03 +00:00
Steve Lamerton
46325534ef Do not show the wxWebView sample tools menu unless a page has been loaded. Originally it crashed but it doesn't make sense to change the zoom or view the source if there is no page loaded.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-26 19:36:20 +00:00
Steve Lamerton
0773a33ca0 Remove various bit of redundant code from the wxWebView sample source view dialog.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-26 19:17:01 +00:00
Steve Lamerton
853b6cd0e4 Add a new event type for new window creation, document and implement under MSW. Update the sample to veto new window events, this means under Window we no long get Internet Explorer windows appearing for some links.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-26 18:43:18 +00:00
Steve Lamerton
a427ca2713 Don't pass raw urls to logging functions in the wxWebView sample as they can contain percent characters which then cause format string errors.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-19 20:43:45 +00:00
Steve Lamerton
be19c55608 Block new frames being created in wxWebViewIE, bringing it into line with the other ports. The existing code was mostly correct but a missing break in the switch caused many spurious events.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-19 20:14:27 +00:00
Steve Lamerton
70554c327e Remove defined values from wxWebView enums. We probably don't want people relying on these as they may well end up changing and there is no benefit to fixing them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-19 19:42:01 +00:00
Steve Lamerton
dec53e5a56 Move wxWebView documentation into a separate interface file and add the wxWeb library to the libraries page
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-19 18:28:01 +00:00
Steve Lamerton
7aa18fc786 Update wxWebViewIE::Reload so that reloading without using the cache works and doesn't crash.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-18 16:35:35 +00:00
Steve Lamerton
8290e3cd91 Rename source files for consistency
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-16 20:49:54 +00:00