Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5844)

Unified Diff: chrome/renderer/resources/extensions/app_window_custom_bindings.js

Issue 26427002: Add always-on-top property to app windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/app_window.idl ('k') | chrome/test/base/test_browser_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extensions/app_window_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/app_window_custom_bindings.js b/chrome/renderer/resources/extensions/app_window_custom_bindings.js
index a4d6b2be37cbb4212159f8b9139d9643362d64e4..e32bd126cbee849bf577c50dda830f54c91521f0 100644
--- a/chrome/renderer/resources/extensions/app_window_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/app_window_custom_bindings.js
@@ -112,6 +112,9 @@ appWindow.registerCustomHook(function(bindingsAPI) {
AppWindow.prototype.isMaximized = function() {
return appWindowData.maximized;
};
+ AppWindow.prototype.isAlwaysOnTop = function() {
+ return appWindowData.alwaysOnTop;
+ };
Object.defineProperty(AppWindow.prototype, 'id', {get: function() {
return appWindowData.id;
@@ -123,7 +126,8 @@ appWindow.registerCustomHook(function(bindingsAPI) {
width: params.bounds.width, height: params.bounds.height },
fullscreen: params.fullscreen,
minimized: params.minimized,
- maximized: params.maximized
+ maximized: params.maximized,
+ alwaysOnTop: params.alwaysOnTop
};
currentAppWindow = new AppWindow;
});
« no previous file with comments | « chrome/common/extensions/api/app_window.idl ('k') | chrome/test/base/test_browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698