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

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

Issue 2290603002: Enhance chrome.app.window API for shelf integration with pinning support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: LauncherItemController Unit Tests Fix after Rebase Created 4 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
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_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 } 150 }
151 151
152 // ash::ShelfDelegate: 152 // ash::ShelfDelegate:
153 void OnShelfCreated(ash::WmShelf* shelf) override; 153 void OnShelfCreated(ash::WmShelf* shelf) override;
154 void OnShelfDestroyed(ash::WmShelf* shelf) override; 154 void OnShelfDestroyed(ash::WmShelf* shelf) override;
155 void OnShelfAlignmentChanged(ash::WmShelf* shelf) override; 155 void OnShelfAlignmentChanged(ash::WmShelf* shelf) override;
156 void OnShelfAutoHideBehaviorChanged(ash::WmShelf* shelf) override; 156 void OnShelfAutoHideBehaviorChanged(ash::WmShelf* shelf) override;
157 void OnShelfAutoHideStateChanged(ash::WmShelf* shelf) override; 157 void OnShelfAutoHideStateChanged(ash::WmShelf* shelf) override;
158 void OnShelfVisibilityStateChanged(ash::WmShelf* shelf) override; 158 void OnShelfVisibilityStateChanged(ash::WmShelf* shelf) override;
159 ash::ShelfID GetShelfIDForAppID(const std::string& app_id) override; 159 ash::ShelfID GetShelfIDForAppID(const std::string& app_id) override;
160 ash::ShelfID GetShelfIDForAppIDAndLaunchID(
161 const std::string& app_id,
162 const std::string& launch_id) override;
160 bool HasShelfIDToAppIDMapping(ash::ShelfID id) const override; 163 bool HasShelfIDToAppIDMapping(ash::ShelfID id) const override;
161 const std::string& GetAppIDForShelfID(ash::ShelfID id) override; 164 const std::string& GetAppIDForShelfID(ash::ShelfID id) override;
162 void PinAppWithID(const std::string& app_id) override; 165 void PinAppWithID(const std::string& app_id) override;
163 bool IsAppPinned(const std::string& app_id) override; 166 bool IsAppPinned(const std::string& app_id) override;
164 void UnpinAppWithID(const std::string& app_id) override; 167 void UnpinAppWithID(const std::string& app_id) override;
165 168
166 // LauncherAppUpdater::Delegate: 169 // LauncherAppUpdater::Delegate:
167 void OnAppInstalled(content::BrowserContext* browser_context, 170 void OnAppInstalled(content::BrowserContext* browser_context,
168 const std::string& app_id) override; 171 const std::string& app_id) override;
169 void OnAppUpdated(content::BrowserContext* browser_context, 172 void OnAppUpdated(content::BrowserContext* browser_context,
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 typedef std::vector<std::string> RunningAppListIds; 364 typedef std::vector<std::string> RunningAppListIds;
362 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; 365 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap;
363 RunningAppListIdMap last_used_running_application_order_; 366 RunningAppListIdMap last_used_running_application_order_;
364 367
365 base::WeakPtrFactory<ChromeLauncherControllerImpl> weak_ptr_factory_; 368 base::WeakPtrFactory<ChromeLauncherControllerImpl> weak_ptr_factory_;
366 369
367 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl); 370 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl);
368 }; 371 };
369 372
370 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ 373 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698