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

Side by Side Diff: ash/desktop_background/desktop_background_controller.h

Issue 9580023: Enable user change background image in settings page in Aura build. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: More refactor Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698