Граф коммитов

141 Коммитов

Автор SHA1 Сообщение Дата
deepak1556 79040e348a Change the source origin parameter type for CanCreateWindow from GURL to url::Origin.
https://chromium-review.googlesource.com/c/chromium/src/+/1395066
2019-02-14 23:59:21 +05:30
Jeremy Apthorp 92b9525cfd
feat: enable mixed-sandbox mode by default () 2019-01-22 10:44:28 -08:00
Shelley Vohr de0e4735de fix: error if a11y support changed before ready () 2019-01-04 10:20:06 -05:00
Shelley Vohr 3f15f51615
feat: promisify app.getFileIcon() () 2018-12-05 08:50:12 -08:00
Ondřej Záruba de05ff894b feat: Add app.getLocaleCountryCode() method for region detection ()
* Add method to get system´s user region

* Fix linter

* Remove auto types

* Improved detection for POSIX

* Change name, add specs, minor fixes

* Remove left overs

* Fix locale test

* Fix Linux test

* Coding style fixes

* Fix docs

* Add test excaption for Linux

* fix spelling

* Polishing
2018-11-20 15:33:23 -05:00
Milan Burda 5bd6de52e0 feat: add app.enableSandbox() () 2018-10-10 15:32:09 +11:00
Jeremy Apthorp 1c60f9e468 use content::ChildProcessTerminationInfo 2018-10-04 00:12:54 +02:00
Nitish Sakhawalkar 5c108728d6 feat: Implementation of getGPUInfo API. ()
* Implementation of getGPUInfo API.

* Clear promise set

* Changes to promise usage

* Minor fixes

* Fix linux build

* Update spec

* Fix lint (linter didn't run on windows locally)

* Test running single test for CI

* Update spec
2018-09-28 00:59:23 +10:00
Charles Kerr d663b4eaee
fix: fix gn cpplint warnings ()
* chore: fix cpplint 'include_what_you_use' warnings

Typically by including <memory>, <utility> etc.

* chore: fix 'static/global string constant' warning

Use C style strings instead of std::string.

Style guide forbids non-trivial static / global variables. https://google.github.io/styleguide/cppguide.html#Static_and_Global_Variables

/home/charles/electron/electron-gn/src/electron/script/cpplint.js

* refactor: remove global string variables.

Fix 'global string variables are not permitted' linter warnings
by using the base::NoDestructor<> wrapper to make it explicit that
these variables are never destroyed.

The style guide's take on globals with nontrivial destructors:
https://google.github.io/styleguide/cppguide.html#Static_and_Global_Variables

* fix: initializer error introduced in last commit

* fix: remove WIP file that was included by accident

* fix: include order

* fix: include order

* fix: include order

* fix: include order, again
2018-09-12 19:25:56 -05:00
Robo c8f506a8aa fix: add method and referrer properties to app login event ()
* refactor: remove brightray/network_delegate.{cc|h}

* refactor: respond to http requests through network delegate
2018-08-23 18:55:13 +09:00
Samuel Attard 92588be2bd refactor: add promise helper and change whenReady to be native impl ()
* Add promise helper and change whenReady to be native impl

* remove commented code

* add GetInner helper to dedupe promise code

* add Promise.reject helper to be consistent with JS

* fix linting

* update promise impl per feedback

* remove param name from unused isolate

* Use non-depreceated resolvers for promises

* Add thread dchecks for promise helper, intiialize promise pointer to nullptr
2018-06-27 16:06:08 -05:00
Aleksei Kuzmin 37168c0a95 Move ResourceRequestBody to services/network in preparation of moving content/network.
https://chromium-review.googlesource.com/864422
2018-06-19 11:49:41 +10:00
Samuel Attard 5b5c161601
feat: new makeSingleInstance API ()
* Refactor app.makeSingleInstance
* new API `app.isPrimaryInstance()`
* new API `app.isSingleInstance()`
* new event `app.on('second-instance')`
* deprecated old syntax `app.makeSingleInstance(cb)`
* deprecated old syntax of `app.makeSingleInstance() --> bool` in favor
of `app.isPrimaryInstance()`
* Fix spec, we don't need process.nextTick hacks any more
* Make deprecation TODO for the return value of makeSingleInstance
* Refactor makeSingleInstance to requestSingleInstanceLock and add appropriate deprecation comments
* I swear this isn't tricking the linter
* Make const
* Add deprecation warnings for release, and add to planned-breaking-changes

BREAKING CHANGE
2018-05-08 01:29:18 +10:00
Jeremy Apthorp f1587da480 [chromium-style] out-of-line default constructors and destructors 2018-04-19 11:12:58 -07:00
Shelley Vohr 53bdf22c85
clang-format atom files 2018-04-18 20:48:45 -04:00
Samuel Attard fb55db665c AllowCertificateError no longer sends overridable 2018-03-20 10:08:57 +03:00
acheronfail d1d50a4c92 Implement App-Scoped Security scoped bookmarks ()
* implementation of security scoped bookmarks

* option is now only available on mas builds
2018-02-12 13:25:06 -05:00
deepak1556 19de41b764 BrowserClient::CanCreateWindow is no longer called on the IO thread
https://codereview.chromium.org/2821473002
2017-12-07 09:47:32 +05:30
Aleksei Kuzmin 5831a5ffa1 Refactor client cert private key handling.
https://codereview.chromium.org/2898573002
2017-11-24 10:58:16 +09:00
Aleksei Kuzmin ee9a547985 Service CreateNewWindow on the UI thread with a new mojo interface
https://codereview.chromium.org/2821473002
2017-11-24 10:58:16 +09:00
Aleksei Kuzmin ba6e8b4dff Merge ResourceRequestBodyImpl and ResourceRequestBody.
https://codereview.chromium.org/2954343005
2017-11-24 10:58:15 +09:00
Aleksei Kuzmin b77b67bfbe Remove client_certs from SSLCertRequestInfo.
https://codereview.chromium.org/2838243002
2017-11-24 10:58:15 +09:00
Samuel Attard 0ab83b301d Refactor as per @zcbenz comments
Also fix issue where we run the single instance callback *not* on the UI thread,
this apparently results in a hung process.
2017-09-20 11:58:32 +09:00
Samuel Attard ecbeb0d117 Woops, how did that happen ;) 2017-09-20 11:58:32 +09:00
Samuel Attard f928a399ae Move OnBrowserReady call to PreMainMessageLoopRun to account for timing issues on macOS 2017-09-20 11:58:32 +09:00
Rafael Nobre 9483f0fc14 Adds synchronization logic to allow NSUserActivityDelegate to wait Javascript updating the NSUserActiity UserInfo if requested. 2017-09-14 15:59:43 +09:00
Rafael Nobre a870799c32 Exposes more Handoff related APIs to Electron. 2017-09-14 15:59:43 +09:00
Cheng Zhao e6733b4b23 Merge pull request from ivmirx/macos-accessibility
Special attribute for macOS accessibility
2017-09-11 17:58:20 +09:00
Samuel Attard 6b010614e2 Implement moveToApplicationsFolder ()
* Implement moveToApplicationsFolder

* Fix tabs / spaces

* Fix linting

* Use Browser::Quit, instead of exit

* Update documentation as per feedback

* Fix spec
2017-08-31 10:37:12 -04:00
Ivan Mir 75b2915fee Change the parameter name for consistency 2017-08-27 11:53:25 -03:00
Ivan Mir 6717f0d2bb Add accessibility setter to the app 2017-08-24 11:22:28 -03:00
Birunthan Mohanathas 812b529881 Add app.disableDomainBlockingFor3DAPIs()
By default, Chromium disables 3D APIs (e.g. WebGL) until restart on a
per domain basis if the GPU processes crashes too frequently. This
function disables that behaviour.
2017-07-14 01:41:43 +03:00
Kevin Sawicki 2cd49f3036 Merge pull request from electron/webview-sandbox
Enable sandbox on webview
2017-06-28 10:10:25 -07:00
Hari Krishna Reddy Juturu 74196b96a1 Adding enableMixedSandbox api 2017-06-26 14:13:41 -07:00
Daniel Ma 4fb9f825b1 Add "New Tab" button for Native macOS Tabs
Adds responders for `newWindowForTab` to `AtomApplicationDelegate` and
`NativeWindowMac`, so that `BrowserWindow`s with a `tabbingIdentifier`
will get the new tab button, and both `app` and `window` will emit a
`new-tab-for-window` event.
2017-06-11 02:26:26 -07:00
Kevin Sawicki bf2fca3dd1 Use base::DictionaryValue converter 2017-05-30 13:00:55 -07:00
Milan Burda 0ecfb4e2f8 Add app.getGPUFeatureStatus 2017-05-30 20:35:14 +02:00
Kevin Sawicki 1e4dd9b163 Store process type as int 2017-05-26 08:53:26 -07:00
Kevin Sawicki d6e626c7e3 Remove crashed render processes from metrics 2017-05-26 08:32:08 -07:00
Kevin Sawicki b5879b7399 🎨 Minor formatting/doc changes 2017-05-26 07:51:17 -07:00
Hari Krishna Reddy Juturu c4e5ba6015 Fixing indentations 2017-05-24 21:15:34 -07:00
Hari Krishna Reddy Juturu e5a9ef296d Using process handle from RenderProcessHost 2017-05-24 21:07:35 -07:00
Hari Juturu 939747945e Adding CPU & Memory metrics for App 2017-05-24 21:07:35 -07:00
Hari Krishna Reddy Juturu 07b53c0284 Return mate::Dictionary instead of v8::value 2017-04-27 21:07:35 -07:00
Hari Krishna Reddy Juturu 27aad902b8 Adding docs, specs and fixing object returned 2017-04-27 14:06:53 -07:00
Hari Krishna Reddy Juturu bef7d5a520 API to get memory of all processes of the app 2017-04-27 14:06:53 -07:00
Ryohei Ikegami ea6890aa5c Use const 2017-04-13 23:26:42 +09:00
Ryohei Ikegami 9d62b196d3 Use base::FilePath 2017-04-13 10:59:12 +09:00
Ryohei Ikegami 4a7eec8f2d Pass app path as command line argument 2017-04-04 09:36:01 +09:00
deepak1556 5687f8b3b7 Destroy icon manager after file thread is destroyed 2017-02-17 14:16:18 +05:30