Commit 748bad4e authored by hshi@chromium.org's avatar hshi@chromium.org

Chrome OS wallpaper manager.

Rename transparentBackground -> alphaEnabled and set corresponding permissions.

This is in response to r288983.

BUG=403166
TEST=verify wallpaper picker works on Chrome OS.
R=bshe@chromium.org

Review URL: https://codereview.chromium.org/465113003

Cr-Commit-Position: refs/heads/master@{#289316}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289316 0039d316-1c4b-4281-b951-d872f2087c98
parent 9ff3a96b
...@@ -150,7 +150,7 @@ SurpriseWallpaper.prototype.setRandomWallpaper_ = function(dateString) { ...@@ -150,7 +150,7 @@ SurpriseWallpaper.prototype.setRandomWallpaper_ = function(dateString) {
Constants.AccessLastSurpriseWallpaperChangedDate, Constants.AccessLastSurpriseWallpaperChangedDate,
dateString, dateString,
true); true);
} };
WallpaperUtil.setOnlineWallpaper(wallpaperURL, wallpaper.default_layout, WallpaperUtil.setOnlineWallpaper(wallpaperURL, wallpaper.default_layout,
onSuccess, self.retryLater_.bind(self)); onSuccess, self.retryLater_.bind(self));
} }
...@@ -225,7 +225,7 @@ chrome.app.runtime.onLaunched.addListener(function() { ...@@ -225,7 +225,7 @@ chrome.app.runtime.onLaunched.addListener(function() {
width: WALLPAPER_PICKER_WIDTH, width: WALLPAPER_PICKER_WIDTH,
height: WALLPAPER_PICKER_HEIGHT, height: WALLPAPER_PICKER_HEIGHT,
resizable: false, resizable: false,
transparentBackground: true alphaEnabled: true
}, function(w) { }, function(w) {
wallpaperPickerWindow = w; wallpaperPickerWindow = w;
chrome.wallpaperPrivate.minimizeInactiveWindows(); chrome.wallpaperPrivate.minimizeInactiveWindows();
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
}, },
"permissions": [ "permissions": [
"alarms", "alarms",
"app.window.alpha",
"experimental", "experimental",
"storage", "storage",
"unlimitedStorage", "unlimitedStorage",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment