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

Side by Side Diff: ash/shell_delegate.h

Issue 2910773002: cros: CustomFrameViewAsh avatar icon from a window prop (Closed)
Patch Set: add test Created 3 years, 6 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
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | ash/shell_port.h » ('j') | no next file with comments »
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_SHELL_DELEGATE_H_ 5 #ifndef ASH_SHELL_DELEGATE_H_
6 #define ASH_SHELL_DELEGATE_H_ 6 #define ASH_SHELL_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 namespace ui { 34 namespace ui {
35 class MenuModel; 35 class MenuModel;
36 } 36 }
37 37
38 namespace ash { 38 namespace ash {
39 39
40 class AccessibilityDelegate; 40 class AccessibilityDelegate;
41 class GPUSupport; 41 class GPUSupport;
42 class PaletteDelegate; 42 class PaletteDelegate;
43 class SessionStateDelegate;
44 class Shelf; 43 class Shelf;
45 struct ShelfItem; 44 struct ShelfItem;
46 class SystemTrayDelegate; 45 class SystemTrayDelegate;
47 class WallpaperDelegate; 46 class WallpaperDelegate;
48 47
49 // Delegate of the Shell. 48 // Delegate of the Shell.
50 class ASH_EXPORT ShellDelegate { 49 class ASH_EXPORT ShellDelegate {
51 public: 50 public:
52 // The Shell owns the delegate. 51 // The Shell owns the delegate.
53 virtual ~ShellDelegate() {} 52 virtual ~ShellDelegate() {}
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // TODO(msw): Refine ChromeLauncherController lifetime management. 94 // TODO(msw): Refine ChromeLauncherController lifetime management.
96 virtual void ShelfInit() = 0; 95 virtual void ShelfInit() = 0;
97 virtual void ShelfShutdown() = 0; 96 virtual void ShelfShutdown() = 0;
98 97
99 // Creates a system-tray delegate. Shell takes ownership of the delegate. 98 // Creates a system-tray delegate. Shell takes ownership of the delegate.
100 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; 99 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0;
101 100
102 // Creates a wallpaper delegate. Shell takes ownership of the delegate. 101 // Creates a wallpaper delegate. Shell takes ownership of the delegate.
103 virtual std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() = 0; 102 virtual std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() = 0;
104 103
105 // Creates a session state delegate. Shell takes ownership of the delegate.
106 virtual SessionStateDelegate* CreateSessionStateDelegate() = 0;
107
108 // Creates a accessibility delegate. Shell takes ownership of the delegate. 104 // Creates a accessibility delegate. Shell takes ownership of the delegate.
109 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; 105 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0;
110 106
111 virtual std::unique_ptr<PaletteDelegate> CreatePaletteDelegate() = 0; 107 virtual std::unique_ptr<PaletteDelegate> CreatePaletteDelegate() = 0;
112 108
113 // Creates a menu model for the |shelf| and optional shelf |item|. 109 // Creates a menu model for the |shelf| and optional shelf |item|.
114 // If |item| is null, this creates a context menu for the wallpaper or shelf. 110 // If |item| is null, this creates a context menu for the wallpaper or shelf.
115 virtual ui::MenuModel* CreateContextMenu(Shelf* shelf, 111 virtual ui::MenuModel* CreateContextMenu(Shelf* shelf,
116 const ShelfItem* item) = 0; 112 const ShelfItem* item) = 0;
117 113
(...skipping 22 matching lines...) Expand all
140 // if both local state and user prefs are enabled, otherwise disabled. 136 // if both local state and user prefs are enabled, otherwise disabled.
141 virtual void UpdateTouchscreenStatusFromPrefs() = 0; 137 virtual void UpdateTouchscreenStatusFromPrefs() = 0;
142 138
143 // Toggles the status of touchpad between enabled and disabled. 139 // Toggles the status of touchpad between enabled and disabled.
144 virtual void ToggleTouchpad() {} 140 virtual void ToggleTouchpad() {}
145 }; 141 };
146 142
147 } // namespace ash 143 } // namespace ash
148 144
149 #endif // ASH_SHELL_DELEGATE_H_ 145 #endif // ASH_SHELL_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | ash/shell_port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698