Cheng Zhao
|
e73c655d65
|
No need to delete window in Destory
The native window is now automatically deleted after it gets closed.
|
2015-09-17 11:32:19 +08:00 |
|
Cheng Zhao
|
e3c64d7971
|
Release the native window after window gets closed
Previously we delete the window after the JS object gets garbage
collected, which is too late for releasing some resources.
|
2015-09-17 11:30:17 +08:00 |
|
Cheng Zhao
|
b72a5884f2
|
Add BrowserWindow.isDevToolsFocused
|
2015-09-15 11:43:45 +08:00 |
|
Cheng Zhao
|
238d4add99
|
devtools-opened should be emitted after devtools is opened
|
2015-09-15 09:18:22 +08:00 |
|
Cheng Zhao
|
446235c8cd
|
Fix backward compatibility with old BrowserWindow options
|
2015-09-09 15:55:26 +08:00 |
|
Cheng Zhao
|
46b2b91a27
|
Don't use Node's internal APIs
|
2015-09-07 16:41:49 +08:00 |
|
Cheng Zhao
|
e2bd1abce6
|
Make sure BrowserContext is destroyed on exit
|
2015-09-06 10:54:34 +08:00 |
|
Cheng Zhao
|
0b97d58a6f
|
Move a few options in NativeWindow to web-preferences
|
2015-09-06 10:53:03 +08:00 |
|
Cheng Zhao
|
0e92a3e333
|
Use options['web-preferences'] to create WebContents
|
2015-09-06 10:53:03 +08:00 |
|
Cheng Zhao
|
2ff104d012
|
Move callback converter from native mate to electron
|
2015-08-07 19:35:35 +08:00 |
|
Cheng Zhao
|
958658513c
|
Refactor code in taskbarHost
|
2015-08-06 12:44:07 +08:00 |
|
Cheng Zhao
|
a28f70e85c
|
Decouple TaskbarHost from NativeWindow
|
2015-08-06 11:10:34 +08:00 |
|
Haojian Wu
|
2f1cb8b52a
|
Expose NativeWindow.setThumbarButtons API to all platforms.
|
2015-08-05 22:30:05 +08:00 |
|
Haojian Wu
|
54af048f04
|
win: Add BrowserWindow.setThumbarButtons API.
|
2015-08-05 13:55:02 +08:00 |
|
Cheng Zhao
|
72eb87a631
|
Make the extraSize of BrowserWindow.setAspectRatio optional
|
2015-07-23 10:14:02 +08:00 |
|
Cheng Zhao
|
df35700b94
|
Style fixes
* Use under_score for variable names in C++
* Use const& when possible
* Line length <= 80
|
2015-07-23 10:07:58 +08:00 |
|
Michael S. Barthelemy
|
6d25c81bd1
|
changes requested for pull request #2250 into electron master
|
2015-07-22 10:23:31 -04:00 |
|
Michael S. Barthelemy
|
d0c6176640
|
wrap lines to meet Travis CI build requirements
|
2015-07-16 14:45:27 -04:00 |
|
Michael S. Barthelemy
|
7cdfa44438
|
shorten names
|
2015-07-16 14:31:01 -04:00 |
|
Michael S. Barthelemy
|
666aca7803
|
add function maintainAspectRatioOfInteriorContent to BrowserWindow in order to enforce an aspect ratio for an electron window
|
2015-07-16 13:54:51 -04:00 |
|
Cheng Zhao
|
85a4ff83da
|
Some methods can be accessed after object is destroyed
|
2015-07-06 21:26:50 +08:00 |
|
Cheng Zhao
|
ae52af3870
|
Check BrowserWindow's lifetime
|
2015-07-06 18:28:42 +08:00 |
|
Cheng Zhao
|
1e514620b5
|
Remove window from window list before notifying closed event
|
2015-06-27 17:11:36 +08:00 |
|
Paul Betts
|
58efb3c018
|
I forget cpplint every time
|
2015-06-25 15:09:25 -06:00 |
|
Paul Betts
|
cde7c6a4ef
|
Move app commands to strings
|
2015-06-25 11:29:57 -06:00 |
|
Paul Betts
|
cec6895e67
|
Emit the message as an event
|
2015-06-25 11:29:22 -06:00 |
|
Cheng Zhao
|
fb5fe7a714
|
Decouple WebContentsDelegate from NativeWindow
|
2015-06-25 11:07:23 +08:00 |
|
Cheng Zhao
|
5236b0c067
|
Don't create WebContents in NativeWindow
|
2015-06-25 09:47:57 +08:00 |
|
Cheng Zhao
|
9b9108f789
|
Remove JS override of setMenu
|
2015-06-24 19:51:11 +08:00 |
|
Cheng Zhao
|
f198148c79
|
Always initailize webContents in BrowserWindow
|
2015-06-24 19:04:08 +08:00 |
|
Cheng Zhao
|
cc8b22b5ff
|
Make each class only have one weak map
|
2015-06-24 17:58:12 +08:00 |
|
Cheng Zhao
|
5e62b5975b
|
Move "id" and "fromId" to C++
|
2015-06-24 16:37:48 +08:00 |
|
Cheng Zhao
|
197a9b4165
|
Remove calls to v8::Isolate::GetCurrent
It is generally a bad thing to do since we might have multiple Isolates.
|
2015-06-23 17:22:14 +08:00 |
|
Cheng Zhao
|
015ef3e014
|
Omit extra transfer of new-window event
|
2015-06-23 16:34:22 +08:00 |
|
Haojian Wu
|
47eac062f6
|
Expose Print API to webContents and webView.
Also move the print implementation from window to webContents.
|
2015-06-16 20:08:30 +08:00 |
|
Haojian Wu
|
c0a6cb69bf
|
Move printToPDF API to WebContents.
Also expose in webview.
|
2015-06-16 20:06:52 +08:00 |
|
Haojian Wu
|
2597ded985
|
Cleanup.
|
2015-06-16 20:02:25 +08:00 |
|
Haojian Wu
|
10da361db1
|
Fix a type error in checking function options.
|
2015-06-16 20:02:25 +08:00 |
|
Haojian Wu
|
8572ccb807
|
Add callback function in printToPDF API.
|
2015-06-16 20:02:24 +08:00 |
|
Haojian Wu
|
ce8bbb689c
|
Add options to custom print settings in printToPDF API.
|
2015-06-16 20:02:24 +08:00 |
|
Haojian Wu
|
b360f7d86a
|
Add printToPDF API skeleton.
|
2015-06-16 20:02:23 +08:00 |
|
Cheng Zhao
|
132c13a11b
|
Fix calls to deprecated node::ThrowError API
|
2015-06-10 14:21:09 +08:00 |
|
Cheng Zhao
|
05468cc3fa
|
Remove devtools APIs from NativeWindow
|
2015-06-05 17:01:17 +08:00 |
|
Cheng Zhao
|
94d69777fa
|
Enable calling WebContents::openDevTools for BrowserWindow's WebContents
|
2015-06-05 15:41:03 +08:00 |
|
Cheng Zhao
|
47e9deeb9a
|
Remove Menu::AttachToWindow
It makes the logic more complex without any benefit
|
2015-06-04 15:32:33 +08:00 |
|
deepak1556
|
67a9931b55
|
devtools: initialise devtoolsWebContents when opened with inspect* apis
|
2015-06-01 17:23:44 +05:30 |
|
Cheng Zhao
|
4a376694b4
|
Merge pull request #1719 from deepak1556/service_worker_patch
devtools: api to inspect service worker
|
2015-05-27 15:47:41 +08:00 |
|
Cheng Zhao
|
c244e83e10
|
Merge pull request #1633 from deepak1556/window_event_patch
window: adding resize and move events
|
2015-05-27 14:54:36 +08:00 |
|
Cheng Zhao
|
d78efe7c22
|
Use Local instead of Handle
|
2015-05-22 19:11:22 +08:00 |
|
deepak1556
|
9a60fde59b
|
alias move and moved event on OS X
|
2015-05-22 12:24:12 +05:30 |
|