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

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

Issue 469993003: Add AppWindow.setVisibleOnAllWorkspaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and rebase Created 6 years, 4 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
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 812d3d6c6af54474773bc45892310b9ce48314e4..1a889b7a47740ca024ebd643a2397bb20492263d 100644
--- a/chrome/renderer/resources/extensions/app_window_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/app_window_custom_bindings.js
@@ -244,6 +244,9 @@ appWindow.registerCustomHook(function(bindingsAPI) {
AppWindow.prototype.alphaEnabled = function() {
return appWindowData.alphaEnabled;
};
+ AppWindow.prototype.canSetVisibleOnAllWorkspaces = function () {
+ return appWindowData.canSetVisibleOnAllWorkspaces;
+ };
AppWindow.prototype.handleWindowFirstShownForTests = function(callback) {
// This allows test apps to get have their callback run even if they
// call this after the first show has happened.
@@ -305,7 +308,8 @@ appWindow.registerCustomHook(function(bindingsAPI) {
hasFrameColor: params.hasFrameColor,
activeFrameColor: params.activeFrameColor,
inactiveFrameColor: params.inactiveFrameColor,
- alphaEnabled: params.alphaEnabled
+ alphaEnabled: params.alphaEnabled,
+ canSetVisibleOnAllWorkspaces: params.canSetVisibleOnAllWorkspaces
};
currentAppWindow = new AppWindow;
});

Powered by Google App Engine
This is Rietveld 408576698