Cheng Zhao
767c235708
Fix compilation error
2016-05-07 10:38:41 +09:00
Kevin Sawicki
ef459c7676
Remove support for options now on webPreferences
2016-05-06 10:12:56 -07:00
Kevin Sawicki
4cb620c195
Remove support for translating hyphenated options
2016-05-06 10:12:54 -07:00
Kevin Sawicki
6f0471f6cb
Remove deprecated options check in BrowserWindow
2016-05-06 10:12:53 -07:00
Cheng Zhao
60d2cb8a84
Remove the isolate parameter of GetWrapper
2016-04-25 10:19:25 +09:00
Cheng Zhao
2ae52d0ff4
Make Wrappable a template class
2016-04-25 10:17:54 +09:00
Ben Gotow
414245f4d8
Keep function placement consistent
2016-04-18 22:45:38 -07:00
Ben Gotow
8f89cd2d59
Move "setSheetOffset" to the BrowserWindow
2016-04-18 22:39:12 -07:00
Cheng Zhao
cb470cb94b
Use BrowserWindow's backgroundColor as renderer view's background color
2016-04-02 20:46:50 +09:00
Cheng Zhao
0e3737423b
Merge pull request #4843 from jwheare/mac-swipe-events
...
OSX: Expose 3-finger swipe events in browser-window
2016-03-31 10:37:27 +09:00
James Wheare
8482109dea
Switch to a single OS X swipe event with a direction argument
2016-03-23 15:20:11 +00:00
Kevin Sawicki
6aa452cda4
Set _setDeprecatedOptionsCheck on exports
2016-03-18 09:06:03 -07:00
James Wheare
03319a5426
OSX: Capture 3-finger swipe events in NativeWindow
2016-03-18 15:21:19 +00:00
Kevin Sawicki
c31882749d
Correct typos in comments
2016-03-17 13:37:08 -07:00
Kevin Sawicki
15397bf879
Report deprecated BrowserWindow options
2016-03-17 13:37:07 -07: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
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
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
5372b6cd91
Fullscreenable => FullScreenable
2016-01-24 14:31:36 +08: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
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
Ben Gotow
d492ff45d5
Rename up/down => begin/end
2016-01-21 16:31:09 -08:00
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
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
evgenyzinoviev
b75dccb0be
arguments handing rewritten, doc updated
2016-01-15 17:31:31 +01:00
evgenyzinoviev
2598b00b41
Animate window resizing on OS X
2016-01-15 05:59:58 +01:00
Cheng Zhao
1944472c2f
docs: Make win.getNativeWindowHandle more clear
2016-01-11 13:43:24 +08:00
Omri Litov
943e46f3bd
Fix linux and mac build errors
2016-01-08 00:27:53 +02:00
Omri Litov
3f0c007578
Added getNativeWindowHandle
2016-01-07 22:38:35 +02:00
Cheng Zhao
14db4a1946
Add isDevToolsFocused to webview
2016-01-04 10:46:30 +08:00
billyct
5f092a6c65
support an api with SetIgnoreMouseEvents, and worked fine with osx
2015-12-06 10:14:54 +08:00
Cheng Zhao
973ae06f21
Destroy the native window in next tick
...
It fixes a possible crash when native code is iterating all windows
while the JavaScript code decides to destroy a window.
2015-12-04 11:35:04 +08:00
Cheng Zhao
6795bd1d96
Do not manually manage native resources
...
We should rely on the destructor to cleanup everything, instead of
putting them in the Destroy method.
2015-12-03 15:38:43 +08:00
Cheng Zhao
8d20dda6d7
No need to override TitleWasSet in NativeWindow
2015-12-01 17:51:09 +08:00
Eran Tiktin
18de28c3ff
Make BrowserWindow options argument optional
...
Resolves #3473
2015-11-21 06:22:19 +02:00
Cheng Zhao
9a20b33d97
Add isDestroyed method for classes with destroy method
2015-11-19 17:08:16 +08:00
Cheng Zhao
860c46b3c1
Separate options from switches
...
On Windows the case sensitivity of command line switches are ignored, so
--nodeIntegraion will become --nodeintegration.
We should separate options from switches so we use "nodeIntegraion" in
options, while passing "--node-integration" in command line.
2015-11-13 14:05:49 +08:00
Cheng Zhao
960d325a58
Be compatible with old BrowserWindow options
2015-11-11 10:37:34 +08:00
Cheng Zhao
d37aa8bed9
Reorder switches
2015-11-11 10:37:34 +08:00
Cheng Zhao
917b33dbe7
Small code cleanup
2015-10-29 10:55:08 +08:00
Omri Litov
ef038257d1
Returns buffer instead of WPARAM and LPARAM
2015-10-29 03:00:44 +02:00
Omri Litov
f22837523f
Use WPARAM as uint64_t and LPARAM as int64_t
2015-10-28 21:54:50 +02:00
Cheng Zhao
b86267aa3b
Use uint64_t instead of LPARAM
...
LPARAM is defined to differnt types on differnt machines with different
SDKs, so there is no way to represent it on all platforms safely, using
uint64_t seems to be the only safe choice.
2015-10-28 19:51:24 +08:00
Cheng Zhao
5fd310c75f
Add converter for LPARAM
2015-10-28 19:43:05 +08:00
Omri Litov
e355532d27
Change windows messages api to hook instead of emitter
2015-10-27 14:00:08 +02:00
Omri Litov
edbebf84b9
Added browser-window event 'message'
2015-10-27 03:12:01 +02:00
Cheng Zhao
e36d455d51
Add setBackgroundColor method
2015-10-23 11:35:33 +08:00