Cheng Zhao
b9d64784bb
win: Don't crash on invalid parameter error.
...
libuv relies on suppressing the invalid parameter error in
uv__get_osfhandle, and it could hanppen frequently.
Fixes #513 .
2014-07-26 11:14:28 +08:00
Cheng Zhao
e11c8a07ea
Bump v0.14.2.
2014-07-25 22:33:28 +08:00
Cheng Zhao
b9fc5474c5
win: Use system's menu bar color.
2014-07-25 15:20:25 +08:00
Cheng Zhao
709670be8e
win: Make menu bar height 20.
...
On Windows applications used to have lower menu bars.
2014-07-25 15:05:18 +08:00
Cheng Zhao
92a0a4cf6c
views: Filter out the "&" in window menu.
2014-07-25 14:53:19 +08:00
Cheng Zhao
f7a9b56e93
mac: Make cmd+~ work for devtools window, fixes #508 .
2014-07-25 11:03:25 +08:00
Cheng Zhao
53c73c0631
mac: Fix crash when closing window, closes #504 .
2014-07-25 10:38:19 +08:00
Cheng Zhao
8fcd39f621
Bump v0.14.1.
2014-07-24 22:35:39 +08:00
Cheng Zhao
ef352a69b4
Merge pull request #503 from atom/linux-native-frame
...
Use native window frame on Linux
2014-07-24 21:28:53 +08:00
Cheng Zhao
99ef165884
Merge pull request #493 from hokein/issue460
...
mac: Add BrowserWindow.getRepresentedFilename API, fixes #460 .
2014-07-24 21:10:43 +08:00
Cheng Zhao
77627c0d2d
linux: Use native frame for message box.
2014-07-24 21:06:33 +08:00
Cheng Zhao
c91f0c575c
linux: Remove custom frame code.
2014-07-24 21:03:17 +08:00
Cheng Zhao
1a5c0ab1ae
linux: Implement min/max size of window.
2014-07-24 21:02:13 +08:00
Cheng Zhao
11634740d3
linux: Use native window frame.
2014-07-24 18:06:27 +08:00
Cheng Zhao
640ac43059
mac: Fix the focus event of web contents.
2014-07-24 16:42:38 +08:00
Haojian Wu
6f231d5860
mac: Add BrowserWindow.isDoucumentEdited API, fixes #459 .
2014-07-24 16:01:04 +08:00
Haojian Wu
acb8b7771e
mac: Add BrowserWindow.getRepresentedFilename API, fixes #460 .
2014-07-24 15:59:35 +08:00
Cheng Zhao
17cf6ffbd4
Bump v0.14.0.
2014-07-21 22:23:35 +08:00
Cheng Zhao
e803d3cc7a
Merge pull request #440 from atom/chrome35
...
Upgrade to Chrome35
2014-07-21 22:23:04 +08:00
Cheng Zhao
e4484f0c3e
win: Fix parent window of dialogs.
2014-07-21 22:13:46 +08:00
Cheng Zhao
dd404fb785
win: Remove dead browser window code.
2014-07-21 22:13:46 +08:00
Cheng Zhao
a15ee1871a
win: Implement SetSkipTaskbar.
2014-07-21 22:13:45 +08:00
Cheng Zhao
e6998dfd4b
linux: Fix compilation error caused by X header.
2014-07-21 13:48:23 +00:00
Cheng Zhao
21949e2f0c
views: Don't retain MenuRunner on heap.
...
Sometimes the MenuHost would crash when the window is closed, the author
didn't recommend using MenuRunner on stack, but since we always run the
menu synchronously, this is no problem.
2014-07-21 21:42:01 +08:00
Cheng Zhao
1a79093378
views: Add menu should not change window size.
2014-07-21 20:58:15 +08:00
Cheng Zhao
ffad6fe884
win: Fix compilation error.
2014-07-21 20:45:31 +08:00
Cheng Zhao
fab11950ee
Fix crashing when setting web-preferences, closes #443 .
2014-07-21 13:08:52 +08:00
Cheng Zhao
365638f1d5
win: Remove dead menu code.
2014-07-21 11:23:01 +08:00
Cheng Zhao
9c9e0d92f4
Fix cpplint warnings.
2014-07-18 09:17:17 +08:00
Cheng Zhao
66aea0c3e8
Fix releasing script contexts.
2014-07-18 09:12:22 +08:00
Cheng Zhao
0f18d63f7f
views: Implement the window menu bar.
2014-07-17 14:23:28 +08:00
Cheng Zhao
2ee7caccfe
views: Add an empty menu bar.
2014-07-16 22:12:57 +08:00
Cheng Zhao
2a2fc4903d
linux: Share code on frameless window with Windows.
2014-07-16 16:00:08 +08:00
Cheng Zhao
9afc2daf75
Only ship high DPI paks on Window.
2014-07-16 15:49:40 +08:00
Cheng Zhao
8f94d5886d
win: Min/max size uses scaled DPI size.
2014-07-16 15:40:22 +08:00
Cheng Zhao
6de595f036
win: Implement frameless window.
2014-07-16 15:33:40 +08:00
Cheng Zhao
db6c37bfbc
Include high DPI resource paks.
2014-07-16 15:05:02 +08:00
Hiroshige Umino
6bfa69ceda
Print stack traces when starting app failed in addition to a dialog
2014-07-15 19:42:01 +09:00
Cheng Zhao
00467b53c7
linux: Fix modal message box.
2014-07-14 16:34:22 +08:00
Cheng Zhao
adec718503
win: Fix showing menu on High DPI display.
2014-07-13 22:22:56 +08:00
Cheng Zhao
7c8a0ae2a3
win: Fix black ground when closing message box.
2014-07-13 09:50:16 +08:00
Cheng Zhao
add45b564e
win: Improve window frames.
2014-07-12 21:03:34 +08:00
Cheng Zhao
643a47cf7d
win: Use native frame for browser windows.
2014-07-12 11:36:08 +08:00
Cheng Zhao
5c99dff36d
linux: Remove dead code on accessing window tree host.
2014-07-11 23:27:45 +08:00
Cheng Zhao
b2839b08cd
win: Enable high dpi support.
2014-07-11 20:58:39 +08:00
Cheng Zhao
b2afe7b3bf
win: Fix notify icon and context menu.
2014-07-11 19:42:53 +08:00
Cheng Zhao
b4ba149662
Fix a crash when creating window.
2014-07-11 19:39:35 +08:00
Cheng Zhao
43e8ecb118
win: screen module is now browser only.
2014-07-11 19:06:46 +08:00
Cheng Zhao
8d4211bd3a
win: Fix compilation errors for chrome35.
2014-07-11 12:19:01 +08:00
Cheng Zhao
497174bbe4
linux: Avoid using unsigned long directly.
2014-07-11 09:18:06 +08:00
Cheng Zhao
1c62211d99
linux: No need to remember root item in menubar.
2014-07-11 09:09:23 +08:00
Cheng Zhao
7e86e53593
linux: Add support for unity global menubar.
2014-07-11 08:57:19 +08:00
Cheng Zhao
3349b8e6c7
linux: Remove all the X and GTK+ related implementations.
...
Now we only uses GTK+ for app indicator and status icon, also notice the
in Chrome35 the Gtk2StatusIcon class doesn't exist yet so we shipp
related files under chromium_src, remember to delete them after upgraded
to Chrome36.
2014-07-10 13:06:41 +08:00
Cheng Zhao
49160819d2
linux: Implement context menu with views.
2014-07-10 12:07:01 +08:00
Cheng Zhao
83ff00dc29
linux: screen module can not be used in renderer.
2014-07-10 10:26:17 +08:00
Cheng Zhao
e150a3e3b2
Enable accelerated composition in frameless window.
2014-07-09 19:05:24 +08:00
Cheng Zhao
fcf55df874
Avoid duplicate code in main delegate.
2014-07-09 17:15:28 +08:00
Cheng Zhao
7b93a19e9b
Fix context menu in devtools.
2014-07-09 15:41:16 +08:00
Cheng Zhao
4e4227aef8
views: Implement focus and blur event.
2014-07-08 12:55:33 +08:00
Cheng Zhao
ee5312fff9
Merge branch 'master' into chrome35
...
Conflicts:
atom/browser/native_window_gtk.h
2014-07-07 23:49:28 +08:00
Cheng Zhao
b99262af32
views: Use UnhandledKeyboardEventHandler to handle accelerators.
2014-07-07 23:02:46 +08:00
Cheng Zhao
3d36a6a793
views: Make resizable frameless window work.
2014-07-07 22:40:26 +08:00
Cheng Zhao
db98a3842f
views: Implment skip-taskbar option.
2014-07-07 22:40:25 +08:00
Cheng Zhao
a5e2ea2899
views: Make frameless window work.
2014-07-07 22:40:23 +08:00
Cheng Zhao
e7feafb2cc
views: Use our own CustomFrameView implementation.
2014-07-07 15:35:16 +08:00
Cheng Zhao
4609a8d2be
linux: Fix setting parent window for file dialogs.
2014-07-05 00:00:54 +08:00
Cheng Zhao
66ab127389
Merge pull request #437 from avdg/maximize
...
Add BrowserWindow::isMaximized.
2014-07-04 23:17:33 +08:00
Cheng Zhao
b3bccd2e1e
views: Be correct on widget's life time.
2014-07-04 17:24:49 +08:00
Cheng Zhao
3c892b8591
views: Make acceleratros work.
2014-07-04 16:54:10 +08:00
Cheng Zhao
0a38f3321e
views: Currently set window's frames.
2014-07-04 12:32:03 +08:00
Cheng Zhao
61db17412c
Use views to implement NativeWindow and MessageBox on Linux.
2014-07-04 01:30:36 +08:00
Cheng Zhao
84878c4c77
Initial work for Aura on Linux.
2014-07-02 22:49:45 +08:00
Cheng Zhao
949821f255
Use new devtools structure in brightray.
...
Fixes #210 .
Fixes #275 .
2014-07-02 16:38:11 +08:00
Mark Samman
2ed46e6f7f
Move item to trash without confirming on Windows
...
This will skip the "Are you sure you want to move this file to the Recycle Bin?" dialog on Windows.
2014-07-02 03:55:29 +02:00
Cheng Zhao
6a891be0e4
Make the node environment constrained in browser_main_parts.
2014-06-30 14:16:16 +08:00
Cheng Zhao
2736b5dab3
Fix assertion caused by base::mac::AssignOverridePath.
2014-06-30 12:15:59 +08:00
Cheng Zhao
d5b2a5af26
Fix invoking ContentMain.
2014-06-30 11:44:05 +08:00
Cheng Zhao
750148f7b4
Fix using common modules.
2014-06-30 10:06:10 +08:00
Cheng Zhao
ba46f2c820
Use new context aware module API in builtin modules.
2014-06-29 20:48:44 +08:00
Cheng Zhao
69adff19fe
Force all builtin modules to be referenced.
2014-06-29 18:15:39 +08:00
Cheng Zhao
64bf1bcb9f
Move all chromium's code under chromium_src.
2014-06-29 06:06:35 +00:00
Cheng Zhao
1f99a97544
gtk: Fix lack of x11_util implementations.
2014-06-29 05:31:11 +00:00
Cheng Zhao
f4b6ca70a9
gtk: Import chromium's ActiveWindowWatcherX.
2014-06-29 04:05:29 +00:00
Cheng Zhao
e5c10f29de
gtk: Use libgtk2ui from chrome.
2014-06-29 03:41:22 +00:00
Cheng Zhao
436deddf68
Fix compilation errors on Linux.
2014-06-29 01:51:02 +00:00
Cheng Zhao
ad19381217
Fix ICU inilialization bug.
2014-06-28 23:58:53 +08:00
Cheng Zhao
cd4c5d976b
Adapt to API changes of Chromium and node.
2014-06-28 22:33:00 +08:00
Cheng Zhao
58ccb27792
There is no more node_isolate.
2014-06-28 19:49:55 +08:00
Cheng Zhao
e0e1d45859
Rename string16 to base::string16.
2014-06-28 19:49:22 +08:00
Cheng Zhao
c713deb1e8
Upgrade to new V8 APIs.
2014-06-28 19:31:23 +08:00
Anthony Van de Gejuchte
348dc8365b
Fix return types
2014-06-28 10:17:37 +09:00
Anthony Van de Gejuchte
dad7aa6a20
Add BrowserWindow::isMaximized.
2014-06-28 09:56:39 +09:00
Cheng Zhao
72d6778894
gtk: Make AppIndicator.SetContextMenu async, fixes #430 .
2014-06-26 12:09:07 +08:00
Cheng Zhao
0440c59d18
Remove native_window's dead code.
2014-06-25 13:21:04 +08:00
Cheng Zhao
8ecc4061a8
mac: Add app.dock.hide()/show() APIs, closes #422 .
2014-06-25 11:55:33 +08:00
Cheng Zhao
3eecd664b4
Bump v0.13.3.
2014-06-25 09:17:06 +08:00
Cheng Zhao
79c3377cd7
Show chromium's version in user agent, fixes #428 .
2014-06-25 09:05:10 +08:00
Cheng Zhao
32c881bde9
gtk: Make BrowserWindow::HasModalDialog work.
...
Fixes atom/atom#2658 .
2014-06-24 21:52:06 +08:00
Cheng Zhao
2ff4d56d6d
Fix compilation error.
2014-06-23 22:31:02 +08:00
Cheng Zhao
ca1d2a32b0
Support high dpi icon as window icon.
2014-06-23 22:26:01 +08:00
Cheng Zhao
b92e6e97ea
Dicard uses of base::Value in native_window.
2014-06-23 22:08:40 +08:00
Cheng Zhao
84e2c35611
Use mate::Dictionary instead of base::DictionaryValue for options.
...
mate::Dictionary can represent arbitray type, which matches our use.
2014-06-23 21:56:22 +08:00
Cheng Zhao
0349fdfd67
Fix converting empty V8 dictionary.
2014-06-23 21:50:28 +08:00
Cheng Zhao
11e4111f25
Recognize the "@2x" suffix of icon's filename.
2014-06-23 13:09:06 +08:00
Cheng Zhao
6cac69238c
mac: Convert from ImageSkia to NSImage to reserve DPI info.
2014-06-23 12:59:10 +08:00
Cheng Zhao
ae3958c997
The default_app should also set process.mainModule.
2014-06-22 14:57:11 +08:00
Cheng Zhao
9c84f92f3e
remote.require should use process.mainModule.require.
2014-06-22 14:56:30 +08:00
Cheng Zhao
48224a6455
Set process.mainModule to user's app.
2014-06-22 14:56:00 +08:00
Amin Ullah Khan
3d89181e96
Removed a typo
...
Fix for #416
2014-06-21 20:34:31 +05:00
Cheng Zhao
32323a0006
Bump v0.13.2.
2014-06-18 01:09:04 +00:00
Kevin Sawicki
edc043c924
Make escape to ui::VKEY_ESCAPE
2014-06-17 14:47:35 -07:00
Cheng Zhao
f4aadcbbfc
Do not disable detached devtools.
2014-06-17 16:35:23 +08:00
Cheng Zhao
81eedd4faf
mac: Fix handling event from other windows.
2014-06-17 16:35:19 +08:00
Cheng Zhao
054daadc33
💄 Fix cpplint warnings.
2014-06-16 21:29:18 +08:00
Cheng Zhao
05f079fa5b
Allow setting default zoom factor.
2014-06-16 18:52:04 +08:00
Cheng Zhao
8c264b9a07
Add zoom factor APIs alternative to zoom level.
2014-06-16 14:40:02 +08:00
Cheng Zhao
accfabf569
Add web-view module.
2014-06-16 14:27:57 +08:00
Cheng Zhao
d4e9518ec6
win: Implement setSkipTaskbar.
2014-06-16 10:49:55 +08:00
Cheng Zhao
70d3365414
gtk: Add BrowserWindow.setSkipTaskbar API.
2014-06-16 10:29:51 +08:00
Cheng Zhao
a8cb839734
webContents.executeJavaScript should run code after page is loaded.
...
Fixes atom/atom#1805 .
2014-06-16 09:10:41 +08:00
Cheng Zhao
5270eab512
Do not assume trailing callback in dialog API, fixes #395 .
2014-06-15 12:43:28 +08:00
Cheng Zhao
c97e849610
Bump v0.13.1.
2014-06-14 22:27:06 +08:00
Cheng Zhao
2cdcb45d16
Support INSERT in accelerator, fixes #398 .
2014-06-14 22:25:21 +08:00
Cheng Zhao
b431566421
mac: Make sure web view is the first responder of window, fixes #382 .
2014-06-11 15:57:40 +08:00
Cheng Zhao
4aa217970e
win: Implement attached devtools, fixes #373 .
2014-06-11 11:03:10 +08:00
Cheng Zhao
1d6b02f304
mac: Restore presentation options when leaving kiosk mode, fixes #272 .
2014-06-09 13:04:59 +08:00
Cheng Zhao
7d38fe61d2
"did-finish-load" should only emit for main frame, fixes #385 .
2014-06-09 12:03:19 +08:00
Cheng Zhao
2b0ec2bcc6
Bump v0.13.0.
2014-06-05 07:14:32 +00:00
Cheng Zhao
c575d40d63
💄 Fix clipboard on Linux.
2014-06-05 15:22:36 +08:00
Cheng Zhao
950704c7e8
Provide API to access selection clipboard, fixes #377 .
2014-06-05 14:48:12 +08:00
Cheng Zhao
7c14c2758b
Return unicode string in clipboard.readText(), fixes atom/atom#2145 .
2014-06-05 11:43:45 +08:00
Cheng Zhao
04cbb76776
win: Remove focus listener after window is closed, fixes #364 .
2014-06-03 14:39:47 +08:00
Cheng Zhao
53092cfb7c
win: Fix context menu clicking in notify icon.
2014-06-03 14:11:12 +08:00
Cheng Zhao
9ef7ecbdaf
Win: Implement context menu for tray icon.
2014-06-03 11:52:57 +08:00
Cheng Zhao
1cb135f7f2
win: Implement tray icon API.
2014-06-03 11:25:09 +08:00
Cheng Zhao
540e6ff01b
gtk: Implement click event for status icon.
2014-06-02 23:10:36 +08:00
Cheng Zhao
4647efd22f
💄 Fix cpplint warning.
2014-06-02 11:47:37 +08:00
Cheng Zhao
da31588e0d
mac: Implement the "click" event of TrayIcon.
2014-06-02 11:28:23 +08:00
Cheng Zhao
cbd9366898
Add "click" event for TrayIcon.
2014-06-02 11:08:29 +08:00
Cheng Zhao
9699dbb71f
gtk: Add app indicator support as tray icon.
2014-06-01 10:20:06 +08:00
Cheng Zhao
065185baea
gtk: Add TrayIcon implementation for GtkStatusIcon.
2014-05-31 10:27:07 +08:00
Cheng Zhao
6c7fe80ec5
Bind TrayIcon to JS.
2014-05-30 23:57:54 +08:00
Cheng Zhao
52d8d6fdb3
Add native_mate converters for ImageSkia.
2014-05-30 23:05:24 +08:00
Cheng Zhao
6f5184f001
mac: Simple implementation of tray icon.
2014-05-30 14:37:53 +08:00
Cheng Zhao
80fb79daac
Add dummy implementations for TrayIcon.
2014-05-30 10:31:27 +08:00
Cheng Zhao
2da5bcb0b8
Fix cpplint warning.
2014-05-29 21:24:22 +08:00
Cheng Zhao
162e47ca15
Initialize locale on mac.
2014-05-29 15:54:25 +08:00
Cheng Zhao
649730244b
Override application locale with system default locale.
2014-05-29 15:21:15 +08:00
Cheng Zhao
2efd91c150
Bump v0.12.7.
2014-05-27 06:16:37 +00:00
Cheng Zhao
a7b730654c
mac: Add APIs on setting icon in titlebar.
2014-05-27 14:15:34 +08:00
Cheng Zhao
2f5dfb1dc7
Do not init Menu lazily, otherwise empty menus would be invalid.
2014-05-27 09:10:54 +08:00
Cheng Zhao
541b855512
Move the ability of calling _init to native_mate.
2014-05-27 08:47:53 +08:00
Cheng Zhao
8b42990bb3
Bump v0.12.6.
2014-05-26 13:34:57 +00:00
Cheng Zhao
9b8edeb609
Fix specs.
2014-05-26 13:01:26 +08:00
Cheng Zhao
15d9b320db
💄 Organize Menu and MenuItem's code.
2014-05-26 12:40:21 +08:00
Cheng Zhao
d38ffea4a3
win: Setting enabled/visiable should also update menu.
2014-05-26 12:00:20 +08:00
Cheng Zhao
dfa1ae1c20
win: Update states when setting checked property.
2014-05-26 11:34:36 +08:00
Cheng Zhao
6ee437e9bf
win: Force menuWillShow to be called when setting window menu.
2014-05-26 09:38:04 +08:00
Cheng Zhao
0e5f697b48
win: Update menu states when setting menu bar.
2014-05-26 09:18:19 +08:00
Cheng Zhao
22927c9478
Fix error when showing empty menu.
2014-05-25 16:37:45 +08:00
Cheng Zhao
cd35430d0e
mac: Make sure menuWillShow is called when setting application menu.
2014-05-25 15:42:23 +08:00
Cheng Zhao
6a48568911
Radio menu items should have at least one item checked.
...
This is to force all platforms to match the same behavior in GTK+.
2014-05-25 15:25:36 +08:00
Cheng Zhao
aa17b3adc2
Setting a radio menu item should flip other items in the group.
2014-05-25 12:47:38 +08:00
Cheng Zhao
04fbec5120
Generate menu group id automatically.
...
In GTK+ radio menu items are managed automatically, so group id won't
have any effect there, in the meanwhile we need to maintain the same
behavior on all platforms, so we have to generate group id instead of
letting users specifying it.
2014-05-25 12:37:00 +08:00
Cheng Zhao
76d0d3ec19
gtk: Fix setting unresizable window.
2014-05-25 11:44:25 +08:00
Cheng Zhao
fd99d21c8f
Make menu's checked property flipped automatically, fixes #349 .
2014-05-25 11:32:29 +08:00
Cheng Zhao
6a071e1b4d
win: Implement focus and blur event.
2014-05-24 13:04:04 +08:00
Cheng Zhao
393d61b362
Override app version and name when loading apps from default_app.
...
Fixes #346 .
2014-05-24 11:18:06 +08:00
Cheng Zhao
890448d5fa
Merge pull request #351 from atom/custom-web-preferences
...
Enable custom web preferences
2014-05-23 23:18:06 +08:00
Cheng Zhao
fc9fd46308
gtk: Fix the focus event.
2014-05-23 23:00:04 +08:00
Cheng Zhao
fc1bc78fb9
Merge pull request #343 from gmr/master
...
Add a `focus` event to BrowserWindow
2014-05-23 22:49:59 +08:00
Cheng Zhao
1fbebb0da7
Add 'extra-plugin-dirs' option.
2014-05-22 23:48:00 +08:00
Cheng Zhao
2204e9bb15
Add 'web-preferences' options in BrowserWindow.
2014-05-22 22:54:09 +08:00
Cheng Zhao
d49060d659
Add "id" property for BrowserWindow, fixes #218 .
2014-05-22 09:51:58 +08:00
Cheng Zhao
764deab5c1
Make the default_app unresizable.
2014-05-22 09:09:32 +08:00
Cheng Zhao
28e266ac11
mac: Include more information in Info.plist, fixes #340 .
2014-05-22 09:03:02 +08:00
Gavin M. Roy
b08ec402d2
Add a focus
event to BrowserWindow
...
- Tested in OSX
- Untested in GTK, but I expect it should work
- Did not see any similar constructs for notifications in Windows
2014-05-21 13:46:13 -04:00
Cheng Zhao
9721c4e761
Rename process.__atom_type to process.type.
2014-05-21 22:44:43 +08:00
Cheng Zhao
55640a3ff7
win: Make sure shell.showItemInFolder in called on browser side.
...
Fixes #341 .
2014-05-21 22:31:44 +08:00
Cheng Zhao
dc907f501c
win: Fix the resizable flag, closed #316 .
2014-05-20 23:37:14 +08:00
Cheng Zhao
972bb2e9fb
Make sure webContents is created when opening devtools.
...
Fixes atom/atom#2270 .
2014-05-20 20:58:11 +08:00
Cheng Zhao
754abbd39c
Bump v0.12.5.
2014-05-19 02:02:33 +00:00
Cheng Zhao
8ae66cab9d
win: Implement setContentSize API.
2014-05-18 21:27:23 +08:00
Cheng Zhao
0b202a2df1
win: Setting menu shouldn't change client area size.
2014-05-18 21:19:38 +08:00
Cheng Zhao
ee336b4218
win: Convert content size to window size.
2014-05-18 21:16:33 +08:00
Cheng Zhao
0dc3e6ac7c
💄 Fix cpplint warning.
2014-05-15 16:44:56 +08:00
Cheng Zhao
64da04777e
gtk: Fix setting content size.
2014-05-15 16:27:18 +08:00
Cheng Zhao
5150fd6946
Add BrowserWindow::setContentSize.
2014-05-15 16:06:12 +08:00
Cheng Zhao
511a49f6fb
gtk: Respect use-content-size when creating window.
2014-05-15 15:38:22 +08:00
Cheng Zhao
76cc3eeb6d
Get BrowserWindow::getContentSize API.
2014-05-15 15:30:04 +08:00
Cheng Zhao
8d5fbe525d
Use content size in default_app.
2014-05-15 15:29:53 +08:00
Cheng Zhao
074ac051d2
mac: Respect use-content-size when creating window.
2014-05-15 15:19:02 +08:00
Cheng Zhao
e22a8d0a49
Add use-content-size switch.
2014-05-15 15:18:46 +08:00
Cheng Zhao
afd927f749
Use system's setting for font renderering, fixes #301 .
2014-05-14 16:54:07 +08:00
Cheng Zhao
cfeb00e629
Only report "app invalid" error when app could not be loaded, fixes #294 .
2014-05-14 16:27:40 +08:00
Kramer Campbell
59ecf7bb50
Add missing graphics switching attribute.
...
Atom Shell was causing the GPU to be switched to the discrete card as
this attribute was missing from Info.plist files in common/ and
renderer/
2014-05-13 09:33:54 -07:00
Cheng Zhao
64bc157d1a
Only open url in browser for GET request, fixes #299 .
2014-05-13 14:49:48 +08:00
Cheng Zhao
cf887379e1
Bump v0.12.4.
2014-05-12 21:44:33 +08:00
Cheng Zhao
90477321fe
gtk: Show the menu after it has been added to window, fixes #292 .
2014-05-12 21:33:08 +08:00
Cheng Zhao
77d6bb2c3f
Bring the close timeout back to 5s.
2014-05-09 12:10:37 +08:00
Cheng Zhao
3e6df19eff
Do not send "unresponsive" when window is closed.
2014-05-09 12:08:15 +08:00
Cheng Zhao
a070f0fdb6
Only cancel unresponsive event when window close is cancelled.
2014-05-09 11:40:48 +08:00
Cheng Zhao
146ce284de
Do not override pending unresponsive counter.
2014-05-09 11:38:57 +08:00
Cheng Zhao
d10292d95c
Do not receive notifications after window is closed, fixes #265 .
2014-05-09 09:47:11 +08:00
Cheng Zhao
676b1e0bc7
Fix closing a crashed window, closes #269 .
2014-05-09 09:26:46 +08:00
Cheng Zhao
1b3658171f
Bump v0.12.3.
2014-05-07 15:33:32 +08:00
Pascal Borreli
831c7f5924
Fixed typos
2014-05-07 07:34:53 +01:00
Cheng Zhao
a69c312389
Fixes auto updater regression, closes atom/atom#1949 .
2014-05-07 11:32:06 +08:00
Cheng Zhao
a67c54869f
Make sure the job factory is created when initializing protocol module.
...
Fixes atom/atom#1963 , the regression came when moving to use native-mate
to reimplment the APIs.
2014-05-07 09:17:46 +08:00
Cheng Zhao
c841d90529
linux: Be quiet when uploading crash report.
2014-05-07 09:05:00 +08:00
Hugh Kennedy
da0eee6298
Enable WebGL
...
Enabling the `experimental_webgl_enabled` preference allows you
to create a WebGL context from within atom-shell.
While not necessarily important for the Atom editor, for others
to use atom-shell in substitution for node-webkit this is a
potentially useful feature, e.g. for packaged HTML5 games.
2014-05-06 10:43:58 +02:00
Corey Johnson
1515ff1a08
Merge pull request #235 from atom/open-source
...
Open source atom-shell
2014-05-05 11:19:49 -07:00
Cheng Zhao
9e80010e1a
Bump v0.12.2.
2014-05-05 17:13:13 +08:00
Cheng Zhao
e5e3a6837a
Better window height for default_app.
2014-05-05 17:12:39 +08:00
Cheng Zhao
0e7c7ca34b
Also report when user provided strange files.
2014-05-05 16:50:11 +08:00
Cheng Zhao
f0e5cae9bb
Disable elastic scrolling.
2014-05-05 16:48:58 +08:00
Cheng Zhao
f943f54ad5
Linkify the docs in default_app.
2014-05-05 16:46:25 +08:00
Cheng Zhao
c6448d0607
Use dialog to report invalid app.
2014-05-05 16:35:06 +08:00
Cheng Zhao
84bf956725
Enable dragging to open an app.
2014-05-05 16:30:37 +08:00
Cheng Zhao
854295c0a6
Add some styles.
2014-05-05 16:02:52 +08:00
Cheng Zhao
a132d2e5a0
Show a friendly guide when atom-shell is opened without app.
2014-05-05 15:45:50 +08:00
Cheng Zhao
de0be312be
Bump v0.12.1.
2014-05-05 01:47:46 +00:00
Cheng Zhao
f176b2c58f
Switch to use MIT license.
2014-05-04 20:29:08 +08:00
Cheng Zhao
a85db2d780
Deprecate the BrowserWindow.restart.
...
Now BrowserWindow.reload would just do the same thing.
2014-04-29 15:44:41 +08:00
Cheng Zhao
19698fc739
Move "restart()" API to webContents.
2014-04-29 15:22:06 +08:00
Cheng Zhao
8342c7cfe1
Bump v0.12.0.
2014-04-29 12:02:53 +08:00
Cheng Zhao
dc9778f0f2
Fix compilation error on Windows.
2014-04-29 11:39:31 +08:00
Cheng Zhao
97006bcbc3
Bump the close timeout to 10s.
...
Fixes atom/atom#1838 .
2014-04-26 13:15:41 +08:00
Cheng Zhao
1bba15cb7f
Avoid using processId and routingId directly.
2014-04-25 16:45:14 +08:00
Cheng Zhao
23ccad4915
Separate the webContents code in a new file.
2014-04-25 16:23:40 +08:00
Cheng Zhao
c0875864dc
Handle IPC messages in webContents instead of BrowserWindow.
2014-04-25 16:13:16 +08:00
Cheng Zhao
1815f8b40d
Make send and loadUrl also supported methods of BrowserWindow.
2014-04-25 13:14:11 +08:00
Cheng Zhao
272effd470
Add send for webContents.
2014-04-25 13:10:16 +08:00
Cheng Zhao
c8a82e6e50
Move navigator related APIs to webContents.
2014-04-25 12:52:30 +08:00
Cheng Zhao
e70d195cde
Fix releasing the wrong renderer view.
2014-04-25 12:40:04 +08:00
Cheng Zhao
4135040449
Move loading events to webContents.
2014-04-25 12:22:16 +08:00
Cheng Zhao
744895f9d8
Add destroyed event for webContents.
2014-04-25 11:59:33 +08:00
Cheng Zhao
859606e88c
Move webContents events away from window.
2014-04-25 11:51:05 +08:00
Cheng Zhao
9eeec9aa0b
Be safe on lifetime of webContents.
2014-04-25 11:22:51 +08:00
Cheng Zhao
b02bcc0016
Get webContents on request.
2014-04-25 10:57:45 +08:00
Cheng Zhao
c5f8fbf471
Add getter for devToolsWebContents.
2014-04-25 10:48:11 +08:00
Cheng Zhao
00ed814962
Add executeJavaScript method for webContents.
2014-04-25 10:34:40 +08:00
Cheng Zhao
79babe858d
Move some APIs from Window to WebContents.
2014-04-24 17:00:41 +08:00
Cheng Zhao
26e93e8798
Initial empty api_web_contents.
2014-04-24 16:45:25 +08:00
Cheng Zhao
486dd9edfa
mac: Avoid sending "blur" event when closing window.
2014-04-24 16:17:35 +08:00
Cheng Zhao
d3cda97d50
Enable passing null to dialog API.
2014-04-24 13:10:04 +08:00
Cheng Zhao
83debe2e43
Avoid passing closures to browser when showing dialog.
...
It's resource-costy.
2014-04-24 12:26:28 +08:00
Cheng Zhao
822bc2fd52
Only call getDevTools for windows that have devtools.
2014-04-24 12:04:23 +08:00
Cheng Zhao
e8bf798b52
Fix using an null dictionary.
2014-04-24 11:25:06 +08:00
Cheng Zhao
d67295888d
💄 Fix cpplint warning.
2014-04-23 14:17:13 +08:00
Cheng Zhao
3d267fc743
gtk: Free resources when closing window.
2014-04-23 12:59:03 +08:00
Cheng Zhao
0c9aea3308
Fix compilation under Linux.
2014-04-23 12:45:48 +08:00
Cheng Zhao
babfbe40d2
Fix the capturePage method.
2014-04-23 11:39:40 +08:00
Cheng Zhao
f6cca0df48
Remove redundant call to NotifyWindowClosed.
2014-04-23 11:21:17 +08:00
Cheng Zhao
0eb982a972
Make sure window object is destryed.
2014-04-23 10:53:07 +08:00
Cheng Zhao
1cb23a958c
Should send "closed" event when native window is closed.
2014-04-23 10:24:46 +08:00
Cheng Zhao
8417f158b4
Do not free memory used by native window immediately.
...
Otherwise we would have two ways to destroy a window, making code much
more complicated.
2014-04-23 09:53:38 +08:00
Cheng Zhao
db39910455
Remove window from observers when it's closed instead of deleted.
2014-04-23 09:25:04 +08:00
Cheng Zhao
bccbc5e821
Fix parameter detection in capturePage.
2014-04-23 09:09:28 +08:00
Cheng Zhao
5037daadfb
Use closed event instead of destroyed event.
...
We now do not delete window manually so the destroyed would be delayed
until the object is GCed.
2014-04-23 08:50:33 +08:00
Cheng Zhao
5a316c0c41
Free memory when native window is closed.
2014-04-23 08:50:26 +08:00
Cheng Zhao
a040a96652
Discard all our custom V8 helpers, use native-mate instead.
2014-04-22 23:07:21 +08:00
Cheng Zhao
ef5342b86e
Simplify atom_browser_bindings.
2014-04-22 11:06:13 +08:00
Cheng Zhao
3b8f959ddf
Simplify atom_bindings.
2014-04-22 11:01:37 +08:00
Cheng Zhao
7e1c86a105
Remove use of native_type_conversions.h when possible.
2014-04-21 23:49:53 +08:00
Cheng Zhao
2efed6f910
Simplify menu api.
2014-04-21 23:40:10 +08:00
Cheng Zhao
a13c29f0e6
Simplify protocol api.
2014-04-21 16:33:32 +08:00
Cheng Zhao
dd6caba082
Fix cpplint warning.
2014-04-18 17:28:05 +08:00
Cheng Zhao
e5176d6a0a
Use BrowserV8Locker when possible.
2014-04-18 17:25:22 +08:00
Cheng Zhao
1dd57bd3a4
Use the new function converter in dialog api.
2014-04-18 17:19:15 +08:00
Cheng Zhao
499c9bc3b9
Enable converting v8::Function to base::Callback.
2014-04-18 17:18:50 +08:00
Cheng Zhao
8f2b998718
Simpilfy auto_updater api.
2014-04-17 17:26:21 +08:00
Cheng Zhao
f36569c3b9
Use native_mate based Event in browser_ipc.
2014-04-17 17:14:05 +08:00
Cheng Zhao
da483ba7f3
Simplify app api.
2014-04-17 17:13:46 +08:00
Cheng Zhao
7c50393c72
Simplify power_monitor api.
2014-04-17 17:13:17 +08:00
Cheng Zhao
7106a36ccb
Add native_mate implemented Event and EventEmitter.
2014-04-17 17:12:27 +08:00
Cheng Zhao
77cccc2db6
Simplify browser_ipc api.
2014-04-17 13:51:59 +08:00
Cheng Zhao
5dae7b8658
Put converters under atom/common/native_mate_converters.
2014-04-17 13:45:14 +08:00
Cheng Zhao
84397052fd
Use base::File::StringType.
2014-04-16 15:45:28 +08:00
Cheng Zhao
a2407c6b02
Use Dictionary to set module.exports.
2014-04-16 15:43:06 +08:00
Cheng Zhao
aa1efe70e2
Use native_mate to simplify dialog api.
2014-04-16 15:14:44 +08:00
Cheng Zhao
6e2bf824f0
Use native_mate to simplify renderer_ipc api.
2014-04-16 12:29:16 +08:00
Cheng Zhao
1ae30328d6
Use the new Constructor API.
2014-04-16 11:58:48 +08:00
Cheng Zhao
8162689014
Use native_mate to simplify id_weak_map api.
2014-04-16 09:54:01 +08:00
Cheng Zhao
338d11ef01
Remove unneeded include.
2014-04-15 16:29:38 +08:00
Cheng Zhao
16e3397c32
Use native_mate to simplify screen api.
2014-04-15 16:25:39 +08:00
Cheng Zhao
c25911db0d
Use native_mate to simplify crash_reporter api.
2014-04-15 16:02:19 +08:00
Cheng Zhao
d9cd50c219
Use native_mate to simplify clipboard api.
2014-04-15 15:50:00 +08:00
Cheng Zhao
e42433cf9a
Use native_mate to simplify shell API.
2014-04-15 15:41:26 +08:00
Cheng Zhao
4fa9970eff
mac: Move OS X only files to atom/browser/mac.
2014-04-15 09:35:26 +08:00
Cheng Zhao
96b23830cd
Bump v0.11.10.
2014-04-11 21:02:22 +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
d654afde5f
Bump v0.11.9.
2014-04-11 10:44:41 +00:00
Cheng Zhao
5c5cf3c66e
Fix a crash when destroying window.
2014-04-11 18:43:01 +08:00
Cheng Zhao
84d458687a
mac: Avoid managing NSWindow by hand.
2014-04-11 12:47:22 +08:00
Cheng Zhao
2ab5d6e35a
Remove unneeded accessor.
2014-04-11 12:45:48 +08:00
Cheng Zhao
d6079782d1
mac: InspectableWebContents should be destroyed before release NSWindow.
...
Fixes atom/atom#1841 .
2014-04-11 12:32:42 +08:00
Cheng Zhao
e576d4c014
Fix app.exit compatibility.
2014-04-10 17:08:22 +08:00
Cheng Zhao
a16ea1fbf2
Bump v0.11.8.
2014-04-10 07:30:29 +00:00
Cheng Zhao
f0d9ee4ca9
Shutdown gracefully, fixes #227 .
2014-04-10 15:22:17 +08:00
Cheng Zhao
538bd1116d
Deprecate app.terminate API.
...
Users should use app.quit which can shutdown the application gracefuly.
2014-04-10 15:08:14 +08:00
Cheng Zhao
5ead4f655a
Bump v0.11.7.
2014-04-08 06:50:40 +00:00
Cheng Zhao
b975d4c41f
Detect unresponsive window when quitting.
...
Preivously this is disabled because quitting multiple windows could
bring up the unresponsive dialog, but since we now have increased the
unresponsive time limitto 5s, this is not needed anymore and could cause
confusions.
Fixes #17 .
2014-04-08 14:24:44 +08:00
Cheng Zhao
d7a54cf3a6
Add API to execute javascript in devtools.
2014-04-08 12:50:12 +08:00
Cheng Zhao
a50d3bde5c
gtk: Connect to window-state-event, fixes #226 .
2014-04-08 09:32:44 +08:00
Cheng Zhao
7f496f1994
Bump v0.11.6.
2014-04-07 09:21:02 +00:00
Cheng Zhao
395eb067d1
mac: Do not destroy window immediately.
...
Fixes atom/atom#1841 .
2014-04-07 17:20:08 +08:00
Cheng Zhao
98fcc93862
💄 Remove unsed constant.
2014-04-07 17:12:24 +08:00
Cheng Zhao
b21e5a6300
Fix capturePage under accelerated mode, fixes #223 .
2014-04-07 15:43:15 +08:00
Cheng Zhao
ac11c95da6
Increase the closing time limit to 5s.
...
Fixes https://github.com/atom/atom/issues/1838 .
2014-04-06 13:16:14 +08:00
Cheng Zhao
5bbf749693
gtk: Handle accelerators after renderer handled them.
...
The key-press signal captured the key events before renderer handles,
which violated the behavior on OS X and Windows.
Fixes #221 .
2014-04-05 19:21:18 +08:00
Cheng Zhao
3d518c2105
gtk: Do not access clipboard in renderer process.
2014-04-05 14:49:59 +08:00
Cheng Zhao
ff88535cd5
💄 Fix cpplint warning build/include_what_you_use.
2014-04-05 11:00:35 +08:00
Cheng Zhao
7a38307d1f
Use dialog API to override file chooser dialog in web inspector.
2014-04-05 10:24:46 +08:00
Cheng Zhao
877277d837
Enable writing files in devtools.
2014-04-05 09:22:25 +08:00
Cheng Zhao
d4e7fe3eb8
Correctly translate WebInspector menu to native menu.
2014-04-04 22:37:34 +08:00
Cheng Zhao
03e6d564d7
Make remote.getCurrentWindow work for devtools.
2014-04-04 22:28:47 +08:00
Cheng Zhao
f5fc26d8fc
Enable getting a window according to its attached devtools.
2014-04-04 22:28:18 +08:00
Cheng Zhao
86ebd6e8e3
Allow sending ipc messages to devtools.
2014-04-04 22:05:43 +08:00
Cheng Zhao
a80fe40f56
Synchronous event should be bound to WebContents.
...
This allows us to reply to synchronous message for arbitrary
WebContents.
2014-04-04 22:04:42 +08:00
Cheng Zhao
b1f0c2d174
Override web inspector's context menu.
2014-04-03 20:54:42 +08:00
Cheng Zhao
ac794c8085
Enable intercepting devtools window.
2014-04-03 20:20:42 +08:00
Cheng Zhao
663ab8e0bf
💄 Fix cpplint warning.
2014-04-02 14:23:38 +08:00
Cheng Zhao
d2162bf9f4
Bump v0.11.5.
2014-04-02 09:59:21 +08:00
Cheng Zhao
a3e1fa3350
gtk: Consider window frame in SetSize.
2014-03-29 16:07:44 +08:00
Cheng Zhao
bf6fb3872e
gtk: Do some guess of window border size according to window manager.
2014-03-29 14:18:47 +08:00
Cheng Zhao
84307dd329
gtk: Fix crash when calling GetSize() for hidden window.
2014-03-29 14:08:25 +08:00
Cheng Zhao
7e7f0888e5
gtk: Force size allocation in window, fixes #219 .
2014-03-28 16:01:38 +08:00
Cheng Zhao
5a837f5850
gtk: Detect rare conditions when resizing.
2014-03-27 21:03:27 +08:00
Cheng Zhao
d3e6166de6
gtk: Should remove self from watcher list in destructor.
2014-03-27 18:05:28 +08:00
Cheng Zhao
c6f0968d17
gtk: Do not count menubar in work area size on Unity.
2014-03-27 17:55:28 +08:00
Cheng Zhao
abea550a4d
Bump v0.11.4.
2014-03-26 02:16:32 +00:00
Cheng Zhao
d7261073e7
Free window object immediately in destory().
...
This put everything back to the original design, since now it's not
possible to destory a window while a context menu is showing.
2014-03-26 09:58:40 +08:00
Cheng Zhao
01a9ac21a5
Increase unresponsive time to 2s when closing.
...
Fixes https://github.com/atom/atom/issues/1793 .
2014-03-26 09:40:53 +08:00
Cheng Zhao
8b41e78245
Fix a possible crash when destroying window.
...
It could happend that the JS BrowserWindow object being double deleted
when calling the destroy() method.
2014-03-26 09:14:05 +08:00
Cheng Zhao
9ab3b5293c
Bump v0.11.3.
2014-03-25 10:18:53 +00:00
Cheng Zhao
7a83b16cc4
Delay the unresponsive event shortly.
...
It could happen that a window became responsive immediately after the
unresponsive message is sent, like after showing a context menu
synchronously.
2014-03-25 18:10:51 +08:00
Cheng Zhao
679959eeb5
BrowserWindow.destroy() should not delete window immediately.
...
It could cause crash when context menu is showing.
2014-03-25 17:00:03 +08:00
Cheng Zhao
e96a3abdf9
mac: Do not allow nested task when showing menu.
...
Fixes #163 .
2014-03-25 16:56:02 +08:00
Cheng Zhao
788ed588c9
Bump v0.11.2.
2014-03-21 07:04:55 +00:00
Cheng Zhao
35229255bb
gtk: Ask whether window is active from WM.
...
It could happpen that the WM thinks a window is active but it's actually not,
like when showing a context menu. In most cases we should follow what WM
says to keep consistent bevaviour on all platforms.
2014-03-20 17:47:38 +08:00
Cheng Zhao
f4b648385c
Close devtools completely instead of hiding it.
...
Fixes https://github.com/atom/atom/issues/1764 .
2014-03-20 09:32:00 +08:00
Cheng Zhao
f7854e0b4c
Bump v0.11.1.
2014-03-15 09:33:15 -07:00
Cheng Zhao
630e1b54e8
gtk: Fix BrowserWindow::HasModalDialog.
2014-03-18 14:52:45 +08:00
Cheng Zhao
239f061ffd
Bump v0.11.0.
2014-03-16 19:06:46 +08:00
Cheng Zhao
e3434b5cde
Fix the location default_app is copied to.
2014-03-16 15:19:09 +08:00
Cheng Zhao
5dd5f18edf
Fix process.resourcesPath.
2014-03-16 13:24:25 +08:00
Cheng Zhao
b6ac06c022
Order header files.
2014-03-16 09:37:04 +08:00
Cheng Zhao
2d808d30a2
Bring back build/include_order cpplint.
2014-03-16 09:13:06 +08:00
Cheng Zhao
bbef33a33a
Bring back build/header_guard cpplint.
2014-03-16 08:58:59 +08:00
Cheng Zhao
68cb6ee861
Move atom/browser/ui/gtk to chrome/.
2014-03-16 08:39:43 +08:00
Cheng Zhao
516d46444d
Move all sources under atom/.
2014-03-16 08:30:26 +08:00