|
Add always-on-top property to app windows
The chrome.app.window API has been extended to include:
- A new alwaysOnTop option for the create() function.
- An AppWindow.isAlwaysOnTop() function to query the state of this
property.
- An AppWindow.setAlwaysOnTop() function to change this property after
creation of the window.
Changes involving native app windows:
- Added apps::NativeAppWindow::SetAlwaysOnTop().
- Implemented IsAlwaysOnTop(), a function inherited from ui::BaseWindow
but was left unimplemented for native app windows.
Changes involving views:
- Added IsAlwaysOnTop(). SetAlwaysOnTop() already existed.
BUG= 171597
TEST=browser_tests (PlatformAppBrowserTest.WindowsApiAlwaysOnTop).
Test manually by creating an app that enables the alwaysOnTop option
on window creation and changes the property after creation.
Test Windows, Mac, ChromeOS and Linux.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=228160
Total comments: 6
Total comments: 7
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+257 lines, -25 lines) |
Patch |
|
M |
apps/app_window_contents.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
apps/shell_window.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
apps/shell_window.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.h
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc
|
View
|
1
2
3
4
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/app_window/app_window_api.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/app_window/app_window_apitest.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/extension_function_histogram_value.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+16 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/browser_window_cocoa.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/cocoa/browser_window_cocoa.mm
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/apps/native_app_window_gtk.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/apps/native_app_window_gtk.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+15 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/browser_window_gtk.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/gtk/browser_window_gtk.cc
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/panels/panel.h
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/panels/panel.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/apps/native_app_window_views.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/apps/native_app_window_views.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/frame/browser_view.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/frame/browser_view.cc
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/common/extensions/api/_api_features.json
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/common/extensions/api/app_current_window_internal.idl
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/common/extensions/api/app_window.idl
|
View
|
1
2
3
4
|
2 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/renderer/resources/extensions/app_window_custom_bindings.js
|
View
|
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/test/base/test_browser_window.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
chrome/test/data/extensions/platform_apps/windows_api_always_on_top/background.js
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
|
A + |
chrome/test/data/extensions/platform_apps/windows_api_always_on_top/index.html
|
View
|
1
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
|
A + |
chrome/test/data/extensions/platform_apps/windows_api_always_on_top/manifest.json
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ui/base/base_window.h
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/desktop_aura/desktop_native_widget_aura.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/desktop_aura/desktop_root_window_host.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/desktop_aura/desktop_root_window_host_win.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/desktop_aura/desktop_root_window_host_x11.h
|
View
|
1
2
3
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc
|
View
|
1
2
3
|
4 chunks |
+28 lines, -12 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/native_widget_aura.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/native_widget_aura.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/native_widget_private.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/native_widget_win.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/native_widget_win.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/widget.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/widget.cc
|
View
|
4
5
6
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/widget_unittest.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/win/hwnd_message_handler.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/win/hwnd_message_handler.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
Total messages: 18 (0 generated)
|