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

Unified Diff: chrome/browser/ui/ash/user_wallpaper_delegate_win.cc

Issue 25108005: linux_aura: Compile ash into chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos link Created 7 years, 3 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/browser/ui/ash/user_wallpaper_delegate_win.cc
diff --git a/chrome/browser/ui/ash/user_wallpaper_delegate_win.cc b/chrome/browser/ui/ash/user_wallpaper_delegate_win.cc
deleted file mode 100644
index 2f513342dc7a13d4368d69d24337f8882ce7baef..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/ash/user_wallpaper_delegate_win.cc
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/desktop_background/user_wallpaper_delegate.h"
-
-#include "ash/desktop_background/desktop_background_controller.h"
-#include "ash/shell.h"
-#include "ash/wm/window_animations.h"
-#include "base/basictypes.h"
-#include "ui/gfx/image/image_skia.h"
-
-namespace {
-
-const char kBackgroundRed = 70;
-const char kBackgroundGreen = 70;
-const char kBackgroundBlue = 78;
-
-class UserWallpaperDelegate : public ash::UserWallpaperDelegate {
- public:
- UserWallpaperDelegate() {
- }
-
- virtual ~UserWallpaperDelegate() {
- }
-
- virtual int GetAnimationType() OVERRIDE {
- return ShouldShowInitialAnimation() ?
- ash::WINDOW_VISIBILITY_ANIMATION_TYPE_BRIGHTNESS_GRAYSCALE :
- static_cast<int>(views::corewm::WINDOW_VISIBILITY_ANIMATION_TYPE_FADE);
- }
-
- virtual bool ShouldShowInitialAnimation() OVERRIDE {
- return true;
- }
-
- virtual void UpdateWallpaper() OVERRIDE {
- }
-
- virtual void InitializeWallpaper() OVERRIDE {
- SkBitmap bitmap;
- bitmap.setConfig(SkBitmap::kARGB_8888_Config, 16, 16);
- bitmap.allocPixels();
- bitmap.eraseARGB(255, kBackgroundRed, kBackgroundGreen, kBackgroundBlue);
- gfx::ImageSkia wallpaper =
- gfx::ImageSkia::CreateFrom1xBitmap(bitmap);
- ash::Shell::GetInstance()->desktop_background_controller()->
- SetCustomWallpaper(wallpaper, ash::WALLPAPER_LAYOUT_TILE);
- }
-
- virtual void OpenSetWallpaperPage() OVERRIDE {
- }
-
- virtual bool CanOpenSetWallpaperPage() OVERRIDE {
- return false;
- }
-
- virtual void OnWallpaperAnimationFinished() OVERRIDE {
- }
-
- virtual void OnWallpaperBootAnimationFinished() OVERRIDE {
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(UserWallpaperDelegate);
-};
-
-} // namespace
-
-ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() {
- return new UserWallpaperDelegate();
-}

Powered by Google App Engine
This is Rietveld 408576698