Michael Khalil
ef1e2d6fe0
fix: tray title not inverting when highlighted ( #13085 )
2018-06-16 16:24:26 +10:00
Milan Burda
c4942d931c
Add FILE_DIALOG_TREAT_PACKAGE_APP_AS_DIRECTORY to web open file dialog ( #13220 )
2018-06-15 15:51:38 -05:00
Alexey Kuzmin
dee9aef975
Add "enable_desktop_capturer" build flag ( #13133 )
...
* Make it possible to disable a module for a renderer
* Put DesktopCapturer API under a build flag
The name is "enable_desktop_capturer".
Enabled by default.
2018-06-13 11:15:34 -05:00
Thiago de Arruda
6ff111a141
perf: don't use JSON to send the result of `ipcRenderer.sendSync`. ( #8953 )
...
* Don't use JSON to send the result of `ipcRenderer.sendSync`.
- Change the return type of AtomViewHostMsg_Message_Sync from `base::string16`
to `base::ListValue`
- Adjust lib/browser/api/web-contents.js and /lib/renderer/api/ipc-renderer.js
to wrap/unwrap return values to/from array, instead of
serializing/deserializing JSON.
This change can greatly improve `ipcRenderer.sendSync` calls where the return
value contains Buffer instances, because those are converted to Array before
being serialized to JSON(which has no efficient way of representing byte
arrays).
A simple benchmark where remote.require('fs') was used to read a 16mb file got
at least 5x faster, not to mention it used a lot less memory. This difference
tends increases with larger buffers.
* Don't base64 encode Buffers
* Don't allocate V8ValueConverter on the heap
* Replace hidden global.sandbox with NodeBindings::IsInitialized()
* Refactoring: check NodeBindings::IsInitialized() in V8ValueConverter
* Refactor problematic test to make it more reliable
* Add tests for NaN and Infinity
2018-06-13 17:38:31 +10:00
Milan Burda
6ad0a22602
Add process.getHeapStatistics() ( #13183 )
2018-06-10 22:00:36 +10:00
mdpetuum
1b8790aeb2
fix: tray icon bounds didn't allow negative macOS ( #13162 )
2018-06-07 18:48:39 +02:00
Charles Kerr
b89fe86fa1
Merge pull request #13050 from electron/3.0.0-deprecations
...
chore: removal of 3.0.0 deprecations
2018-05-30 09:25:36 +02:00
Charles Kerr
6935addd38
fix: remove unused variable
2018-05-29 16:14:21 +02:00
Milan Burda
45e78728bd
chore: move more constants to options_switches.h/cc ( #13093 )
...
* Add options::kNativeWindowOpen
* Add options::kSandbox
* Add options::kPlugins
* Add options::kWebSecurity
* Add options::kAllowRunningInsecureContent
* Add options::kOffscreen
2018-05-29 03:09:51 -05:00
Shelley Vohr
104fa96d4d
fix options switch for kBlinkFeatures
2018-05-25 11:13:15 -07:00
Shelley Vohr
8bb7525fe0
fix missing instance of kBlinkFeatures => kEnableBlinkFeatures
2018-05-25 11:12:40 -07:00
Cheng Zhao
0f7c25fc63
Put View APIs under a build flag
2018-05-24 15:44:07 +09:00
Cheng Zhao
2c8dc9e0bd
Add View.addChildView API
2018-05-24 15:36:29 +09:00
Cheng Zhao
322bde526c
Add LayoutManager/BoxLayout APIs
2018-05-24 15:36:29 +09:00
Shelley Vohr
5f5322c64e
rename blinkFeatures to enableBlinkFeatures
2018-05-23 14:01:34 -07:00
Shelley Vohr
bc10be3de6
rename exposed session method to setCertificateVerifyProc
2018-05-23 13:51:28 -07:00
Shelley Vohr
22fed0c798
remove nativeImage.createFromBuffer() deprecation
2018-05-23 09:43:58 -07:00
Shelley Vohr
94e825378c
remove webFrame.registerURLSchemeAsSecure() deprecation
2018-05-23 09:33:57 -07:00
Shelley Vohr
4a90056462
remove webContents.openDevTools() deprecation
2018-05-23 09:30:15 -07:00
Shelley Vohr
3deffa859d
remove appcommand media-play_pause option deprecation
2018-05-23 09:24:32 -07:00
Shelley Vohr
003a5a0160
remove tray.setHighlightMode() deprecation
2018-05-23 09:20:39 -07:00
Shelley Vohr
72c63a10ee
remove screen.getMenuBarHeight() deprecation
2018-05-23 09:11:48 -07:00
Aleš Pergl
93bee69266
Remove command line argument black-list ( #13039 )
...
* Remove command line argument black-list
Instead block all arguments following a URL.
* Updated tests
2018-05-22 11:51:03 -05:00
Milan Burda
2337237d58
Refactoring: use C++11 class member variable initialization
2018-05-22 00:18:38 +02:00
Cheng Zhao
595b0663b2
WebContents may be managed by multiple owners
2018-05-21 10:53:09 +09:00
Cheng Zhao
3b81312cf7
clear pointer when WebContents is closed
2018-05-21 10:53:09 +09:00
Cheng Zhao
51db1efb8a
prevent double-adding a WebContents to view
2018-05-21 10:53:09 +09:00
Cheng Zhao
aeeb2a259f
destruct objects in stack order
2018-05-21 10:53:09 +09:00
Cheng Zhao
fd4a0626c5
destroy WebContents when view is destroyed
2018-05-21 10:53:08 +09:00
htk3
7c2303c758
Correct app-command name of APPCOMMAND_MEDIA_PLAY_PAUSE ( #12408 )
...
* correct app-command name
* add compatibility with old app-command name
* add temporary compatibility with old app-command name
* add a comment saying that media-play_pause is deprecated
* fix lint
2018-05-21 10:52:04 +09:00
Heilig Benedek
8b2bffcf9e
Only expand maximum size constraint if there was a constraint originally ( #13003 )
2018-05-21 10:56:45 +10:00
Jeremy Apthorp
156a97b80d
fix: Menu.setApplicationMenu(null) crash on Linux ( #12983 )
2018-05-18 10:29:28 -07:00
Milan Burda
850051463b
don't use native_mate/compat.h macros ( #12984 )
2018-05-18 09:08:28 +09:00
Zhuo Lu
d2653e8192
Fix: Prevent menu update while it's open ( #12809 )
...
* Update application menu on default runloop
Menu change should be prevented while the menu is open
* Fix code style
* Memory safety
2018-05-17 11:19:28 +10:00
Jeremy Apthorp
da0fd10423
refactor: chromium-style warnings in linux code ( #12949 )
2018-05-16 14:12:45 -05:00
John Kleinschmidt
9488ef4867
Merge pull request #12496 from mikeykhalil/8952-ignore-tray-double-click-events
...
8952 option to ignore tray double click events
2018-05-16 10:17:36 -04:00
John Kleinschmidt
e1c374de6e
Merge pull request #12954 from electron/web-dialog-helper
...
Fix empty description when only one extension is given (GetFileTypesFromAcceptType)
2018-05-16 10:15:54 -04:00
Milan Burda
211d7825d3
feat: DIP <-> screen coordinate conversions ( #12879 )
2018-05-16 18:34:09 +09:00
Milan Burda
9d9d6ca20b
Fix empty description when only one extension is given
2018-05-16 01:58:58 +02:00
Jeremy Apthorp
73eb5af2cc
refactor: remove unnecessary std::moves in linux code ( #12951 )
...
The compiler was complaining that the move was preventing copy elision.
2018-05-15 14:33:47 -07:00
Jeremy Apthorp
8fa48d1c04
fix: unused variable warnings in linux code ( #12950 )
2018-05-15 13:49:27 -05:00
Jeremy Apthorp
c4134c3516
refactor: breakpad #includes to work with GN and GYP ( #12953 )
2018-05-15 11:33:19 -07:00
Jeremy Apthorp
136105e353
fix: wrong list index type in file_dialog_gtk.cc ( #12952 )
2018-05-15 13:22:52 -05:00
Milan Burda
6a4d9309b2
Remove unnecessary heap allocations of atom::V8ValueConverter instances ( #12924 )
2018-05-15 09:21:23 -05:00
Cheng Zhao
2f3fcb9dbe
give window a default content view
...
Certain APIs are expecting the window to have a content view, having a
default one simplifies our design.
2018-05-15 14:12:47 +09:00
Cheng Zhao
ea97f43145
check content view in SetMenuBarVisibility
2018-05-15 14:12:47 +09:00
Cheng Zhao
bb2715e7a5
feat: add TopLevelWindow.setContentView API
2018-05-15 14:12:47 +09:00
Cheng Zhao
2b24b26e59
refactor: do not pass WebContents to NativeWindow
2018-05-15 14:03:21 +09:00
Cheng Zhao
640877ebf8
attach native view after widget is created
2018-05-15 14:03:21 +09:00
Cheng Zhao
5a320222e2
feat: add WebContentsView API
2018-05-15 14:03:21 +09:00