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

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: AppListShower to new component: //ui/app_list/shower, GetViewDelegate() in GetViewDelegate(), test … Created 4 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
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | ash/test/app_list_controller_test_api.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 <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 class GURL; 15 class GURL;
16 16
17 namespace app_list { 17 namespace app_list {
18 class AppListShower;
18 class AppListViewDelegate; 19 class AppListViewDelegate;
19 } 20 }
20 21
21 namespace aura { 22 namespace aura {
22 class Window; 23 class Window;
23 } 24 }
24 25
25 namespace gfx { 26 namespace gfx {
26 class Image; 27 class Image;
27 } 28 }
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 106
106 // Adds or removes virtual keyboard state observer. 107 // Adds or removes virtual keyboard state observer.
107 virtual void AddVirtualKeyboardStateObserver( 108 virtual void AddVirtualKeyboardStateObserver(
108 VirtualKeyboardStateObserver* observer) = 0; 109 VirtualKeyboardStateObserver* observer) = 0;
109 virtual void RemoveVirtualKeyboardStateObserver( 110 virtual void RemoveVirtualKeyboardStateObserver(
110 VirtualKeyboardStateObserver* observer) = 0; 111 VirtualKeyboardStateObserver* observer) = 0;
111 112
112 // Opens the |url| in a new browser tab. 113 // Opens the |url| in a new browser tab.
113 virtual void OpenUrl(const GURL& url) = 0; 114 virtual void OpenUrl(const GURL& url) = 0;
114 115
115 // Get the AppListViewDelegate, creating one if it does not yet exist. 116 // Get the AppListShower. Ownership stays with Chrome.
116 // Ownership stays with Chrome's AppListService, or the ShellDelegate. 117 virtual app_list::AppListShower* GetAppListShower() = 0;
117 virtual app_list::AppListViewDelegate* GetAppListViewDelegate() = 0;
118 118
119 // Creates a new ShelfDelegate. Shell takes ownership of the returned 119 // Creates a new ShelfDelegate. Shell takes ownership of the returned
120 // value. 120 // value.
121 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0; 121 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0;
122 122
123 // Creates a system-tray delegate. Shell takes ownership of the delegate. 123 // Creates a system-tray delegate. Shell takes ownership of the delegate.
124 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; 124 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0;
125 125
126 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. 126 // Creates a user wallpaper delegate. Shell takes ownership of the delegate.
127 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; 127 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0;
(...skipping 26 matching lines...) Expand all
154 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; 154 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0;
155 155
156 // Toggles the status of the touchpad / touchscreen on or off. 156 // Toggles the status of the touchpad / touchscreen on or off.
157 virtual void ToggleTouchpad() {} 157 virtual void ToggleTouchpad() {}
158 virtual void ToggleTouchscreen() {} 158 virtual void ToggleTouchscreen() {}
159 }; 159 };
160 160
161 } // namespace ash 161 } // namespace ash
162 162
163 #endif // ASH_SHELL_DELEGATE_H_ 163 #endif // ASH_SHELL_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | ash/test/app_list_controller_test_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698