Commit Graph

447 Commits

Author SHA1 Message Date
Roman Sirokov
2968789a1f Remove windows.web import 2019-06-10 14:56:48 +03:00
Roman
505f0c41e5 EdgeHTML WIP 2019-06-06 00:32:38 +03:00
Roman
52039a5008 [Windows] Preliminary implementation of EdgeHTML based on PR from @HeavenVolkoff 2019-05-28 11:18:31 +03:00
Roman
23621830a8 [Winforms] Fix js api initialization 2019-05-15 16:32:42 +03:00
Roman
14445159e4 Merge remote-tracking branch 'origin/get-element' into pywebview-3 2019-05-14 21:01:52 +03:00
Roman Sirokov
235db7e1ec [Windows/CEF] New API implementation 2019-05-14 20:54:22 +03:00
Roman Sirokov
e7900ec452 [GTK] Implement propert JS-Python bridge for WebKit2 >2.2 2019-05-14 00:27:19 +03:00
Roman Sirokov
4ab79fc421 Rename get_element to get_elements. Bug fixes. 2019-05-13 09:54:19 +03:00
Roman Sirokov
0c7d390ce0 Implement CSRF token
[All] Implement get_element
2019-05-10 07:31:58 +03:00
Roman Sirokov
c30965252f [Windows/CEF] New API implementation 2019-05-09 03:22:30 +03:00
Roman Sirokov
9024585c8c Remove multiprocessing 2019-05-08 17:15:09 +03:00
Roman Sirokov
5dcf5328e2 [QT] New API implementation 2019-05-07 04:52:42 +03:00
Roman Sirokov
91897c0196 [GTK] Implement new API
Fix tests
2019-05-07 04:48:46 +03:00
Roman Sirokov
6ff1058158 Rename confirm_quit to confirm_close
Split lifecycle events to shown and loaded
2019-05-06 06:09:17 +03:00
Roman Sirokov
65e0b0e977 [GTK] New API support 2019-05-03 18:23:06 +03:00
Roman Sirokov
0506a65574 Refactor project structure 2019-05-02 17:42:42 +03:00
Roman Sirokov
2ae63d84c1 Rename destroy_window to destroy 2019-04-29 09:44:51 +03:00
Roman Sirokov
99e3974c92 New API
Cocoa implementation
Revamped tests and examples
2019-04-28 17:07:08 +03:00
Roman Sirokov
056d517aaf [All] Change api_call timeout to 15 seconds 2019-04-28 17:07:08 +03:00
Roman Sirokov
ab80cda427 [CEF] Fix typo 2019-04-28 17:07:08 +03:00
Roman Sirokov
e288ccdf68 [CEF]: Implement support for pyinstaller one-file mode 2019-04-28 17:07:08 +03:00
Roman
4e59c6898d #169 Frameless window (#313)
* Merge PR #177: [Cocoa] Implement frameless windows

* [All] Add skeleton for `frameless` parameter
* [Cocoa] Add `frameless` kwarg to remove the window frame.
  - Implement a DragBar class to enable dragging the webview
  - Make the drag bar stick to the top and autoresize to the width
    of the view.

* [WinForms] Implement frameless window + easy drag

* Merge PR #177: [Cocoa] Implement frameless windows

* [All] Add skeleton for `frameless` parameter
* [Cocoa] Add `frameless` kwarg to remove the window frame.
  - Implement a DragBar class to enable dragging the webview
  - Make the drag bar stick to the top and autoresize to the width
    of the view.

* [WinForms] Implement frameless window + easy drag

* [GTK] partial implementation of frameless window

* [QT] Partial implementation of frameless window

* [QT] implement easy drag

* [Cocoa] Hide standard buttons and make the entire window draggable

* [GTK] implement easy move

* Add frameless tests

* Remove unused parameter

* [Cocoa] Implement free drag

* Revert WebBrowserInterops

* Code cleanup

* Update interop DLLs

* Fix interop dll

* Update docs; Fix tests

* Add example

* Update examples
2019-04-28 17:07:08 +03:00
Roman
ef94a53e90 [CEF] Fix JS logic not persisting after navigating to another page 2019-04-28 17:07:08 +03:00
Roman
9c785381e9 #15 CEF implementation (#310) 2019-02-12 22:34:22 +02:00
Roman
1043204123 #189: Remove QT4 (#305) 2019-02-04 15:58:18 +02:00
Roman Sirokov
7a4f5c6a79 [All] Add logging formatter 2018-12-23 14:32:38 +02:00
Roman Sirokov
8e6acbb2ec Merge branch 'master' of github.r0x0r:r0x0r/pywebview 2018-12-23 12:24:17 +02:00
Roman Sirokov
ed9b4bca27 [All] Refactor logging to keep its configuration locally 2018-12-23 12:22:59 +02:00
Shiva Prasad
40e424fbf9 [Cocoa] Enable dark mode support for macOS Mojave 2018-12-20 12:01:13 +05:30
Roman
0d7d49889e Merge branch 'wkwebview' of https://github.com/r0x0r/pywebview into wkwebview 2018-12-18 00:17:03 +02:00
Roman
a4e886490e Fix Windows tests 2018-12-18 00:14:20 +02:00
Shiva Prasad
971f6a8466 [All] Quote URLs only on macOS
Quoting seems to produce errors on Windows. Also, the quote function of
urllib encodes parts of query strings as well, which is undesirable. So
a custom function has been used.
2018-12-18 00:13:35 +02:00
Shiva Prasad
bd8a1d7abc [Cocoa] Fix non-existant DOM when url is empty
Follow-up to a52d90b.
2018-12-18 00:13:35 +02:00
Shiva Prasad
3965293631 [Cocoa] Ignore colons while quoting urls
Plus some code cleanup.
2018-12-18 00:13:35 +02:00
Shiva Prasad
50960b02ee [Cocoa] Move bridgesupport metadata to cocoa.py 2018-12-18 00:13:34 +02:00
Shiva Prasad
10a8248bd2 [Cocoa] Init NSURLs with quoted strings
Follow up to 91cd767.
2018-12-18 00:13:34 +02:00
Shiva Prasad
a2c79086d6 [Cocoa] Reimplement JS window.print() hook
We are forced to use the private API _printOperationWithPrintInfo_ of
WKWebView, for the time being. It offers no better alternatives.
2018-12-18 00:13:34 +02:00
Shiva Prasad
ee33d18125 [Cocoa] Disable delete key nav via preference flag
More direct and robust than the current method. Works for internal links
as well. And this seems to be the method used by Safari. But the flag is
available only from macOS 14+.
2018-12-18 00:13:34 +02:00
Shiva Prasad
77c179366e [Cocoa] Disable right/control click context menu 2018-12-18 00:13:34 +02:00
Shiva Prasad
3475532bb6 [Cocoa] Port WKNavigationDelegate methods 2018-12-18 00:13:34 +02:00
Shiva Prasad
7d4d089732 [Cocoa] Convert method signatures to byte strings
For compatibility with Python 3.x ctypes.create_string_buffer.
2018-12-18 00:13:34 +02:00
Shiva Prasad
f3f9cc0516 [Cocoa] Properly port WKUIDelegate methods
Manually assign the missing block signatures of the completionHandler
arguments (idea credits: https://github.com/munki/munki/commit/b9944e9).
2018-12-18 00:13:34 +02:00
Shiva Prasad
577fbd9563 [Cocoa] Manually load metadata when unavailable
The metadata for WKWebView evaluateJavaScript:completionHandler: is
absent in older versions (<3.1) of PyObjC. We need to manually load
the required metadata using PyObjC's manual metadata loading system.
2018-12-18 00:13:33 +02:00
Roman
064b859601 Fix alert/confirm delegates 2018-12-18 00:13:33 +02:00
Roman
23ffc1d345 Fix indendation 2018-12-18 00:13:33 +02:00
Roman
884be9169f [macOS] Eval JS fixes 2018-12-18 00:12:47 +02:00
Shiva Prasad
ead212ab9e [Cocoa] Port JS Bridge to WKWebView 2018-12-18 00:12:46 +02:00
Shiva Prasad
b787136817 [Cocoa] Port evaluate_js to WKWebView
Note: Seems not to work with older versions of PyObjC (2.5.1 throws
exception). Probably wontfix.
2018-12-18 00:12:46 +02:00
Shiva Prasad
0410e8be89 [Cocoa] Enable web inspector
TODO: Disable context menu
2018-12-18 00:12:46 +02:00
Shiva Prasad
0415f84c1c [Cocoa] Initiate transition to WKWebView
Added the most basic stuff, lot of things to fix.
2018-12-18 00:12:46 +02:00