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

Side by Side Diff: ash/shell_delegate.h

Issue 508813002: Move ownership of the AppListViewDelegate into the AppListService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 6 years, 3 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/test_shell_delegate.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"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // Adds or removes virtual keyboard state observer. 104 // Adds or removes virtual keyboard state observer.
105 virtual void AddVirtualKeyboardStateObserver( 105 virtual void AddVirtualKeyboardStateObserver(
106 VirtualKeyboardStateObserver* observer) = 0; 106 VirtualKeyboardStateObserver* observer) = 0;
107 virtual void RemoveVirtualKeyboardStateObserver( 107 virtual void RemoveVirtualKeyboardStateObserver(
108 VirtualKeyboardStateObserver* observer) = 0; 108 VirtualKeyboardStateObserver* observer) = 0;
109 109
110 // Get the active browser context. This will get us the active profile 110 // Get the active browser context. This will get us the active profile
111 // in chrome. 111 // in chrome.
112 virtual content::BrowserContext* GetActiveBrowserContext() = 0; 112 virtual content::BrowserContext* GetActiveBrowserContext() = 0;
113 113
114 // Invoked to create an AppListViewDelegate. Shell takes the ownership of 114 // Get the AppListViewDelegate, creating one if it does not yet exist.
115 // the created delegate. 115 // Ownership stays with Chrome's AppListService, or the ShellDelegate.
116 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() = 0; 116 virtual app_list::AppListViewDelegate* GetAppListViewDelegate() = 0;
117 117
118 // Creates a new ShelfDelegate. Shell takes ownership of the returned 118 // Creates a new ShelfDelegate. Shell takes ownership of the returned
119 // value. 119 // value.
120 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0; 120 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0;
121 121
122 // Creates a system-tray delegate. Shell takes ownership of the delegate. 122 // Creates a system-tray delegate. Shell takes ownership of the delegate.
123 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; 123 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0;
124 124
125 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. 125 // Creates a user wallpaper delegate. Shell takes ownership of the delegate.
126 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; 126 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0;
(...skipping 21 matching lines...) Expand all
148 // Creates a GPU support object. Shell takes ownership of the object. 148 // Creates a GPU support object. Shell takes ownership of the object.
149 virtual GPUSupport* CreateGPUSupport() = 0; 149 virtual GPUSupport* CreateGPUSupport() = 0;
150 150
151 // Get the product name. 151 // Get the product name.
152 virtual base::string16 GetProductName() const = 0; 152 virtual base::string16 GetProductName() const = 0;
153 }; 153 };
154 154
155 } // namespace ash 155 } // namespace ash
156 156
157 #endif // ASH_SHELL_DELEGATE_H_ 157 #endif // ASH_SHELL_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | ash/test/test_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698