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

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

Issue 190533006: Add support for transparent background API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wrap Missing Permission string in #ifdef AURA Created 6 years, 7 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 87ec1b3edddb6be35a26f438eef31bca8f6e552e..cfeb11bb2034cdd4d18b7ba182153f1a41f7fe69 100644
--- a/chrome/renderer/resources/extensions/app_window_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/app_window_custom_bindings.js
@@ -240,6 +240,9 @@ appWindow.registerCustomHook(function(bindingsAPI) {
AppWindow.prototype.isAlwaysOnTop = function() {
return appWindowData.alwaysOnTop;
};
+ AppWindow.prototype.alphaEnabled = function() {
+ return appWindowData.alphaEnabled;
+ };
Object.defineProperty(AppWindow.prototype, 'id', {get: function() {
return appWindowData.id;
@@ -289,6 +292,7 @@ appWindow.registerCustomHook(function(bindingsAPI) {
minimized: params.minimized,
maximized: params.maximized,
alwaysOnTop: params.alwaysOnTop,
+ alphaEnabled: params.alphaEnabled,
hasFrameColor: params.hasFrameColor,
activeFrameColor: params.activeFrameColor,
inactiveFrameColor: params.inactiveFrameColor
@@ -338,6 +342,9 @@ function updateAppWindowProperties(update) {
(oldData.minimized && !update.minimized) ||
(oldData.maximized && !update.maximized))
dispatchEventIfExists(currentWindow, "onRestored");
+
+ if (oldData.alphaEnabled != update.alphaEnabled)
+ dispatchEventIfExists(currentWindow, "onAlphaEnabledChanged");
benwells 2014/05/12 04:25:17 With the curernt code, this will never happen, and
garykac 2014/07/09 23:19:21 Removed for later cl. This should be called when t
jackhou1 2014/07/10 03:06:55 CL is here btw: https://codereview.chromium.org/37
garykac 2014/07/25 22:50:31 Acknowledged.
};
function onAppWindowClosed() {

Powered by Google App Engine
This is Rietveld 408576698