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

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

Issue 2680423003: Reduce namespaces for ash::launcher::AppLauncherId (Closed)
Patch Set: Created 3 years, 10 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 virtual void Close(ash::ShelfID id) = 0; 130 virtual void Close(ash::ShelfID id) = 0;
131 131
132 // Returns true if the specified item is open. 132 // Returns true if the specified item is open.
133 virtual bool IsOpen(ash::ShelfID id) = 0; 133 virtual bool IsOpen(ash::ShelfID id) = 0;
134 134
135 // Returns true if the specified item is for a platform app. 135 // Returns true if the specified item is for a platform app.
136 virtual bool IsPlatformApp(ash::ShelfID id) = 0; 136 virtual bool IsPlatformApp(ash::ShelfID id) = 0;
137 137
138 // Opens a new instance of the application identified by the AppLauncherId. 138 // Opens a new instance of the application identified by the AppLauncherId.
139 // Used by the app-list, and by pinned-app shelf items. 139 // Used by the app-list, and by pinned-app shelf items.
140 void LaunchApp(ash::launcher::AppLauncherId id, 140 void LaunchApp(ash::AppLauncherId id,
141 ash::LaunchSource source, 141 ash::LaunchSource source,
142 int event_flags); 142 int event_flags);
143 143
144 // If |app_id| is running, reactivates the app's most recently active window, 144 // If |app_id| is running, reactivates the app's most recently active window,
145 // otherwise launches and activates the app. 145 // otherwise launches and activates the app.
146 // Used by the app-list, and by pinned-app shelf items. 146 // Used by the app-list, and by pinned-app shelf items.
147 virtual void ActivateApp(const std::string& app_id, 147 virtual void ActivateApp(const std::string& app_id,
148 ash::LaunchSource source, 148 ash::LaunchSource source,
149 int event_flags) = 0; 149 int event_flags) = 0;
150 150
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 // An observer that manages the shelf title and icon for settings windows. 309 // An observer that manages the shelf title and icon for settings windows.
310 SettingsWindowObserver settings_window_observer_; 310 SettingsWindowObserver settings_window_observer_;
311 311
312 // Used to load the images for app items. 312 // Used to load the images for app items.
313 std::vector<std::unique_ptr<AppIconLoader>> app_icon_loaders_; 313 std::vector<std::unique_ptr<AppIconLoader>> app_icon_loaders_;
314 314
315 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); 315 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController);
316 }; 316 };
317 317
318 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 318 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698