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

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

Issue 9960024: Remove "set wallpaper..." option in system context menu when guest logged in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
« no previous file with comments | « no previous file | ash/shell.cc » ('j') | ash/wm/workspace_controller.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ 5 #ifndef ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_
6 #define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ 6 #define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/ash_export.h" 9 #include "ash/ash_export.h"
10 #include "ash/desktop_background/desktop_background_resources.h" 10 #include "ash/desktop_background/desktop_background_resources.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 12
13 class SkBitmap; 13 class SkBitmap;
14 14
15 namespace ash { 15 namespace ash {
16 16
17 class UserWallpaperDelegate { 17 class UserWallpaperDelegate {
18 public: 18 public:
19 virtual ~UserWallpaperDelegate() {} 19 virtual ~UserWallpaperDelegate() {}
20 20
21 // Gets the index of user selected wallpaper. 21 // Gets the index of user selected wallpaper.
22 virtual const int GetUserWallpaperIndex() = 0; 22 virtual const int GetUserWallpaperIndex() = 0;
23 23
24 // Open the set wallpaper page in the browser. 24 // Open the set wallpaper page in the browser.
25 virtual void OpenSetWallpaperPage() = 0; 25 virtual void OpenSetWallpaperPage() = 0;
26
27 // Returns true if we're logged in as a Guest.
28 virtual bool IsLoggedInAsGuest() = 0;
26 }; 29 };
27 30
28 // A class to listen for login and desktop background change events and set the 31 // A class to listen for login and desktop background change events and set the
29 // corresponding default wallpaper in Aura shell. 32 // corresponding default wallpaper in Aura shell.
30 class ASH_EXPORT DesktopBackgroundController { 33 class ASH_EXPORT DesktopBackgroundController {
31 public: 34 public:
32 enum BackgroundMode { 35 enum BackgroundMode {
33 BACKGROUND_IMAGE, 36 BACKGROUND_IMAGE,
34 BACKGROUND_SOLID_COLOR 37 BACKGROUND_SOLID_COLOR
35 }; 38 };
(...skipping 21 matching lines...) Expand all
57 private: 60 private:
58 // Can change at runtime. 61 // Can change at runtime.
59 BackgroundMode desktop_background_mode_; 62 BackgroundMode desktop_background_mode_;
60 63
61 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController); 64 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundController);
62 }; 65 };
63 66
64 } // namespace ash 67 } // namespace ash
65 68
66 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_ 69 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shell.cc » ('j') | ash/wm/workspace_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698