Kevin Sawicki
3dd5628ded
Include windows.h first
2016-08-26 16:00:05 -07:00
Kevin Sawicki
6285500cdc
Sort includes alphabetically
2016-08-26 15:30:02 -07:00
Cheng Zhao
31b82731ac
Cleanup the usages of std::wstring
2016-08-22 09:57:52 +09:00
Cheng Zhao
77dfd3a76c
Do not add extra space when args is empty
2016-08-22 09:50:58 +09:00
Samuel Attard
ab7899d0fb
Fix linting issues
2016-08-18 20:42:06 +10:00
Samuel Attard
73246112d2
Use base::string16 and base::JoinString instead of custom methods
2016-08-18 20:35:57 +10:00
Samuel Attard
ca971e978e
Return boolean instead of empty string when error occurs. Update docs
2016-08-18 18:02:13 +10:00
Samuel Attard
14154e374a
Fix cpp linting issues
2016-08-16 15:54:30 +10:00
Samuel Attard
e5daf63b0e
Allow client to specify EXE file and args to set as default handler
...
* Optional path param to setAsDefaultProtocolClient
* Optional args param to setAsDefaultProtocolClient
2016-08-16 15:35:33 +10:00
Milan Burda
a0cf013112
Report app.setUserTasks success/failure
2016-08-08 02:22:51 +02:00
Cheng Zhao
b57665330c
Merge branch 'master' into chrome52
2016-07-21 05:34:36 -06:00
Kevin Sawicki
3d358ee7ea
Fix Windows compilation issues
2016-07-12 09:10:47 -07:00
Kevin Sawicki
5a36c5596c
Add initial windows login item implementation
2016-07-12 09:10:47 -07:00
Kevin Sawicki
64f9c6a1d7
Add get/setLoginItemSettings on all platforms
2016-07-12 09:10:47 -07:00
Cheng Zhao
1ba3907038
Update to API changes of Chrome 52
2016-07-04 15:32:43 +09:00
Cheng Zhao
1da2a1c2ae
app.setBadgeCount should return boolean
2016-07-01 22:20:05 +09:00
Cheng Zhao
cb00d3cfb3
mac: Implement app.setBadgeCount
2016-07-01 17:39:26 +09:00
Cheng Zhao
7ba391da7c
Update to API changes of Chrome 51
2016-05-23 10:59:39 +09:00
Rita Zhang
df2141d9e6
⚡ Add API: IsDefaultProtocolClient
2016-04-27 12:24:46 -07:00
Felix Rieseberg
1231360b2f
⚡ Add API: RemoveAsDefaultProtocolHandler
2016-03-28 15:31:01 -07:00
Felix Rieseberg
d2567b0381
⚡ Add API: SetASDefaultProtocolHandler
...
This PR adds an API enabling Electron to set itself as the default
protocol handler for a custom porotocl on both oS X and Windows.
For details, please see `docs/app.md`.
Closes #4857
2016-03-23 22:12:17 -07:00
Paul Betts
3931ebb7ef
Fix up Windows build errors
2015-12-07 10:02:06 -08:00
Cheng Zhao
1b165559f5
win: Use electron.app.$1 as default user model id
...
This is to keep compatibility with old apps that don't set app user
model id explicitly.
2015-11-03 15:50:43 +08:00
Cheng Zhao
9047f81835
win: Set app user model ID in one place
...
Fix #3297 .
Fix #2573 .
2015-11-03 15:09:31 +08:00
Cheng Zhao
7c7a7b96de
win: Do not set app user model id by default
...
When user drags exe file into taskbar directly the pinned icon will not
has an app user model id, so if we set app user model id in the
application two icons will show in the taskbar.
For apps installed with a installer it is not a problem since the
shortcut icon will be created with app user model id, but we should also
keep the ability to make portable apps work out of box.
Fix #3303 .
2015-11-03 14:55:43 +08:00
Cheng Zhao
2d8d328f02
Rename hard-coded application names in code
2015-04-14 15:55:41 +08:00
Cheng Zhao
8951572366
win: Fix crash when calling app.setName
2014-11-21 16:38:54 +08:00
Cheng Zhao
ee9964c141
AddUserTasks => setUserTasks
2014-11-17 19:32:11 +08:00
Cheng Zhao
0b1b0940d2
Enable setting icon for addUserTasks
2014-11-17 17:35:51 +08:00
Cheng Zhao
47c18fef7f
win: Add app.addUserTasks API
2014-11-17 17:19:41 +08:00
Cheng Zhao
48412769df
win: Add app.clearRecentDocuments API
2014-11-17 16:13:47 +08:00
Cheng Zhao
528f7bd45f
win: Set app user model ID
...
This ID is used by Windows to identify your application.
2014-11-17 15:55:49 +08:00
Cheng Zhao
78322b5231
win: Implement Browser::AddRecentDocument
2014-11-17 15:53:18 +08:00
Cheng Zhao
c23ba7b504
mac: Add app.addRecentDocument API
2014-11-17 13:05:06 +08:00
Kevin Sawicki
b6b6fc3bfd
Remove All Rights Reserved after GitHub copyright
...
Closes #762
2014-10-31 11:17:05 -07:00
Cheng Zhao
8d4211bd3a
win: Fix compilation errors for chrome35.
2014-07-11 12:19:01 +08:00
Cheng Zhao
f176b2c58f
Switch to use MIT license.
2014-05-04 20:29:08 +08:00
Cheng Zhao
b994ae8174
mac: Always cancel application termination.
...
OS X's application termination doesn't work very well with C++ message
loops. Especially when we return NSTerminateLater for shouldTerminate,
it would be impossible for the C++ message loop to quit, because unless
we explictly let NSApp terminate the application, the message loop would
think the application is not terminated and will run forever.
The fix is to simply ignore the Cocoa's application termination request
and let the C++ message loop deal with it compeletey. But we had the
side effect that atom-shell would always cancel OS X's shutdown request,
this is also the approach chosen by Chromium.
Fixes #229 .
Fixes atom/atom#1864 .
2014-04-15 00:13:00 +08:00
Cheng Zhao
f0d9ee4ca9
Shutdown gracefully, fixes #227 .
2014-04-10 15:22:17 +08:00
Cheng Zhao
516d46444d
Move all sources under atom/.
2014-03-16 08:30:26 +08:00