Shelley Vohr
1727a9eca9
pull up definition and remove include
2018-04-14 21:23:05 -04:00
Shelley Vohr
8b4a89c445
.deepCopyTo() => sk_tool_utils::copy_to()
2018-04-14 12:50:55 -04:00
Cheng Zhao
858828d343
Refactor NativeWindow (Part 6): Move NativeWindow bindings to api::TopLevelWindow ( #12596 )
...
* Add atom::api::TopLevelWindow
* Make BrowserWindow inherit TopLevelWindow
* Fix reading from wrong weak map
* Read options after setting content view
* OnWindowClosed is not guarenteed to run now
* Fix the offscreen hack in BrowserWindow
* Fix building on Linux
* Fix tests on Linux
* Fix building on Windows
2018-04-14 11:04:23 +09:00
Zhuo Lu
a0cac05555
Clear cache storage data ( #12546 )
2018-04-13 13:03:16 -04:00
Robo
ad2baccefa
tools: pass custom template for js2c ( #12593 )
...
* Update node v9.7.0 ref
* tools: pass custom template to node/tools/js2c.py
2018-04-13 08:20:04 -04:00
Shelley Vohr
d722008367
remove unnecessary ptr_util.h include
2018-04-12 22:34:26 -04:00
Shelley Vohr
b05932310b
replace base::MakeUnique with std::make_unique
2018-04-12 08:48:32 -04:00
Cheng Zhao
d706a30849
Fix crash when releasing window
2018-04-11 15:12:53 +09:00
Cheng Zhao
2b5bde4071
InstallView is no longer needed
2018-04-11 15:12:53 +09:00
Cheng Zhao
5a95aaaa54
kVibrancyType should be read in InitFromOptions
2018-04-11 15:12:53 +09:00
Cheng Zhao
cfd8ea8eb0
mac: Correctly unload previous content view
2018-04-11 15:12:53 +09:00
Cheng Zhao
56735d4ff5
Add NativeWindow::SetContentView
2018-04-11 15:12:53 +09:00
Cheng Zhao
13473ee138
web_view_ => content_view_
2018-04-11 15:12:53 +09:00
Cheng Zhao
97e8800677
Remove web_contents from NativeWindow's constructor
2018-04-11 15:12:53 +09:00
Nitish Sakhawalkar
6fc819dae1
Fix transparency in capturePage ( #12561 )
...
* Fix transparent window capture. Transparency is preserved and not converted to black pixels anymore
* Add test to make sure aplha channel exists in captured image
2018-04-10 19:07:15 +09:00
Andreas
6b5e09478c
Mouse forward on macOS ( #12281 )
...
* Accept mouse events according to the forward parameter on macOS.
* Update BrowserWindow docs: mouse forward is available on macOS
2018-04-09 19:35:05 +09:00
Cheng Zhao
41134f52d9
Fix memory leaks in file_dialog_mac.mm
2018-04-09 16:51:25 +09:00
Yuya Ochiai
2131dc839a
Show file filter name for accessory view of file dialog
...
- Respect filters option of dialog.showOpenDialog() and
dialog.showSaveDialog(). (#10335 )
- Show "All Files" for <input> apart from "accept" attribute. (#11456 )
2018-04-09 16:50:21 +09:00
OJ Kwon
4c51c03779
feat(performspellcheck): queue spell check request asynchronously ( #12112 )
...
* feat(spellcheckrequest): implement spellcheckrequest
* feat(performspellcheck): queue spell check request asynchronously
2018-04-09 15:18:50 +09:00
Andrew MacDonald
6bfb122cd1
Add a display_id parameter to the desktopCapturer API. ( #12417 )
...
* Add a screen_api_id parameter to the desktopCapturer API.
When using the DirectX capturer on Windows, there was previously no way
to associate desktopCapturer/getUserMedia and electron.screen API
screens. This new parameter provides the association.
* Fix non-Windows build.
* Fix Mac.
* Fix Mac harder.
* JS lint
* clang-format C++ code.
* IWYU
* display_id, Linux comment, better test
* lint
* Fix tests on Linux.
* Add display_id documentation.
2018-04-09 14:43:35 +09:00
Robo
65e8199a93
Enable plznavigate aka browser side navigation ( #12535 )
...
* enable plznavigate code path
* AtomBrowserClient::GetGeolocationApiKey returns the right default
* use IsLoadingToDifferentDocument to identify top level navigation in mainFrame
* use candidate site instance when available
* spec: don't test httpReferrer option for file origin
* update libcc ref
* affinity: only group same site in this mode
* plznavigate: don't emit did-get-response-details event for blob scheme
2018-04-06 16:22:52 +09:00
Charles Kerr
f8b8dc1494
Simplify views/menu_bar focus management ( #12536 )
...
* Simplify views/menu_bar focus management
* Make the linter happy
* Remove NativeWindowView focus manager listener API
* remove unnecessary change
* MenuBar ctor now takes a views::View
2018-04-05 21:53:08 -05:00
Charles Kerr
cad8eed6e4
Use ui:view's Activate() on Linux ( #12539 )
...
In NativeWindowViews, we started rolling our own _NET_ACTIVE_WINDOW
event in June 2016 to raise windows because Chromium's implementation
wasn't working as expected. (See commit 32b692b6
)
I'm not seeing this behavior in our current version of libcc,
so I wonder if this workaround is still needed?
2018-04-05 22:39:53 -04:00
Jeremy Apthorp
f0d08f4da1
Propagate referrer to new windows ( #12397 )
...
* Propagate referrer to new windows
Fixes #9205
* Rearrange -new-window event arguments for backwards-compatibility
* Plumb referrer policy through guest-window-manager
* Document the Referrer structure and its uses
* Add tests for referrer in new windows
* Docs nits
2018-04-05 18:13:24 -05:00
Heilig Benedek
a14ebc80d2
Disable chromium's redraw locking on Windows when DWM is disabled ( #12501 )
...
* disable redraw locking on windows
* update libcc ref
2018-04-05 15:55:26 +09:00
Adrien Fery
5486a65702
Improve in-app purchase for MacOS ( #12464 )
...
* Add methods to finish transactions
* Add a method to get the product descriptions from the App Store
* Improve the documentation of a transaction structure
* Add a tutorial for In App Purchase
* Fix typo in In-App Purchase tutorial
* Fix style of In-App Purchase files
* Fix In-App-Purchase product structure conversion in amr64
* Fix code style in In-App Purchase tutorial documentation
* Fix typos in In-App Purchase documentation
* Fix typo in In-App Purchase spec
* Slight style fixes
2018-04-05 15:33:13 +09:00
Heilig Benedek
52b1065b3b
Focus webview directly in offscreen mode ( #12507 )
2018-04-05 15:14:42 +09:00
Robo
c1404ff2c1
vendor: Update native mate to fix v8 DCHECK crash ( #12534 )
...
* update native_mate ref
* Remove MarkHighMemoryUsage api
2018-04-05 00:47:18 -05:00
Cheng Zhao
c75dd93b92
Move AutofillPopup from NativeWindow to WebContents ( #12514 )
2018-04-05 09:53:51 +09:00
Aleš Pergl
3a45d541f3
Expose IsOffScreen method always to JS. ( #12530 )
2018-04-04 12:19:08 -05:00
MadfishDT
200388ff96
add moveTop API to move window z-oder to top for win32, mac ( #12485 )
...
* add moveTop API to move window z-oder to top for win32, mac
* BrowserWindow::MoveTop SetMethod bug fix
2018-04-03 08:04:32 -05:00
Cheng Zhao
8fc5c6c862
Refactor NativeWindow (Part 3): Remove is_offscreen_dummy from NativeWindow ( #12503 )
...
* Don't use is_offscreen_dummy in MessageBox
* Don't use is_offscreen_dummy in DownloadManagerDelegate
* Don't use is_offscreen_dummy in CommonWebContentsDelegate
* Remove is_offscreen_dummy from NativeWindow
2018-04-03 12:19:35 +09:00
Jeremy Apthorp
a7352e57d5
WebFrame.setVisualZoomLevelLimits sets user-agent scale constraints ( #12488 )
...
Fixes #11216 .
2018-04-02 18:20:13 -04:00
Nitish Sakhawalkar
fbff355742
Support for navigator.languages ( #12419 )
2018-04-02 12:47:00 +09:00
Robo
171230e45d
Cleanup destruction of URLRequestContextGetter ( #12305 )
...
- Add Leak detector
- Indicate shutdown of request context from Browser Context
- Change stored references to URLRequestContextGetter to use BrowserContext
- Destroy session properties explicitly
2018-03-30 08:24:55 -05:00
Zhuo Lu
c50a460ce6
Do not block main process for async dialog ( #12404 )
2018-03-22 08:57:33 -04:00
Clément Beffa
642f5a84d4
Workspace notifications support on macOS ( #12093 )
2018-03-22 18:41:03 +09:00
Nitish Sakhawalkar
9d1527b1df
Fix context menu for sandbox devtools ( #11933 )
2018-03-22 16:15:57 +09:00
Cheng Zhao
05fcec829e
Use Clone explicitly instead of MergeDictionary
2018-03-22 15:29:20 +09:00
Cheng Zhao
0abbedcdae
Fix error caused by refactor
2018-03-22 15:21:56 +09:00
Cheng Zhao
6df2326a30
Cleanup the static methods of WebContentsPreferences
...
The static methods are totally unnecessary, and it makes code harder to
understand since we are using different ways to do the same things.
2018-03-22 15:21:56 +09:00
Cheng Zhao
001275339b
Hide WebContentPreferences::GetWebContentsFromProcessID from public
2018-03-22 15:20:03 +09:00
Cheng Zhao
3d47a8a2fd
Remove the static getter methods from WebContentsPreferences
2018-03-22 15:20:03 +09:00
Cheng Zhao
887bc12350
Add WebContentsPreferences::From that checks parameter
2018-03-22 15:16:26 +09:00
Cheng Zhao
9772777919
web_prefrences() => dict()
...
Having property name being the same with class name is making code
harder to understand, and dict is much shorter.
2018-03-22 15:15:30 +09:00
Shelley Vohr
05dc04dacc
don't check darkmode for drawStatusBarBackgroundInRect ( #12395 )
2018-03-21 19:03:57 -04:00
Charles Kerr
0d7becff87
Use the appname as the tray icon's default tooltip ( #12388 )
...
This makes an upstream DCHECK happy in AppIndicatorIcon::SetToolTip.
Empty tooltip strings are discouraged, as discussed in commit log
b6c510aa543193337041517c2d70113840189b06.
Fixes #12386 .
2018-03-21 12:15:30 -05:00
John Kleinschmidt
060b592fc8
Merge pull request #12348 from electron/fix-browser-view-draggable-region
...
Update draggable regions when changing BrowserView
2018-03-20 10:40:27 -04:00
Cheng Zhao
2e94a730cc
Isolate the code using content::WebContentsImpl
2018-03-20 10:13:17 +03:00
Gellert Hegyi
a9cdd6614a
fixes class name
2018-03-20 10:13:17 +03:00
Gellert Hegyi
0ad8815bbc
fixes offscreen rendering issues
2018-03-20 10:13:17 +03:00
Cheng Zhao
d4969783d7
Avoid including web_contents_impl.h
...
This can fix the build error caused by duplicate typedefs.
2018-03-20 10:13:17 +03:00
deepak1556
e24c0dda5d
add features module to detect availability of build time features at runtime
2018-03-20 10:13:17 +03:00
deepak1556
4b39d17e5f
move pdf viewer behind feature flag
2018-03-20 10:13:17 +03:00
deepak1556
c1908147a9
Fix windows build
2018-03-20 10:13:17 +03:00
Cheng Zhao
94fce43ed9
Emit document-start for the correct env
...
This fixes the crash in RunScriptsAtDocumentStart when "affinity" option
is specified. Previously we were assuming only one main frame exists in
the renderer process, but the "affinity" option breaks this option.
There is also a bug that "node::Environment::GetCurrent" does not return
nullptr for context without a env in it, I'm not sure whether it is a
bug of Node or V8.
2018-03-20 10:13:17 +03:00
deepak1556
c3f8f6bc42
re-use request context from IOThread
2018-03-20 10:13:17 +03:00
Cheng Zhao
97fcf7079b
Update chrome_version.h
2018-03-20 10:13:17 +03:00
deepak1556
9702898dcd
AccessTokenStore is only needed to initialize network location service
2018-03-20 10:13:17 +03:00
deepak1556
97eb7f2c98
REVIEW: ContentBrowserClient now provides geolocation api key and request context
2018-03-20 10:13:16 +03:00
Aleksei Kuzmin
d3afb595dc
Tab Capture in VIZ: CopyOutputRequest/Result API changes.
...
https://chromium-review.googlesource.com/637003
2018-03-20 10:13:16 +03:00
Aleksei Kuzmin
639be7f7bc
Simplify transparent backgrounds
...
https://chromium-review.googlesource.com/669646
2018-03-20 10:13:16 +03:00
Cheng Zhao
624e09533c
Avoid using deprecated skia size methods
2018-03-20 10:13:16 +03:00
deepak1556
f4ee48eaf4
v8-platform header is not required explicitly
2018-03-20 10:13:16 +03:00
Cheng Zhao
d141d2445d
Fix build error caused by base::Passed changes
2018-03-20 10:13:16 +03:00
deepak1556
b08d086b0f
fix stale rebase
2018-03-20 10:13:16 +03:00
Shelley Vohr
7e7634d344
Chromium 63 - upgrade to Node v9.7.0 ( #12219 )
...
* OPENSSL_PRODUCT => openssl_product
* node => node_lib and V8_BASE => v8_base
* build node target for <(node_lib_target_name)
* update node ref
* update node::Environment::TickInfo calls
* update node ref
* Use InternalCallbackScope for ticking event loop
* enter context scope before InternalCallbackScope
* don't lint v8 platform header
2018-03-20 10:13:16 +03:00
Cheng Zhao
76ef6e3ecc
CertificateList => ScopedCERTCertificateList
2018-03-20 10:13:16 +03:00
Nitish Sakhawalkar
ecd0f9d0e7
Fix build by adding define in node_includes.h
2018-03-20 10:13:15 +03:00
Aleksei Kuzmin
f68cba0c71
Update Chrome version
2018-03-20 10:13:15 +03:00
deepak1556
719980a948
REVIEW: remove device emulation ipc dependecny on rvh
2018-03-20 10:13:15 +03:00
deepak1556
5684f8886f
REVIEW: move ipc use from rvh to rfh
2018-03-20 10:13:15 +03:00
deepak1556
b552ad7065
add taskpriority when creating sequences task runners
2018-03-20 10:13:15 +03:00
deepak1556
1f2d229862
re-use title information from NavigationEntry
2018-03-20 10:13:15 +03:00
deepak1556
6de49f515e
FIXME: Disbale browser side navigation aka PlzNavigate
2018-03-20 10:13:15 +03:00
deepak1556
007ea500d0
REVIEW: Re-use devtools network throttling from content layer
...
https://chromium-review.googlesource.com/c/chromium/src/+/664356
2018-03-20 10:13:15 +03:00
Samuel Attard
8269a6dc37
Temporarily disable OnCursorChange
...
ScopedProfile is removed
https://chromium-review.googlesource.com/c/chromium/src/+/655147
2018-03-20 10:13:15 +03:00
Samuel Attard
b0fe23072d
Update chrome version
2018-03-20 10:13:15 +03:00
Aleksei Kuzmin
aab6f27503
Move DrawQuads to components/viz/
...
https://chromium-review.googlesource.com/667539
2018-03-20 10:13:15 +03:00
Aleksei Kuzmin
74cedd3255
Move ReleaseCallbacks and CopyOutputRequests out of quads/
...
https://chromium-review.googlesource.com/682760
2018-03-20 10:13:15 +03:00
Aleksei Kuzmin
d1061692d5
Move CompositorFrame{Metadata} to viz/common/quads.
...
https://chromium-review.googlesource.com/676726
2018-03-20 10:13:14 +03:00
Aleksei Kuzmin
481c70311a
Move SoftwareOutputDevice to the viz service display compositor.
...
https://chromium-review.googlesource.com/677463
2018-03-20 10:13:14 +03:00
Samuel Attard
7c8be94a6e
IPC fixes for WebContents
2018-03-20 10:13:14 +03:00
Samuel Attard
f80b328937
WebExceptionCode has been removed
2018-03-20 10:13:14 +03:00
Samuel Attard
7356be0164
Convert optional webpoint
2018-03-20 10:13:14 +03:00
Samuel Attard
a8e013dcb6
GetRenderProcessHost() has been removed for OOPI support, should use #include GetMainFrame()->GetProcess()
2018-03-20 10:13:14 +03:00
Samuel Attard
6402b23041
tracked_objects::Location --> base::Location
2018-03-20 10:08:58 +03:00
Samuel Attard
1158d35021
experimental_webgl_enabled is not supported, now use webgl1/2_enabled
2018-03-20 10:08:58 +03:00
Samuel Attard
021e383418
GetBlockingPool has been removed
2018-03-20 10:08:58 +03:00
Samuel Attard
0291dc8214
Calling non-const callbacks requires some tricks
2018-03-20 10:08:58 +03:00
Samuel Attard
ce755483ba
DialogClosedCallback are not const references anymore
2018-03-20 10:08:58 +03:00
Samuel Attard
41b9825f00
WebContents are no longer IPC Sender's
2018-03-20 10:08:58 +03:00
Samuel Attard
12066a60f3
make_scoped_refptr --> WrapRefCounted
2018-03-20 10:08:58 +03:00
Samuel Attard
4666879f94
WebContentsObserver no longer provides explicit_set, we can calculate it
2018-03-20 10:08:57 +03:00
Samuel Attard
fb55db665c
AllowCertificateError no longer sends overridable
2018-03-20 10:08:57 +03:00
Samuel Attard
7f50c3d08e
TracingController -> Coordinator -- content tracing now uses 'endpoints' instead of 'sinks'
2018-03-20 10:08:57 +03:00
Samuel Attard
ed992ae6a1
trackable_object has moved to base namespace
2018-03-20 10:08:57 +03:00
Aleksei Kuzmin
b608152c41
Update Chrome version to 63.0.3239.84
2018-03-20 10:08:57 +03:00
Samuel Attard
0ac883c6d4
Remove the race condition between new process creation and context release ( #12342 )
...
* Remove the race condition between new process creation and old process releasing remote context
Previously there was a race condition where the getId() method would return the new context ID even
though the release was for the old context. This changes it to send the "initial" context ID with
the release message to ensure there is no race.
* fetch context ID from remote in sandbox mode
2018-03-20 15:54:47 +11:00
Birunthan Mohanathas
20a0508a16
Update draggable regions when changing BrowserView
...
Fixes #12150 .
2018-03-19 20:45:42 +02:00