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

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: Fix a debug build error associated with color mode switch 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 "third_party/skia/include/core/SkBitmap.h"
12
13 namespace ash {
14
15 // A class to listen for login and desktop background change events and set the
16 // corresponding default wallpaper in Aura shell.
17 class ASH_EXPORT DesktopBackgroundController {
18 public:
19 DesktopBackgroundController();
20 virtual ~DesktopBackgroundController();
21
22 // Change the desktop background image to default wallpaper with |index|.
23 void OnDesktopBackgroundChange(int index);
24
25 // Returns the preset default wallpaper.
26 const SkBitmap& GetPresetWallpaper();
Ben Goodger (Google) 2012/03/09 23:20:17 GetDefaultWallpaper
bshe 2012/03/12 00:14:25 Done.
27
28 // Returns previous wallpaper.
29 const SkBitmap& GetPreviouseWallpaper();
Ben Goodger (Google) 2012/03/09 23:20:17 Describe what the previous wallpaper is used for.
bshe 2012/03/12 00:14:25 Done. Add comments above definition of variable pr
30
31 private:
32
Ben Goodger (Google) 2012/03/09 23:20:17 kill the space
bshe 2012/03/12 00:14:25 Done.
33 int previous_wallpaper_index_;
34
35 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController);
36 };
37
38 } // namespace ash
39
40 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698