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

Side by Side Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller.h

Issue 2716403005: mash: Remove shelf app menu item objects. (Closed)
Patch Set: Address comments. Created 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 ui::BaseWindow* window, 173 ui::BaseWindow* window,
174 bool allow_minimize) = 0; 174 bool allow_minimize) = 0;
175 175
176 // Called when the active user has changed. 176 // Called when the active user has changed.
177 virtual void ActiveUserChanged(const std::string& user_email) = 0; 177 virtual void ActiveUserChanged(const std::string& user_email) = 0;
178 178
179 // Called when a user got added to the session. 179 // Called when a user got added to the session.
180 virtual void AdditionalUserAddedToSession(Profile* profile) = 0; 180 virtual void AdditionalUserAddedToSession(Profile* profile) = 0;
181 181
182 // Get the list of all running incarnations of this item. 182 // Get the list of all running incarnations of this item.
183 // |event_flags| specifies the flags which were set by the event which 183 virtual ash::ShelfAppMenuItemList GetAppMenuItemsForTesting(
184 // triggered this menu generation. It can be used to generate different lists. 184 const ash::ShelfItem& item) = 0;
185 virtual ash::ShelfAppMenuItemList GetAppMenuItems(const ash::ShelfItem& item,
186 int event_flags) = 0;
187 185
188 // Get the list of all tabs which belong to a certain application type. 186 // Get the list of all tabs which belong to a certain application type.
189 virtual std::vector<content::WebContents*> GetV1ApplicationsFromAppId( 187 virtual std::vector<content::WebContents*> GetV1ApplicationsFromAppId(
190 const std::string& app_id) = 0; 188 const std::string& app_id) = 0;
191 189
192 // Activates a specified shell application by app id and window index. 190 // Activates a specified shell application by app id and window index.
193 virtual void ActivateShellApp(const std::string& app_id, 191 virtual void ActivateShellApp(const std::string& app_id,
194 int window_index) = 0; 192 int window_index) = 0;
195 193
196 // Checks if a given |web_contents| is known to be associated with an 194 // Checks if a given |web_contents| is known to be associated with an
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // An observer that manages the shelf title and icon for settings windows. 306 // An observer that manages the shelf title and icon for settings windows.
309 SettingsWindowObserver settings_window_observer_; 307 SettingsWindowObserver settings_window_observer_;
310 308
311 // Used to load the images for app items. 309 // Used to load the images for app items.
312 std::vector<std::unique_ptr<AppIconLoader>> app_icon_loaders_; 310 std::vector<std::unique_ptr<AppIconLoader>> app_icon_loaders_;
313 311
314 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); 312 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController);
315 }; 313 };
316 314
317 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 315 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698