Cheng Zhao
cb470cb94b
Use BrowserWindow's backgroundColor as renderer view's background color
2016-04-02 20:46:50 +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
James Wheare
03319a5426
OSX: Capture 3-finger swipe events in NativeWindow
2016-03-18 15:21:19 +00: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
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
239bfe970c
Make hasShadow work on Windows/Linux
2016-01-24 14:31:37 +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
Cheng Zhao
8cabe0f008
Merge pull request #4156 from evgenyzinoviev/windows-pr
...
Improvements in BrowserWindow
2016-01-22 23:42:41 -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
Cheng Zhao
21f5e27a5e
Merge pull request #4161 from gabriel/master
...
Support backgroundColor for window on mac
2016-01-21 15:42:21 -07:00
Gabriel Handford
239baa3e9a
Support backgroundColor for window on mac
2016-01-21 11:07:33 -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
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
8d20dda6d7
No need to override TitleWasSet in NativeWindow
2015-12-01 17:51:09 +08: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
Cheng Zhao
d092c6acc9
osx: Implement draggable region with mouseDownCanMoveWindow
...
Previously we implemented draggable region by tracking mouse position,
it is buggy and causing some problems. But it is interesting that until
this didn't cause troubles until recently.
2015-10-21 08:54:46 +08:00
Cheng Zhao
b70e7c6a4c
Remove default definition of ContentSizeToWindowSize
2015-10-06 00:39:16 +08:00
Cheng Zhao
8577f2b52f
osx: Add NativeWindow::SetSizeConstraints
2015-10-05 20:07:20 +08:00
Cheng Zhao
f2c7943d42
Add WebContents.getOwnerBrowserWindow
2015-10-01 13:45:59 +08:00
Cheng Zhao
83c514001e
Move devtools API to WebContents
2015-10-01 11:25:31 +08:00
Cheng Zhao
7884a2319c
osx: Make draggable region work for window with hidden titlebar
2015-09-25 16:38:36 +08:00
Cheng Zhao
86f523d3c1
Move BeginFrameSubscription to WebContents
2015-09-18 15:57:43 +08:00
Cheng Zhao
42863e4700
Move SendInputEvent to WebContents
2015-09-18 14:20:31 +08:00
Cheng Zhao
9e7de78231
Fix cpplint warnings
2015-09-18 14:12:48 +08:00
Cheng Zhao
c550546ff1
Do not manually convert Object to WebInputEvent
2015-09-18 14:09:31 +08:00
Cheng Zhao
d7bac5a10b
Remove the offscreen-render option
...
We are going to move the APIs to WebContents
2015-09-18 12:15:13 +08:00
Cheng Zhao
ee0d48dc5a
Merge branch 'master' of https://github.com/MaxWhere/electron into MaxWhere-master
2015-09-18 12:01:33 +08:00
Heilig Benedek
ceef06b344
Renamed setOffscreenRender to begin/endFrameSubscription because the name was a bit misleading, and replaced the ArrayBuffer creation with a node::Buffer::New call.
2015-09-16 02:59:16 +02:00
Cheng Zhao
b72a5884f2
Add BrowserWindow.isDevToolsFocused
2015-09-15 11:43:45 +08:00
Heilig Benedek
b2af370249
Changed StringArray options to regular js objects with boolean values for better readability from the js side
2015-09-10 02:10:47 +02:00
Cheng Zhao
342e0c6cf7
Remove dead code
2015-09-06 11:13:41 +08:00
Cheng Zhao
0b97d58a6f
Move a few options in NativeWindow to web-preferences
2015-09-06 10:53:03 +08:00
Cheng Zhao
880dce950d
Move OverrideWebkitPrefs to WebContentsPreferences
2015-09-06 10:53:03 +08:00
Cheng Zhao
45491ca7ab
Fix API changes
2015-09-03 17:50:23 +09:00
Heilig Benedek
dbcd0a4235
Key event sending update.
2015-09-02 02:33:40 +02:00
Heilig Benedek
3dd3fd9200
Merge branch 'master' of https://github.com/brenca/electron
...
Conflicts:
atom/browser/api/atom_api_window.h
atom/browser/native_window.cc
2015-08-31 18:46:29 +02:00
Heilig Benedek
c59c0bd5b3
Mouse event handling and keyboard event handling (not totally working yet)
2015-08-31 18:32:33 +02:00
gellert
58081ca9e9
setOffscreenRender and api docs added
2015-08-29 00:45:00 +02:00
Heilig Benedek
e4c01f3187
Offscreen render support base
2015-08-27 11:22:39 +02: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
58b1172025
Avoid exposing data members to subclass
2015-08-05 12:46:32 +08:00
Cheng Zhao
58c0486236
Remove duplicate UpdateDraggableRegions
2015-08-05 12:32:22 +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
10faf314d4
fix line length issue
2015-07-16 14:26:48 -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
637b642837
Fix building on Windows
2015-06-26 12:04:15 +08:00
Cheng Zhao
9f52b11761
Remove NativeWindow::GetWebContents
2015-06-25 14:54:00 +08:00
Cheng Zhao
62c44ee47b
Rename CloseWebContents to RequestToClosePage
2015-06-25 13:27:51 +08:00
Cheng Zhao
e41b0d4d2c
Remove NativeWindow::ActivateContents
2015-06-25 13:18:36 +08:00
Cheng Zhao
afa9f30aac
Add InspectableWebContentsViewDelegate
2015-06-25 12:30:04 +08: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
2bfa9da82e
Store NativeWindow's weak ptr in WebContents
2015-06-24 22:14:46 +08:00
Cheng Zhao
87f44c42df
Handle close cancel in BeforeUnloadDialogCancelled
2015-06-24 21:28:36 +08:00
Cheng Zhao
b822a83bc2
Remove usages of NotificationObserver
2015-06-24 20:16:51 +08:00
Cheng Zhao
7d05a12ee9
Remove ActivateContents and DeactivateContents
2015-06-24 20:10:07 +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
6e099af5fe
Move PDF printing setting in JS part.
2015-06-16 20:07:43 +08:00
Haojian Wu
c0a6cb69bf
Move printToPDF API to WebContents.
...
Also expose in webview.
2015-06-16 20:06:52 +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
8f9a109fa6
Implement HTML5 fullscreen in CommonWebContentsDelegate
2015-06-05 17:27:24 +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
d9efc3b4bf
Move more methods to CommonWebContentsDelegate
2015-06-05 15:12:38 +08:00
Cheng Zhao
92b15c81e9
Manage InspectableWebContents in CommonWebContentsDelegate
2015-06-05 14:55:07 +08:00
Cheng Zhao
19d742de37
Add CommonWebContentsDelegate
2015-06-05 13:49:24 +08:00
Cheng Zhao
7f7cdbf775
Remove NativeWindow::CallDevToolsFunction
2015-06-05 13:32:01 +08:00
deepak1556
790fba598e
devtools: supporting workspace usage
2015-06-05 01:06:53 +05:30
Cheng Zhao
d4be2da70e
Don't rely on process_id to search for NativeWindow
2015-06-03 14:08:56 +08:00
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
deepak1556
9a60fde59b
alias move and moved event on OS X
2015-05-22 12:24:12 +05:30
deepak1556
3a5977e09f
window: adding resize and move events
2015-05-22 12:13:00 +05:30
deepak1556
e8a02316ce
also emit html fullscreen notification on windows when its webview contents trigger it
2015-05-21 10:41:53 +05:30
deepak1556
0dcf061dc1
check if window is html or forced fullscreen
2015-05-21 10:16:11 +05:30
deepak1556
ddda8e4197
track html api triggered fullscreen separaely
2015-05-21 10:16:11 +05:30
Cheng Zhao
7c69c2846b
Simplify how we find NativeWindow from WebContents
2015-05-20 10:27:16 +08:00
deepak1556
9963ddc485
implement method on browser window
2015-05-18 20:08:08 +05:30
Cheng Zhao
0d4d2080ca
Implement size and position APIs with bounds API
2015-05-04 12:47:56 +08:00
deepak1556
9ae59e8ac7
removed move utility and replaced with setbounds
2015-05-01 20:10:46 +05:30
deepak1556
ae6a1b409f
window: adding setBounds and getBounds api
2015-05-01 16:20:53 +05:30
deepak1556
20b4cae980
window: supports HTML5 fullscreen api
2015-04-23 12:14:29 +05:30
Cheng Zhao
b37c73436b
Fix API changes
2015-04-21 18:56:08 +08:00
Robo
3aefa5f549
browserWindow: adding devtools-focused event
2015-04-02 12:23:57 +05:30
Cheng Zhao
3b1be743ef
Merge pull request #1309 from hokein/workspace-visible-api
...
Add workspace visible APIs
2015-03-29 20:37:07 +08:00