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

Side by Side Diff: ash/shell_delegate.h

Issue 9764012: Restore to user selected wallpaper after browser crash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review and fix a segfault when starting chrome after saving data to local state. 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
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_SHELL_DELEGATE_H_ 5 #ifndef ASH_SHELL_DELEGATE_H_
6 #define ASH_SHELL_DELEGATE_H_ 6 #define ASH_SHELL_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 12 matching lines...) Expand all
23 23
24 namespace ash { 24 namespace ash {
25 25
26 class AppListViewDelegate; 26 class AppListViewDelegate;
27 class LauncherDelegate; 27 class LauncherDelegate;
28 class LauncherModel; 28 class LauncherModel;
29 struct LauncherItem; 29 struct LauncherItem;
30 class ScreenshotDelegate; 30 class ScreenshotDelegate;
31 class SystemTray; 31 class SystemTray;
32 class SystemTrayDelegate; 32 class SystemTrayDelegate;
33 class UserWallpaperDelegate;
33 34
34 // Delegate of the Shell. 35 // Delegate of the Shell.
35 class ASH_EXPORT ShellDelegate { 36 class ASH_EXPORT ShellDelegate {
36 public: 37 public:
37 // Source requesting the window list. 38 // Source requesting the window list.
38 enum CycleSource { 39 enum CycleSource {
39 // Windows are going to be used for alt-tab (or F5). 40 // Windows are going to be used for alt-tab (or F5).
40 SOURCE_KEYBOARD, 41 SOURCE_KEYBOARD,
41 42
42 // Windows are going to be cycled from the launcher. 43 // Windows are going to be cycled from the launcher.
(...skipping 30 matching lines...) Expand all
73 virtual void StartPartialScreenshot( 74 virtual void StartPartialScreenshot(
74 ScreenshotDelegate* screenshot_delegate) = 0; 75 ScreenshotDelegate* screenshot_delegate) = 0;
75 76
76 // Creates a new LauncherDelegate. Shell takes ownership of the returned 77 // Creates a new LauncherDelegate. Shell takes ownership of the returned
77 // value. 78 // value.
78 virtual LauncherDelegate* CreateLauncherDelegate( 79 virtual LauncherDelegate* CreateLauncherDelegate(
79 ash::LauncherModel* model) = 0; 80 ash::LauncherModel* model) = 0;
80 81
81 // Creates a system-tray delegate. Shell takes ownership of the delegate. 82 // Creates a system-tray delegate. Shell takes ownership of the delegate.
82 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; 83 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0;
84
85 // Creates a user wallpaper delegate. Shell takes ownership of the delegate.
86 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0;
83 }; 87 };
84 88
85 } // namespace ash 89 } // namespace ash
86 90
87 #endif // ASH_SHELL_DELEGATE_H_ 91 #endif // ASH_SHELL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698