Robo
f8f3fba433
webview: allow setting background color
2016-03-14 15:01:36 +05:30
Robo
8378cbb1e8
webcontents: provide position of match with found-in-page event
2016-03-14 06:49:45 +05:30
Cheng Zhao
6aec1e6949
Merge pull request #4714 from atom/chrome49
...
Upgrade to Chrome 49
2016-03-11 21:39:52 +09:00
Cheng Zhao
03ec5ced05
Merge pull request #4751 from maxbeatty/window-blur
...
Add blur method to window
2016-03-11 19:15:51 +09:00
Max Beatty
704b8335aa
Add blur method to window ref #4724
2016-03-10 21:45:51 -08:00
Arek Sredzki
c1267b2320
Added 'show' & 'hide' events to browser-window, fixed visibilitychange event in renderer
2016-03-10 13:51:31 -08:00
Cheng Zhao
5fae63a2f5
Fix compilation errors on OS X
2016-03-10 17:06:21 +09:00
Paul Betts
4503aafe64
int32 => int32_t
2016-03-10 17:06:21 +09:00
Kevin Sawicki
70aa9b06ee
Move JavaScript to root lib/ folder
2016-03-08 11:14:21 -08:00
Cheng Zhao
549cccfce4
Merge pull request #4715 from dongjoon-hyun/fix_typos_in_comments
...
Fix typos in comments.
2016-03-08 19:45:05 +09:00
Dongjoon Hyun
0c92d44077
Fix typos in comments.
2016-03-07 20:22:03 -08:00
Machisté N. Quintana
03434f45bb
Map webContents.delete to role
2016-03-07 15:50:33 -08:00
Cheng Zhao
0e2ac2d802
Merge pull request #4646 from phamdaniel/dark-mode
...
Add API to check OSX's Dark theme
2016-03-07 09:53:03 +09:00
Daniel Pham
68b453770b
🍎 Rename 'isDarkModeEnabled' to 'isDarkMode'
2016-03-06 10:55:47 -05:00
Cheng Zhao
c0b87c1a62
Merge pull request #4656 from princejwesley/menu-item-click
...
Add platform predicate for menu item action
2016-03-05 21:13:59 +09:00
Cheng Zhao
23b92ef9ec
Fix passing certificate to select-client-certificate's callback
2016-03-05 18:57:46 +09:00
Daniel Pham
63294892f0
Rename dark-mode-changed to platform-theme-changed
2016-03-03 23:58:58 -05:00
Prince J Wesley
f02affbc18
🐛 Add platform predicate for menu item action
2016-03-03 08:38:32 +05:30
Daniel Pham
c4049cb393
🍎 Add 'dark-mode-changed' event to app api
2016-03-01 15:43:38 -05:00
Daniel Pham
eaac67ac60
🍎 Add 'isDarkModeEnabled' to app api
2016-03-01 13:12:21 -05:00
Cheng Zhao
7de97a55f7
Merge pull request #4609 from MaxWhere/framesubscriber-fix
...
🐎 framesubscriber speed and quality improvement
2016-02-26 23:21:42 +08:00
Cheng Zhao
b25c8ca621
Merge pull request #4616 from deepak1556/media_device_enumeration_patch
...
browser: allow enumeration of media device labels
2016-02-26 22:07:35 +08:00
Robo
fce641aab6
browser: allow enumeration of media device labels
2016-02-26 16:31:20 +05:30
Heilig Benedek
4bfa03e5f4
Removed an include no longer needed
2016-02-26 02:13:17 +01:00
Heilig Benedek
3f0d598a59
Merge atom/master
2016-02-26 02:05:57 +01:00
Robo
1235907835
run webframe methods for webview in its context
2016-02-26 05:14:45 +05:30
Heilig Benedek
9a0372b61b
Removed size_ since it's not needed anymore
2016-02-25 23:48:58 +01:00
Robo
8386baf267
add spec
2016-02-25 11:46:30 +05:30
Robo
a734326907
track async api requests
2016-02-25 11:45:59 +05:30
Robo
2b547bd44a
webContents: provide responses for executeJavscript method
2016-02-25 11:45:59 +05:30
Robo
6fcc197db8
webview: api to get webcontents and associated host webcontents
2016-02-24 11:55:15 +05:30
Cheng Zhao
96b2705bd3
Fix render-view-deleted being emitted twice
2016-02-22 15:24:19 +08:00
Cheng Zhao
6753fcc1b4
Get rid of the ATOM_BROWSER_RELEASE_RENDER_VIEW event
2016-02-22 15:24:19 +08:00
Dongjoon Hyun
078c7bf8ab
Rename constant PERSIST_PERFIX
to PERSIST_PREFIX
in session.js
.
2016-02-21 00:16:53 -08:00
Heilig Benedek
2610aa60e9
🎨 lint fix
2016-02-18 01:19:41 +01:00
Heilig Benedek
7bf17f2541
Improved frame subscriber - now we only use framesubscription events as an event, and we copy from the backing store directly (instead of accessing it through a videoframe)
2016-02-18 01:15:00 +01:00
Cheng Zhao
66bb6a8534
Use weak pointer instead of manual bookkeeping
2016-02-16 10:44:10 +08:00
Cheng Zhao
1232a285e6
Merge pull request #4451 from MaxWhere/framesubscriber-fix
...
Fixing FrameSubscriber memory issue
2016-02-16 10:20:44 +08:00
Cheng Zhao
08e5c1f6fe
Merge branch 'webcontent_invalid_loadurl_patch' of https://github.com/deepak1556/atom-shell into deepak1556-webcontent_invalid_loadurl_patch
2016-02-15 21:14:54 +08:00
Cheng Zhao
18f31d7db9
Merge pull request #4398 from LartSimZ/master
...
Fix for issue #4369
2016-02-15 15:30:06 +07:00
Heilig Benedek
f36e2841bf
Don't fire callbacks after we end the subscription
2016-02-12 13:30:11 +01:00
Heilig Benedek
91c96559fa
Fixing the problem related to FrameSubscriber
2016-02-12 02:18:13 +01:00
Kevin Sawicki
704bd4d191
Improve error message
2016-02-11 13:25:58 -08:00
Kevin Sawicki
c94f1fc857
Throw error when IPC channel is missing
2016-02-11 13:25:58 -08:00
Kevin Sawicki
55d4db1387
🎨
2016-02-11 13:25:57 -08:00
Robo
5a8bebc2f8
browser: emit did-fail-load for invalid url
2016-02-12 01:52:42 +05:30
Kevin Sawicki
7da4c3acf7
Use const for util require
2016-02-09 14:54:18 -08:00
Kevin Sawicki
6617592224
Remove lint errors
2016-02-09 14:54:18 -08:00
Kevin Sawicki
c842ca1f12
Don't use ES6 class for AutoUpdater windows class
2016-02-09 14:54:17 -08:00
Michael Vasseur
702455674b
Using node::Buffer::Copy() instead of node::Buffer::New() to copy the handle bytes to buffer make the buffer really contains the data.
2016-02-07 10:20:38 +01:00
Cheng Zhao
50d69fd9bb
Get rid of SavePathData
2016-02-02 20:11:39 +08:00
Cheng Zhao
eaa60e9c17
Destroy the item once item is downloaded
2016-02-02 19:54:41 +08:00
Cheng Zhao
12d311fd29
Gracefully destroy downloadItem
2016-02-02 19:52:09 +08:00
Cheng Zhao
65cf85808f
Calling cancel() should destroy the downloadItem
2016-02-02 19:05:58 +08:00
Cheng Zhao
f1f91828ba
Rely on OnDownloadDestroyed to destroy downloadItem
2016-02-02 18:49:43 +08:00
Cheng Zhao
f624800881
Merge pull request #4314 from deepak1556/download_cancel_patch
...
fix crash when default download is canceled
2016-02-02 18:40:44 +08:00
Robo
2819af9586
fix lifetime of downloadItem class when defaultdownload canceled
2016-02-02 15:54:51 +05:30
Robo
ce2ea963b9
session: api to clear host resolver cache
2016-02-02 02:06:49 +05:30
Robo
045e42a10c
fix crash when default download is canceled
2016-02-02 00:26:37 +05:30
Cheng Zhao
69f93a7528
Merge pull request #4223 from deepak1556/notification_disable_patch
...
session: add setPermissionRequestHandler api
2016-02-01 20:51:22 +08:00
Robo
ff5fb512b8
use mediastreamdevicescontroller from brightray to enumerate available devices
2016-02-01 17:45:53 +05:30
Robo
b575cd0ef9
add fullscreen permission type
2016-02-01 16:22:05 +05:30
Robo
45eada306f
add pointerlock permission type
2016-02-01 15:13:49 +05:30
Cheng Zhao
e450d1586e
Merge pull request #4288 from MaxWhere/master
...
Adding cursor-changed event to webContents
2016-02-01 17:03:16 +08:00
Robo
db26dcaf4c
expose handler from session and remove permission-request event
2016-02-01 12:23:51 +05:30
Heilig Benedek
745253a369
Quick fix for the memory leak + docs
2016-02-01 07:17:58 +01:00
Cheng Zhao
457c7f55e6
Merge pull request #4271 from thingsinjars/master
...
🍎 Add 'Hide' to App API for OS X only
2016-02-01 12:54:07 +08:00
Robo
04c3e083fb
remove unnecessary getter
2016-02-01 00:43:29 +05:30
Heilig Benedek
066c189249
Renamed some cursor types to their CSS names and added a way to handle custom cursors properly.
2016-01-31 17:00:14 +01:00
Heilig Benedek
61e0219e91
Added documentation, restructured the files to fit better with electron's style and fixed a typo in keyboard_util's name.
2016-01-31 02:27:14 +01:00
Simon Madine
f9efdc4435
🍎 Add Show to API for OS X
2016-01-30 22:30:38 +01:00
Robo
f7556de9fb
add spec for new permissions
2016-01-30 19:10:52 +05:30
Robo
2a278ceb8f
delegate to permission manager for other permissions
2016-01-30 16:49:18 +05:30
Heilig Benedek
0c9174bc7c
Introduced the cursor-changed event with one parameter - the name of the cursor type
2016-01-30 06:33:55 +01:00
Cheng Zhao
5d16257c2d
Fix "Object has been destroyed" error in "page-title-updated" event
...
Close #4249 .
2016-01-30 12:20:28 +08:00
Simon Madine
6a643ec3c8
Only add Hide if OS_X is defined
2016-01-29 22:51:06 +01:00
Simon Madine
7a370ccd0f
🍎 Add 'Hide' to App API for OS X only
2016-01-29 16:09:54 +01:00
Robo
85e13333c3
webview: add permission-request event
2016-01-29 15:23:28 +05:30
Paul P
cbf11f38ca
remove unused variable
2016-01-26 14:55:31 +00:00
Paul P
864449db89
prevent assignment to constant variable (url)
2016-01-26 14:44:46 +00:00
Cheng Zhao
059d97e1aa
Merge pull request #4181 from bengotow/scroll-touch-events
...
Extend NativeWindow to track touch-based scroll events on OS X
2016-01-25 14:47:54 +08:00
Cheng Zhao
253a4f226f
Merge pull request #4211 from ragingwind/dock-seticon
...
Add app.dock.setIcon to change icon of dock
2016-01-24 22:36:28 +08:00
Cheng Zhao
e1e58b642e
Merge pull request #4182 from deepak1556/debugger_api_patch
...
browser: add webContents.debugger api
2016-01-24 21:43:18 +08:00
Cheng Zhao
5372b6cd91
Fullscreenable => FullScreenable
2016-01-24 14:31:36 +08:00
ragingwind
7229d2462a
Add app.dock.setIcon to change icon of dock
2016-01-24 08:30:14 +09:00
Cheng Zhao
31624995bc
Merge pull request #4202 from evgenyzinoviev/shadow-pr
...
Added hasShadow option to BrowserWindow on OS X
2016-01-22 23:56:38 -08:00
Cheng Zhao
8cabe0f008
Merge pull request #4156 from evgenyzinoviev/windows-pr
...
Improvements in BrowserWindow
2016-01-22 23:42:41 -08:00
Robo
d938dd68b0
wrap debugger for lazy initialization
2016-01-23 09:32:21 +05:30
evgenyzinoviev
ff41b4a267
added hasShadow option to BrowserWindow (osx)
2016-01-23 01:16:08 +01:00
evgenyzinoviev
ef51e4e108
maximizable and fullscreenable
2016-01-22 23:21:46 +01:00
Cheng Zhao
984462be44
Remove Menu::Popup
2016-01-22 11:59:08 -07:00
Cheng Zhao
ca77c95c6d
No more need to override Menu::Popup
2016-01-22 11:27:17 -07:00
Cheng Zhao
0e3a3d0748
views: Remove PopupAtPoint
2016-01-22 11:25:16 -07:00
Cheng Zhao
5f195a789a
mac: Remove duplicate code of Popup
2016-01-22 11:17:12 -07:00
Cheng Zhao
360266ba5b
positioningItem => positioning_item
2016-01-22 10:51:51 -07:00
Cheng Zhao
ea9b0cfed0
Merge pull request #4192 from evgenyzinoviev/menu-pr
...
Menu.popup: specify positioning item (OS X)
2016-01-22 10:49:17 -07:00
Robo
3a60ab386c
add spec
2016-01-22 19:10:48 +05:30
Robo
df5bad3f89
fix api and docs
2016-01-22 10:27:25 +05:30
evgenyzinoviev
072ab0ddea
specify positioning item for popup menus
2016-01-22 03:18:27 +01:00
Ben Gotow
d492ff45d5
Rename up/down => begin/end
2016-01-21 16:31:09 -08:00
Robo
0e2323c9c8
browser: add webContents.debugger api
2016-01-21 23:52:23 +05:30
Ben Gotow
bd2252ea55
Extend NativeWindow to track touch-based scroll events on OS X
...
In N1, we want to implement the famous "swipe to archive" action on threads in the user's inbox. Chrome exposes `scroll` and `wheel` events, but these aren't sufficient to implement the interaction because the element needs to "snap" when the user lifts their fingers from the trackpad, not when they / we stop receiving `wheel` / `scroll` events. These events may stop before the user lifts their fingers, or continue after the user has lifted their fingers if they had enough momentum for the gesture to continue.
This exposes BrowserWindow `scroll-touch-down` and `scroll-touch-up`, which fire immeditaely when the user touches two fingers to the trackpad, and again when the user lifts their fingers. Combined with the existing wheel event should allow for "swipe-to-archive" and other similar interactions.
Note: This is only implemented on Mac OS X and the events don't fire unless you're using a trackpad!
Related: #1486 , #2683 , https://github.com/nylas/N1/issues/541
2016-01-21 09:40:21 -08:00
Kevin Sawicki
70bcb0ac5a
Clean up no-unused-vars lint errors
2016-01-21 09:32:21 -07:00
evgenyzinoviev
2a554cb138
added or/and improved closable, minimizable, movable, resizable features for windows on os x and windows
2016-01-19 16:14:57 +01:00
Cheng Zhao
775e475d5c
Merge pull request #4131 from etiktin/add_is_DWM_enabled
...
Add API for checking if DWM composition (Aero Glass) is enabled
2016-01-16 14:16:22 +08:00
Cheng Zhao
25afcf2673
Merge pull request #4121 from atom/format-coffee-helpers
...
Format leftover CoffeeScript helpers
2016-01-16 13:24:26 +08:00
Eran Tiktin
83b36ce40b
Add API for checking if AeroGlass/DWM is enabled
...
Resolves #1020
2016-01-16 06:27:44 +02:00
Cheng Zhao
712f11a9a3
Merge pull request #4112 from evgenyzinoviev/resize-animate-pr
...
Animate window resizing on OS X
2016-01-16 12:12:00 +08:00
Kevin Sawicki
02f055b784
Use ES6 style class
2016-01-15 14:12:57 -08:00
Kevin Sawicki
34030d7b2b
Use util.inherits instead of CoffeeScript's extend function
2016-01-15 10:17:45 -08:00
Kevin Sawicki
2833db78ad
Use [].inclues where appropriate
2016-01-15 10:17:45 -08:00
Kevin Sawicki
c2d473cf65
Remove unneeded [].indexOf fallback
2016-01-15 10:17:45 -08:00
evgenyzinoviev
b75dccb0be
arguments handing rewritten, doc updated
2016-01-15 17:31:31 +01:00
Cheng Zhao
9ccc7ee30d
Small ajustments on lifetime of webContents
2016-01-15 16:36:35 +08:00
Cheng Zhao
c10c419f1d
No need to call sender.callbacks.remove
...
The IDWeakMap automatically removes the key when object is garbage
collected.
2016-01-15 16:36:35 +08:00
evgenyzinoviev
2598b00b41
Animate window resizing on OS X
2016-01-15 05:59:58 +01:00
Jessica Lord
003de0debe
Clean up variable declarations
2016-01-14 18:07:29 -08:00
Jessica Lord
ae2893ceaa
Inline var
2016-01-14 15:44:33 -08:00
Jessica Lord
3a0fb42737
Use const
2016-01-14 14:33:45 -08:00
Jessica Lord
9103253f62
Use const
2016-01-14 14:26:10 -08:00
Kevin Sawicki
030d2a843c
Remove extra newlines around comments
2016-01-14 11:10:12 -08:00
Kevin Sawicki
990dc30e8d
Use // for multi-line comments
2016-01-14 10:44:21 -08:00
Kevin Sawicki
f4af744519
Use // for single line comments
2016-01-14 10:35:29 -08:00
Cheng Zhao
26350f4ccb
GetHttpCacheInIO => DoCacheActionInIO
2016-01-14 20:48:14 +08:00
Robo
10e4698baa
session: api to get current cache size
2016-01-14 17:15:45 +05:30
Cheng Zhao
489539d62e
Merge pull request #4071 from deepak1556/session_flush_data_patch
...
session: api to flush DOMStorage data
2016-01-13 16:18:37 +08:00
Cheng Zhao
44b8343585
Fix crash when closing page with webview
2016-01-13 14:47:39 +08:00
Cheng Zhao
af02739c4e
Change webview's zoom level on JavaScript side
2016-01-13 12:50:02 +08:00
Cheng Zhao
350c572a8c
Handle default parameter of executeJavaScript in C++
2016-01-13 12:17:56 +08:00
Cheng Zhao
55dfddba77
Handle executeJavaScript in JavaScript
2016-01-13 12:11:46 +08:00
Cheng Zhao
5b7d1a9890
Add insertText to WebContents
2016-01-13 11:55:49 +08:00
Robo
8433d94cac
session: api to flush DOMStorage data
2016-01-13 08:56:00 +05:30
Kevin Sawicki
ab73f4c94a
Copy JS files to tempdir before packing asar
2016-01-12 16:24:06 -08:00
Kevin Sawicki
1f9691ae13
Convert all source files to JavaScript
2016-01-12 16:24:06 -08:00
Kevin Sawicki
403870a27e
Migrate to block comments
2016-01-12 16:22:34 -08:00
Cheng Zhao
eb63e6b9a7
Destroy the native class when webContents is destroyed
2016-01-12 21:10:24 +08:00
Cheng Zhao
9e82334b67
Merge pull request #4057 from princejwesley/browser-window
...
Return null for no focused window when calling BrowserWindow.getFocusedWindow
2016-01-11 22:53:38 +08:00
Cheng Zhao
192fa4c86b
Cleanup docs and code of setProxy
2016-01-11 22:45:34 +08:00
Cheng Zhao
34c9279fc5
Merge pull request #4046 from deepak1556/session_proxy_patch
...
session: allow user to isolate pac script and proxy bypass rules
2016-01-11 21:49:15 +08:00
Cheng Zhao
26bd97d6cf
Fix style issues of #4029
2016-01-11 21:12:07 +08:00
Cheng Zhao
edcd34d4ce
Merge pull request #4029 from leethomas/show-message-box-default-button
...
Show message box default button
2016-01-11 20:58:03 +08:00
Cheng Zhao
91ca84d106
Merge pull request #4050 from etiktin/cosmetic
...
Remove unneeded extra semicolons (;; -> ;)
2016-01-11 15:41:06 +08:00
Prince J Wesley
018ae5189b
Return null for no focused window when calling BrowserWindow.getFocusedWindow()
2016-01-11 12:58:44 +05:30
Robo
8557cd223c
maintain api compatibility
2016-01-11 12:24:01 +05:30
Cheng Zhao
1944472c2f
docs: Make win.getNativeWindowHandle more clear
2016-01-11 13:43:24 +08:00
leethomas
fee301e768
follow style guidelines
2016-01-10 19:15:40 -08:00
Eran Tiktin
29939dc0b7
Remove unneeded extra semicolons (;; -> ;)
2016-01-11 02:11:40 +02:00
leethomas
ae5c6add11
rename all references to default_button_index -> default_id to keep consistent with cancel_id
2016-01-10 15:33:27 -08:00
Robo
be50ca2653
session: allow user to isolate pac script and proxy bypass rules
2016-01-11 03:55:56 +05:30
leethomas
dfce803045
🏁 update windows message_box function signatures to accept default_button_index....and do nothing with it
2016-01-08 08:23:06 -08:00