OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
| 6 #define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ash/ash_export.h" |
| 10 #include "base/basictypes.h" |
| 11 #include "ui/aura/root_window_observer.h" |
| 12 #include "third_party/skia/include/core/SkBitmap.h" |
| 13 |
| 14 namespace ash { |
| 15 |
| 16 // This probably needs to put to another place. But I am not sure where is the |
| 17 // best place. It's basically util function which used both by ash and by |
| 18 // webui handler. |
| 19 extern const int kDefaultWallpaperResources[]; |
| 20 extern const int kDefaultWallpaperResourcesThumb[]; |
| 21 extern const int kDefaultWallpaperCount; |
| 22 |
| 23 const SkBitmap& GetDefaultWallpaper(int index); |
| 24 const SkBitmap& GetDefaultWallpaperThumbnail(int index); |
| 25 |
| 26 class ASH_EXPORT DesktopBackgroundController : public aura::RootWindowObserver { |
| 27 public: |
| 28 DesktopBackgroundController(); |
| 29 virtual ~DesktopBackgroundController(); |
| 30 void OnDesktopBackgroundChange(int index); |
| 31 private: |
| 32 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); |
| 33 }; |
| 34 |
| 35 } // namespace ash |
| 36 |
| 37 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ |
OLD | NEW |