Chromium Code Reviews| 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 <set> | 10 #include <set> |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 377 | 377 |
| 378 // Returns the LauncherItemController of BrowserShortcut. | 378 // Returns the LauncherItemController of BrowserShortcut. |
| 379 BrowserShortcutLauncherItemController* | 379 BrowserShortcutLauncherItemController* |
| 380 GetBrowserShortcutLauncherItemController(); | 380 GetBrowserShortcutLauncherItemController(); |
| 381 | 381 |
| 382 LauncherItemController* GetLauncherItemController(const ash::ShelfID id); | 382 LauncherItemController* GetLauncherItemController(const ash::ShelfID id); |
| 383 | 383 |
| 384 // Returns true if |browser| is owned by the active user. | 384 // Returns true if |browser| is owned by the active user. |
| 385 bool IsBrowserFromActiveUser(Browser* browser); | 385 bool IsBrowserFromActiveUser(Browser* browser); |
| 386 | 386 |
| 387 // Check if the shelf visibility (location, visibility) will change with a new | |
| 388 // user profile or not. However, since the full visibility calculation of the | |
| 389 // shelf cannot be performed here, this is only a probability used for | |
| 390 // animation predictions. | |
| 391 bool ShelfVisibilityChangesProbablyWithUser(aura::Window* root_window, | |
|
flackr
2014/08/06 12:24:03
How about s/Visibility/Bounds since no visibility
Mr4D (OOO till 08-26)
2014/08/06 19:49:26
Done.
| |
| 392 const std::string& user_id) const; | |
| 393 | |
| 387 // Access to the BrowserStatusMonitor for tests. | 394 // Access to the BrowserStatusMonitor for tests. |
| 388 BrowserStatusMonitor* browser_status_monitor_for_test() { | 395 BrowserStatusMonitor* browser_status_monitor_for_test() { |
| 389 return browser_status_monitor_.get(); | 396 return browser_status_monitor_.get(); |
| 390 } | 397 } |
| 391 | 398 |
| 392 // Access to the AppWindowLauncherController for tests. | 399 // Access to the AppWindowLauncherController for tests. |
| 393 AppWindowLauncherController* app_window_controller_for_test() { | 400 AppWindowLauncherController* app_window_controller_for_test() { |
| 394 return app_window_controller_.get(); | 401 return app_window_controller_.get(); |
| 395 } | 402 } |
| 396 | 403 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 594 // The list of running & un-pinned applications for different users on hidden | 601 // The list of running & un-pinned applications for different users on hidden |
| 595 // desktops. | 602 // desktops. |
| 596 typedef std::vector<std::string> RunningAppListIds; | 603 typedef std::vector<std::string> RunningAppListIds; |
| 597 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; | 604 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; |
| 598 RunningAppListIdMap last_used_running_application_order_; | 605 RunningAppListIdMap last_used_running_application_order_; |
| 599 | 606 |
| 600 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 607 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
| 601 }; | 608 }; |
| 602 | 609 |
| 603 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 610 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
| OLD | NEW |