OLD | NEW |
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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 | 358 |
359 LauncherItemController* GetLauncherItemController(const ash::ShelfID id); | 359 LauncherItemController* GetLauncherItemController(const ash::ShelfID id); |
360 | 360 |
361 // Returns true if |browser| is owned by the active user. | 361 // Returns true if |browser| is owned by the active user. |
362 bool IsBrowserFromActiveUser(Browser* browser); | 362 bool IsBrowserFromActiveUser(Browser* browser); |
363 | 363 |
364 // Check if the shelf visibility (location, visibility) will change with a new | 364 // Check if the shelf visibility (location, visibility) will change with a new |
365 // user profile or not. However, since the full visibility calculation of the | 365 // user profile or not. However, since the full visibility calculation of the |
366 // shelf cannot be performed here, this is only a probability used for | 366 // shelf cannot be performed here, this is only a probability used for |
367 // animation predictions. | 367 // animation predictions. |
368 bool ShelfBoundsChangesProbablyWithUser(aura::Window* root_window, | 368 bool ShelfBoundsChangesProbablyWithUser(ash::Shelf* shelf, |
369 const std::string& user_id) const; | 369 const std::string& user_id) const; |
370 | 370 |
371 // Called when the user profile is fully loaded and ready to switch to. | 371 // Called when the user profile is fully loaded and ready to switch to. |
372 void OnUserProfileReadyToSwitch(Profile* profile); | 372 void OnUserProfileReadyToSwitch(Profile* profile); |
373 | 373 |
374 // Access to the BrowserStatusMonitor for tests. | 374 // Access to the BrowserStatusMonitor for tests. |
375 BrowserStatusMonitor* browser_status_monitor_for_test() { | 375 BrowserStatusMonitor* browser_status_monitor_for_test() { |
376 return browser_status_monitor_.get(); | 376 return browser_status_monitor_.get(); |
377 } | 377 } |
378 | 378 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 // The list of running & un-pinned applications for different users on hidden | 576 // The list of running & un-pinned applications for different users on hidden |
577 // desktops. | 577 // desktops. |
578 typedef std::vector<std::string> RunningAppListIds; | 578 typedef std::vector<std::string> RunningAppListIds; |
579 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; | 579 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; |
580 RunningAppListIdMap last_used_running_application_order_; | 580 RunningAppListIdMap last_used_running_application_order_; |
581 | 581 |
582 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 582 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
583 }; | 583 }; |
584 | 584 |
585 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 585 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
OLD | NEW |