xaviergonz
e18cdc185a
add the fix for showinactive
2017-09-14 14:35:53 +09:00
xaviergonz
d0c91daaed
make sure setparentwindow only shows the window if already visible
2017-09-14 14:35:53 +09:00
xaviergonz
dc7cc6921e
fix for mac child windows so they honor show option
2017-09-14 14:35:53 +09:00
Cheng Zhao
a19a229a59
Merge pull request #10254 from zachflower/feature/simple-fullscreen-mode
...
Feature/simple fullscreen mode
2017-09-14 09:39:50 +09:00
Zachary Flower
432b912c6a
🎨 Rename ambiguous simple_fullscreen_ variable to always_simple_fullscreen_
2017-09-13 12:16:37 -06:00
Vanessa Yuen
9a7d8a0511
merge master into fix-fullscreen-with-resizable-flag.
2017-09-12 18:34:23 -04:00
Zachary Flower
fa4d52f042
🎨 Track/restore original stylemask, rather than individual states.
2017-09-12 12:27:30 -06:00
Cheng Zhao
10ab870237
Merge pull request #10321 from kaylanm/macos-native-tab-api
...
🍎 Add macOS native tab methods to window API
2017-09-11 18:49:56 +09:00
Samuel Attard
7ecac42214
Merge pull request #10232 from electron/drag-browser-view
...
Add -webkit-app-region support to BrowserView
2017-08-24 10:30:56 +10:00
Michael Kaylan
b4428e7e41
🍎 Add macOS native tab methods to window API
2017-08-21 23:24:30 -04:00
Cheng Zhao
9c552644d8
Fix compilation on mac
2017-08-17 16:47:12 +09:00
Felix Rieseberg
6191e6e787
🔧 Implement feedback
2017-08-15 16:14:58 -07:00
Aleksei Kuzmin
7a4ca08a8d
The Blink Rename
2017-08-15 16:19:20 +03:00
Zachary Flower
ba5fa2c8b1
Add support for simple (pre-Lion) fullscreen on Mac OS
2017-08-13 00:28:33 -06:00
Felix Rieseberg
7bfece1144
🔧 Make work with complex shapes
2017-08-09 15:21:58 -07:00
Felix Rieseberg
a5dfb09037
🔧 Draggable (using the window’s regions)
2017-08-09 15:21:58 -07:00
Kevin Sawicki
5581d1d652
Merge pull request #9788 from shubham2892/Add-option-to-show-title-text-in-titlebar-in-fullscreen
...
Add alwaysShowTitleTextInFullscreen flag
2017-07-14 11:58:12 -07:00
Kevin Sawicki
c4ffb91190
🎨
2017-07-14 11:49:40 -07:00
Kevin Sawicki
9102c07ec7
always_show_title_text_in_full_screen -> fullscreen_window_title
2017-07-14 11:48:10 -07:00
Kevin Sawicki
0a71a9b992
Merge pull request #9695 from shubham2892/alwaysOnTop-window-disappears-when-restored-fix
...
Fix an issue where alwaysOnTop window disappears when restore…
2017-07-14 10:09:13 -07:00
Kevin Sawicki
4935e8567f
Initialize level_ in initWithShell
2017-07-14 10:07:06 -07:00
Shubham
a38f0f5f46
rename alwaysShowTitleTextInFullscreen to fullscreenWindowTitle
2017-06-26 16:58:45 -04:00
Cheng Zhao
00d023cd71
Merge pull request #9725 from danielma/dma/native-tab-new-button
...
Add "New Tab" button for Native macOS Tabs
2017-06-26 15:07:10 +09:00
Shubham
1b8963ff6e
🍎 Fix full screen when resizable is set to true
2017-06-20 16:11:28 -04:00
Tony Ganch
471f6e0fa5
Fix invisible titlebar on macOS 10.13
2017-06-19 14:34:37 +02:00
Shubham
25c651c40a
add alwaysShowTitleTextInFullscreen flag
2017-06-17 20:45:29 -04:00
Shubham
12b90a2304
🐛 store current level fix
2017-06-15 18:05:58 -04:00
Daniel Ma
4fb9f825b1
Add "New Tab" button for Native macOS Tabs
...
Adds responders for `newWindowForTab` to `AtomApplicationDelegate` and
`NativeWindowMac`, so that `BrowserWindow`s with a `tabbingIdentifier`
will get the new tab button, and both `app` and `window` will emit a
`new-tab-for-window` event.
2017-06-11 02:26:26 -07:00
Shubham
373decd07e
🎨
2017-06-07 19:01:06 -04:00
Shubham
f001377493
🍎 Fix an issue where alwaysOnTop window disappears when restored from the application icon
2017-06-07 12:28:50 -04:00
Birunthan Mohanathas
391c07b80a
Simplify custom window button positioning
2017-06-07 03:33:33 +03:00
Birunthan Mohanathas
f60315141b
Remove unnecessary if check
2017-06-07 01:19:53 +03:00
Birunthan Mohanathas
3106478510
Rename SemaphoreView to CustomWindowButtonView
2017-06-07 01:18:22 +03:00
Kevin Sawicki
4989b21dbc
Autorelease semaphore view
2017-06-05 14:28:58 -07:00
Kevin Sawicki
3a2abde804
Add TODO for hidden-inset deprecation
2017-06-05 13:58:50 -07:00
Kevin Sawicki
de0daa2481
Autorelease tracking area
2017-06-05 13:48:30 -07:00
Kevin Sawicki
7d10bf229d
Switch to titleBarStyle for custom window buttons on hover
2017-06-05 13:30:32 -07:00
Kevin Sawicki
566e04f1c0
🎨
2017-06-05 13:13:16 -07:00
Kevin Sawicki
37ba1b0a6b
Declare mouse inside variable in interface
2017-06-05 12:55:39 -07:00
Kevin Sawicki
1493d6763c
Make custom window buttons an option
2017-06-05 12:50:18 -07:00
Kevin Sawicki
2880cfdc9c
🎨 Minor formatting tweaks
2017-06-05 11:08:05 -07:00
mst128256
96251e55de
Removed commented code
2017-06-05 10:41:52 -07:00
mst128256
9b4664daa5
Area near the top border in frameless window is clickable
2017-06-05 10:41:52 -07:00
gellert
039908a244
various fixes for macos
2017-05-23 11:41:59 +02:00
gellert
062b1ed43e
moves createviewfordwidget method to osrrwhv
2017-05-10 22:19:05 +02:00
Cheng Zhao
6be10ffef2
Fix more API changes due to name changes
2017-04-27 16:34:52 +09:00
Yuya Ochiai
75184046f6
Add events to manage sheets of macOS BrowserWindow
2017-04-15 16:26:45 +09:00
Birunthan Mohanathas
8b9f7e5b00
Implement initial, experimental BrowserView API
...
Right now, `<webview>` is the only way to embed additional content in a
`BrowserWindow`. Unfortunately `<webview>` suffers from a [number of
problems](https://github.com/electron/electron/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3Awebview%20 ).
To make matters worse, many of these are upstream Chromium bugs instead
of Electron-specific bugs.
For us at [Figma](https://www.figma.com ), the main issue is very slow
performance.
Despite the upstream improvements to `<webview>` through the OOPIF work, it is
probable that there will continue to be `<webview>`-specific bugs in the
future.
Therefore, this introduces a `<webview>` alternative to called `BrowserView`,
which...
- is a thin wrapper around `api::WebContents` (so bugs in `BrowserView` will
likely also be bugs in `BrowserWindow` web contents)
- is instantiated in the main process like `BrowserWindow` (and unlike
`<webview>`, which lives in the DOM of a `BrowserWindow` web contents)
- needs to be added to a `BrowserWindow` to display something on the screen
This implements the most basic API. The API is expected to evolve and change in
the near future and has consequently been marked as experimental. Please do not
use this API in production unless you are prepared to deal with breaking
changes.
In the future, we will want to change the API to support multiple
`BrowserView`s per window. We will also want to consider z-ordering
auto-resizing, and possibly even nested views.
2017-04-13 01:27:27 +03:00
Kevin Sawicki
7f8e490839
Take const reference
2017-04-04 12:50:41 -07:00
Samuel Attard
60cc862031
Make everything pointer like
2017-04-04 12:50:41 -07:00
Samuel Attard
4d6b0fc01b
Add a method to set the escape identifier on the touch bar
2017-04-04 12:50:41 -07:00
Kevin Sawicki
f5a75c4e87
Merge pull request #9076 from electron/cleanup-cpp
...
Cleanup cpp codebase
2017-04-03 08:30:08 -07:00
Haojian Wu
34a91434aa
Remove extra spaces.
2017-04-01 22:01:29 +02:00
Kevin Sawicki
08db63c3cc
Only define NSWindowTabbingModeDisallowed on pre-10.12
2017-03-31 11:28:55 -07:00
Haojian Wu
e8abee9ca9
Replace C-style casts with static_cast.
2017-03-30 23:05:47 +02:00
Kevin Sawicki
42300ae58e
Make tabbing identifier var local
2017-03-30 13:47:11 -07:00
Kevin Sawicki
c8b992fa39
Remove 10.12 check handled by respondsToSelector
2017-03-30 13:46:34 -07:00
Haojian Wu
d425b63b0d
NULL => nullptr
2017-03-30 22:12:14 +02:00
Tony Ganch
bd935b213f
Fix compilation against macOS 10.10 SDK
2017-03-30 15:13:49 +02:00
Tony Ganch
a7565f0d57
Enable native tabs on macOS
2017-03-29 13:51:39 +02:00
Kevin Sawicki
edebb32014
Drop nullable for consistency
2017-03-03 14:07:59 -08:00
Kevin Sawicki
ca2898a60e
Check that window responds to touchBar selector for pre-10.12.1 compat
2017-03-03 14:00:39 -08:00
Kevin Sawicki
d1edd80ef8
Use NSTouchBar itemForIdentifier to lookup existing item
2017-03-03 14:00:39 -08:00
Kevin Sawicki
5fe3ac60fa
Check that atom_touch_bar_ is set
2017-03-03 14:00:39 -08:00
Kevin Sawicki
708ed9d1cd
Store ordered settings in AtomTouchBar
2017-03-03 14:00:39 -08:00
Kevin Sawicki
51f1c5a557
Use SetTouchBar withe empty vector instead of DestroyTouchBar
2017-03-03 14:00:39 -08:00
Kevin Sawicki
b959f782f6
Rename instance variable maps
2017-03-03 14:00:39 -08:00
Kevin Sawicki
ec500b2852
Use scoped_nsobject to match Chrome implementation
2017-03-03 14:00:38 -08:00
Kevin Sawicki
823b3baed0
Use vector of dictionaries instead of mate::Arguments
2017-03-03 14:00:38 -08:00
Kevin Sawicki
98f5858b11
Initial support for dynamic properties
2017-03-03 14:00:38 -08:00
Kevin Sawicki
1972e2eff9
Update renamed variable
2017-03-03 14:00:38 -08:00
Kevin Sawicki
28f2a4951b
touch_bar_helper_ -> atom_touch_bar_
2017-03-03 14:00:38 -08:00
Kevin Sawicki
b39b49a15a
Rename to touch_bar_helper_ to differentiate from touchBar property
2017-03-03 14:00:38 -08:00
Kevin Sawicki
14ef5c5957
Reset helper when makeTouchBar is called
2017-03-03 14:00:38 -08:00
Kevin Sawicki
48515d9ecc
Ignore objective-c header lint
2017-03-03 14:00:38 -08:00
Kevin Sawicki
b632cdd37d
Extract helper class to encapsulate touch bar items
2017-03-03 14:00:38 -08:00
Kevin Sawicki
1b5149ae7a
Few memory and scope tweaks
2017-03-03 14:00:38 -08:00
Kevin Sawicki
b16d649819
Use skia color helpers
2017-03-03 14:00:38 -08:00
Kevin Sawicki
69638a399c
Make touchBar readwrite/nullable
2017-03-03 14:00:38 -08:00
Kevin Sawicki
52905ae9b3
Get compiling against 10.10 SDK
2017-03-03 14:00:38 -08:00
Samuel Attard
ba3fbc9d1b
Fix Group items
2017-03-03 14:00:38 -08:00
Samuel Attard
28d5c8bbde
Add updateConfig ability to other items
2017-03-03 14:00:38 -08:00
Samuel Attard
dd09c91cf2
initial work on updating touch bar item config without rerender
2017-03-03 14:00:38 -08:00
Samuel Attard
257b32b84b
Remove unused ident
2017-03-03 14:00:38 -08:00
Samuel Attard
43cc5079d8
Implement group item
2017-03-03 14:00:38 -08:00
Samuel Attard
269d899a99
Implement popOver item type (woo hoo it worked)
2017-03-03 14:00:38 -08:00
Samuel Attard
c92c4138a8
Add Slider item type and add options to the button type
2017-03-03 14:00:38 -08:00
Samuel Attard
18c7c3ece8
Make label and colorpicker types work
2017-03-03 14:00:38 -08:00
Samuel Attard
7857c83ea1
Make dynamic buttons work along with click events
2017-03-03 14:00:38 -08:00
Samuel Attard
703b5738c8
Initial TouchBar Magic
...
* Make the AtomNSWindow also a NSTouchbarDelegate
* Implement basic makeTouchBar and makeItemForIdentifier methods
* Initial sending of touch / update events through IPC to BrowserWindowObjects
TODO:
* JS API
* JS Object Converters
* Generalize methods so that popovers can work
2017-03-03 14:00:38 -08:00
gellert
a1ede4a4b0
fixes os version check of vibrancy
2017-02-18 20:25:03 +01:00
Kevin Sawicki
82f452568c
🎨 Minor formatting tweaks
2017-02-14 11:09:15 -08:00
Gary Wilber
f19924bcb0
Add Invalidate method to NativeWindow and add Mac implementation
2017-02-13 19:41:24 -08:00
Kevin Sawicki
0f98c9d3fb
Use at least OS version checks
2017-02-07 09:32:40 -08:00
Cheng Zhao
3224c39371
Mac's version checking function has changed
2017-02-06 10:34:28 -08:00
Kevin Sawicki
9b2b6da3a3
Wrap params at 80 characters
2017-01-30 15:32:05 -08:00
leethomas
edbb786fb4
use kCGMinimumWindowLevelKey to get the minimum level
2017-01-26 19:12:10 -08:00
leethomas
1f5518b91e
throw an error for out of bounds window levels
2017-01-24 20:14:09 -08:00
leethomas
7a0a87a6f3
implement relative window levels, closes #8153
2017-01-23 23:42:33 -08:00
Daijiro Wachi
a23d8ed702
do not call SetFullScreen in SetKiosk if it's already fullscreen mode
2017-01-19 00:40:34 +01:00