Cheng Zhao
98127ba13c
linux: Fix building
2014-12-15 17:28:51 -08:00
Cheng Zhao
cb911b19dd
win: Fixes stopping FlashFrame, closes #906
2014-12-15 17:27:58 -08:00
Cheng Zhao
1641caf353
Fix cpplint warnings
2014-12-15 16:57:04 -08:00
Cheng Zhao
23951e6ef3
views: Implement CanMinimize, fixes #918
2014-12-15 16:46:37 -08:00
Cheng Zhao
c9a5c6515c
views: Make it possible to show a window in maximized state
...
Fixes #834 .
2014-12-15 16:38:20 -08:00
Cheng Zhao
0ab32bfe17
win: Reserve border space for maximized frameless window
...
Fixes #732 .
2014-12-15 16:01:11 -08:00
Cheng Zhao
3d30e6ddc4
win: Don't allow maximzing a unresiazble frameless window
...
Fixes #857 .
2014-12-15 12:55:16 -08:00
Cheng Zhao
e3ccb18696
win: Fix calculating window bounds on high DPI display
2014-12-12 09:04:43 -08:00
Cheng Zhao
271eb63083
SetFullscreen => SetFullScreen
2014-11-25 14:34:14 +08:00
Cheng Zhao
28ca883805
win: Implement window state events
2014-11-25 14:28:34 +08:00
Cheng Zhao
588cc3c7ab
Make WindowStateWatcher X11 only
...
On Windows we need to take another way of detecting window state events.
2014-11-25 13:05:04 +08:00
Cheng Zhao
06cc27c6b3
views: Add WindowStateWatcher
2014-11-25 11:46:30 +08:00
Cheng Zhao
cd5007cfa1
linux: Set WM_CLASS for devtools window
2014-11-24 16:04:41 +08:00
Cheng Zhao
172c55d194
linux: Use app's name for WM_CLASS
2014-11-24 15:51:26 +08:00
Cheng Zhao
60bd20872c
linux: Set WM_WINDOW_ROLE correctly
...
WM_WINDOW_ROLE is used to specify the "role" of the window, and all
browser windows in atom-shell should have the same role.
2014-11-24 15:23:02 +08:00
Cheng Zhao
1cd3918494
views: Implement menubar APIs
2014-11-12 20:32:14 +08:00
Cheng Zhao
14d01544d4
Tidy code in CreateNonClientFrameView
2014-11-12 14:33:30 +08:00
Frank Hale
e9636bb87b
Fix CPP formatting
2014-11-12 01:11:25 -05:00
Frank Hale
246a145930
Fix merge conflict with native_window_views.cc
2014-11-12 01:04:51 -05:00
Frank Hale
c9371bceec
Force native window
...
- Force native frame and suppress the Chromium default blue frame. This
resolves issues with Windows systems that are running in VM's and cannot
enable Aero Glass. Atom-Shell was adding the default Chromium blue frame
even when frame was set to false in the BrowserWindow options.
2014-11-12 00:45:21 -05:00
Frank Hale
e0dae4054a
Fix code style to be <= 80 lines
2014-11-11 13:09:54 -05:00
Frank Hale
24f8c51959
Make sure frame is frameless
2014-11-07 13:34:52 -05:00
Frank Hale
4b20ac3dc6
Fix Windows min/max animation on frameless windows
...
- Frameless windows disappeared or appears when minimized and maximized
on Windows. This commit fixes that.
2014-11-07 13:13:12 -05:00
Cheng Zhao
edcae49e52
views: Fix showing menu bar when pressing Alt for a long time
2014-11-07 15:20:16 +08:00
Cheng Zhao
81283db2da
views: Make auto-hide-menu-bar work when NumLock is on, fixes #796
2014-11-07 15:05:55 +08:00
Kevin Sawicki
b6b6fc3bfd
Remove All Rights Reserved after GitHub copyright
...
Closes #762
2014-10-31 11:17:05 -07:00
Cheng Zhao
f82de6528b
linux: Fix detect global menu bar
...
It seems that detecting the bus name "com.canonical.AppMenu.Registrar"
is the most reliable way to detect whether the appmenu is available, see
http://git.io/JmP7Yg for the discussion.
2014-10-21 12:10:31 +08:00
Cheng Zhao
141894aacd
Implement BrowserWindow::ShowInactive
2014-10-17 22:51:20 +08:00
Cheng Zhao
85afa851dd
win: Fix toggling the menubar, closes #681
2014-10-17 16:43:57 +08:00
Cheng Zhao
ae76657e17
Still requires unity for global app menubar
...
Fixes #709 and atom/atom#3854 .
2014-10-17 16:06:45 +08:00
Matthieu Baerts
940b40439f
linux: GlobalMenu: UBUNTU_MENUPROXY with >1 char
...
When testing if $UBUNTU_MENUPROXY is set, we should also check if it
contains more than one character. Avoid cases when $UBUNTU_MENUPROXY is
set to 0 or 1.
2014-10-15 14:17:18 +02:00
Cheng Zhao
51acba594b
Merge pull request #698 from matttbe/master
...
linux: Rename window's class to Atom
2014-10-14 18:58:37 +08:00
Matthieu Baerts
7cd4d35778
linux: GlobalMenu: only if UBUNTU_MENUPROXY is set
...
When checking if we should react differently when GlobalMenu bar is
used, we should check if UBUNTU_MENUPROXY env var is (correctly) set
instead of checking if we're using Unity on a Unity session.
It's better to do that because we can use Compiz on a Unity session
without Unity. Or we can also use Unity in a different session.
2014-10-12 21:16:32 +02:00
Matthieu Baerts
8296178e33
linux: Rename window's class to Atom
...
The window's class should be Atom instead of Atom Shell because the
launcher and the binary to launch Atom are called 'atom' and not 'atom
shell'. This is why currently all Atom's windows will not be linked to
their launcher in a dock (e.g. with Cairo-Dock).
Note that it's not advised to add white-spaces in a window's class
('Atom Shell').
2014-10-12 18:47:49 +02:00
Alexander Neu
6c9769999b
win: Fix total value in SetProgressBar API.
2014-09-29 12:50:51 +02:00
Haojian Wu
d9ce3f0ca3
linux: Implement SetProgressBar API.
2014-09-18 19:26:52 +08:00
Haojian Wu
d8f57a0ecc
Correct code style.
2014-09-18 16:48:00 +08:00
Haojian Wu
b5e82dac6f
win: Implement SetProgressBar API.
2014-09-17 09:42:47 +08:00
Cheng Zhao
bda317b000
views: Set devtools window's icon, fixes #429 .
2014-09-09 15:30:33 +08:00
Cheng Zhao
1199224086
BrowserWindow.show() should not focus window, fixes #609 .
2014-09-08 15:28:34 +08:00
Cheng Zhao
9546120ce4
linux: Fix API changes of Chrome 37.
2014-09-01 20:10:14 +08:00
Cheng Zhao
400d5cef3f
linux: Fix BrowserWindow.setResizable.
2014-08-26 13:37:37 +08:00
Cheng Zhao
af531d685e
linux: Make BrowserWindow.setSkipTaskbar work dynamically.
2014-08-26 12:15:22 +08:00
Cheng Zhao
eb5f1f78bf
linux: Set WM_CLASS and WM_WINDOW_ROLE for window, fixes #605 .
2014-08-26 10:34:48 +08:00
Cheng Zhao
058d0bbe19
linux: Add "dark-theme" option for BrowserWindow, fixes #352 .
2014-08-21 12:25:43 +08:00
Cheng Zhao
29abba824d
A little cleanup.
2014-08-18 16:19:23 +08:00
Cheng Zhao
a230daa998
views: Pressing "Alt+Key" should bring up the menu bar.
2014-08-18 14:52:44 +08:00
Cheng Zhao
ba41634ad6
views: Show menubar's submenu when "Alt+Key" is pressed.
2014-08-18 14:42:21 +08:00
Cheng Zhao
e9536508a5
views: Show menubar's accelerator when "Alt" is pressed.
2014-08-18 14:12:12 +08:00
Cheng Zhao
cbd6541e9a
views: Fix compilation error.
2014-08-17 12:57:22 +08:00