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

Side by Side Diff: ash/shell_delegate.h

Issue 1770993002: wip: Refactoring Ash's AppListController, moving the bulk of the logic to chrome/browser/ui/ash/app… Base URL: https://chromium.googlesource.com/chromium/src.git@small_5_apps
Patch Set: Added a comment for PostTask in AppListServiceAsh. Created 4 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
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 <string> 8 #include <string>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "ash/shell.h" 11 #include "ash/shell.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 14
15 namespace app_list { 15 namespace app_list {
16 class AppListController;
16 class AppListViewDelegate; 17 class AppListViewDelegate;
17 } 18 }
18 19
19 namespace aura { 20 namespace aura {
20 class RootWindow; 21 class RootWindow;
21 class Window; 22 class Window;
22 } 23 }
23 24
24 namespace content { 25 namespace content {
25 class BrowserContext; 26 class BrowserContext;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 110
110 // Called when virtual keyboard has been activated/deactivated. 111 // Called when virtual keyboard has been activated/deactivated.
111 virtual void VirtualKeyboardActivated(bool activated) = 0; 112 virtual void VirtualKeyboardActivated(bool activated) = 0;
112 113
113 // Adds or removes virtual keyboard state observer. 114 // Adds or removes virtual keyboard state observer.
114 virtual void AddVirtualKeyboardStateObserver( 115 virtual void AddVirtualKeyboardStateObserver(
115 VirtualKeyboardStateObserver* observer) = 0; 116 VirtualKeyboardStateObserver* observer) = 0;
116 virtual void RemoveVirtualKeyboardStateObserver( 117 virtual void RemoveVirtualKeyboardStateObserver(
117 VirtualKeyboardStateObserver* observer) = 0; 118 VirtualKeyboardStateObserver* observer) = 0;
118 119
119 // Get the AppListViewDelegate, creating one if it does not yet exist. 120 // Get the GetAppListController. Ownership stays with Chrome.
120 // Ownership stays with Chrome's AppListService, or the ShellDelegate. 121 virtual app_list::AppListController* GetAppListController() = 0;
121 virtual app_list::AppListViewDelegate* GetAppListViewDelegate() = 0;
122 122
123 // Creates a new ShelfDelegate. Shell takes ownership of the returned 123 // Creates a new ShelfDelegate. Shell takes ownership of the returned
124 // value. 124 // value.
125 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0; 125 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0;
126 126
127 // Creates a system-tray delegate. Shell takes ownership of the delegate. 127 // Creates a system-tray delegate. Shell takes ownership of the delegate.
128 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; 128 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0;
129 129
130 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. 130 // Creates a user wallpaper delegate. Shell takes ownership of the delegate.
131 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; 131 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0;
(...skipping 29 matching lines...) Expand all
161 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; 161 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0;
162 162
163 // Toggles the status of the touchpad / touchscreen on or off. 163 // Toggles the status of the touchpad / touchscreen on or off.
164 virtual void ToggleTouchpad() {} 164 virtual void ToggleTouchpad() {}
165 virtual void ToggleTouchscreen() {} 165 virtual void ToggleTouchscreen() {}
166 }; 166 };
167 167
168 } // namespace ash 168 } // namespace ash
169 169
170 #endif // ASH_SHELL_DELEGATE_H_ 170 #endif // ASH_SHELL_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/app_list_controller.h » ('j') | ash/wm/app_list_layout_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698