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

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

Issue 2007003002: mash: Preliminary support for shelf auto-hide (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shutdown
Patch Set: rebase Created 4 years, 7 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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // kExistingWindowActivated, or kExistingWindowMinimized. 244 // kExistingWindowActivated, or kExistingWindowMinimized.
245 ash::ShelfItemDelegate::PerformedAction ActivateWindowOrMinimizeIfActive( 245 ash::ShelfItemDelegate::PerformedAction ActivateWindowOrMinimizeIfActive(
246 ui::BaseWindow* window, 246 ui::BaseWindow* window,
247 bool allow_minimize); 247 bool allow_minimize);
248 248
249 // ash::ShelfDelegate: 249 // ash::ShelfDelegate:
250 void OnShelfCreated(ash::Shelf* shelf) override; 250 void OnShelfCreated(ash::Shelf* shelf) override;
251 void OnShelfDestroyed(ash::Shelf* shelf) override; 251 void OnShelfDestroyed(ash::Shelf* shelf) override;
252 void OnShelfAlignmentChanged(ash::Shelf* shelf) override; 252 void OnShelfAlignmentChanged(ash::Shelf* shelf) override;
253 void OnShelfAutoHideBehaviorChanged(ash::Shelf* shelf) override; 253 void OnShelfAutoHideBehaviorChanged(ash::Shelf* shelf) override;
254 void OnShelfAutoHideStateChanged(ash::Shelf* shelf) override;
255 void OnShelfVisibilityStateChanged(ash::Shelf* shelf) override;
254 ash::ShelfID GetShelfIDForAppID(const std::string& app_id) override; 256 ash::ShelfID GetShelfIDForAppID(const std::string& app_id) override;
255 bool HasShelfIDToAppIDMapping(ash::ShelfID id) const override; 257 bool HasShelfIDToAppIDMapping(ash::ShelfID id) const override;
256 const std::string& GetAppIDForShelfID(ash::ShelfID id) override; 258 const std::string& GetAppIDForShelfID(ash::ShelfID id) override;
257 bool GetAppIDForShelfIDConst(ash::ShelfID id, std::string* app_id) const; 259 bool GetAppIDForShelfIDConst(ash::ShelfID id, std::string* app_id) const;
258 void PinAppWithID(const std::string& app_id) override; 260 void PinAppWithID(const std::string& app_id) override;
259 bool IsAppPinned(const std::string& app_id) override; 261 bool IsAppPinned(const std::string& app_id) override;
260 void UnpinAppWithID(const std::string& app_id) override; 262 void UnpinAppWithID(const std::string& app_id) override;
261 263
262 // ash::ShelfItemDelegateManagerObserver: 264 // ash::ShelfItemDelegateManagerObserver:
263 void OnSetShelfItemDelegate(ash::ShelfID id, 265 void OnSetShelfItemDelegate(ash::ShelfID id,
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 // The list of running & un-pinned applications for different users on hidden 548 // The list of running & un-pinned applications for different users on hidden
547 // desktops. 549 // desktops.
548 typedef std::vector<std::string> RunningAppListIds; 550 typedef std::vector<std::string> RunningAppListIds;
549 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; 551 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap;
550 RunningAppListIdMap last_used_running_application_order_; 552 RunningAppListIdMap last_used_running_application_order_;
551 553
552 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); 554 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController);
553 }; 555 };
554 556
555 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 557 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/test/test_shelf_delegate.cc ('k') | chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698