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

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

Issue 2765563002: Move and rename Chrome's AppLauncherId to ash::AppLaunchId. (Closed)
Patch Set: Add example commment. 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>
11 11
12 #include "ash/public/cpp/app_launch_id.h"
12 #include "ash/public/cpp/shelf_item.h" 13 #include "ash/public/cpp/shelf_item.h"
13 #include "ash/public/interfaces/shelf.mojom.h" 14 #include "ash/public/interfaces/shelf.mojom.h"
14 #include "chrome/browser/ui/app_icon_loader.h" 15 #include "chrome/browser/ui/app_icon_loader.h"
15 #include "chrome/browser/ui/app_icon_loader_delegate.h" 16 #include "chrome/browser/ui/app_icon_loader_delegate.h"
16 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" 17 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
17 #include "chrome/browser/ui/ash/app_launcher_id.h"
18 #include "chrome/browser/ui/ash/launcher/launcher_item_controller.h" 18 #include "chrome/browser/ui/ash/launcher/launcher_item_controller.h"
19 #include "chrome/browser/ui/ash/launcher/settings_window_observer.h" 19 #include "chrome/browser/ui/ash/launcher/settings_window_observer.h"
20 #include "mojo/public/cpp/bindings/associated_binding.h" 20 #include "mojo/public/cpp/bindings/associated_binding.h"
21 21
22 class AccountId; 22 class AccountId;
23 class ArcAppDeferredLauncherController; 23 class ArcAppDeferredLauncherController;
24 class BrowserShortcutLauncherItemController; 24 class BrowserShortcutLauncherItemController;
25 class GURL; 25 class GURL;
26 class LauncherControllerHelper; 26 class LauncherControllerHelper;
27 27
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // Closes the specified item. 126 // Closes the specified item.
127 virtual void Close(ash::ShelfID id) = 0; 127 virtual void Close(ash::ShelfID id) = 0;
128 128
129 // Returns true if the specified item is open. 129 // Returns true if the specified item is open.
130 virtual bool IsOpen(ash::ShelfID id) = 0; 130 virtual bool IsOpen(ash::ShelfID id) = 0;
131 131
132 // Returns true if the specified item is for a platform app. 132 // Returns true if the specified item is for a platform app.
133 virtual bool IsPlatformApp(ash::ShelfID id) = 0; 133 virtual bool IsPlatformApp(ash::ShelfID id) = 0;
134 134
135 // Opens a new instance of the application identified by the AppLauncherId. 135 // Opens a new instance of the application identified by the AppLaunchId.
136 // Used by the app-list, and by pinned-app shelf items. 136 // Used by the app-list, and by pinned-app shelf items.
137 void LaunchApp(ash::AppLauncherId id, 137 void LaunchApp(ash::AppLaunchId id,
138 ash::ShelfLaunchSource source, 138 ash::ShelfLaunchSource source,
139 int event_flags); 139 int event_flags);
140 140
141 // If |app_id| is running, reactivates the app's most recently active window, 141 // If |app_id| is running, reactivates the app's most recently active window,
142 // otherwise launches and activates the app. 142 // otherwise launches and activates the app.
143 // Used by the app-list, and by pinned-app shelf items. 143 // Used by the app-list, and by pinned-app shelf items.
144 virtual void ActivateApp(const std::string& app_id, 144 virtual void ActivateApp(const std::string& app_id,
145 ash::ShelfLaunchSource source, 145 ash::ShelfLaunchSource source,
146 int event_flags) = 0; 146 int event_flags) = 0;
147 147
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // An observer that manages the shelf title and icon for settings windows. 304 // An observer that manages the shelf title and icon for settings windows.
305 SettingsWindowObserver settings_window_observer_; 305 SettingsWindowObserver settings_window_observer_;
306 306
307 // Used to load the images for app items. 307 // Used to load the images for app items.
308 std::vector<std::unique_ptr<AppIconLoader>> app_icon_loaders_; 308 std::vector<std::unique_ptr<AppIconLoader>> app_icon_loaders_;
309 309
310 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); 310 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController);
311 }; 311 };
312 312
313 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 313 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698