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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 | 459 |
460 // Sets the shelf auto-hide behavior from prefs. | 460 // Sets the shelf auto-hide behavior from prefs. |
461 void SetShelfAutoHideBehaviorFromPrefs(); | 461 void SetShelfAutoHideBehaviorFromPrefs(); |
462 | 462 |
463 // Sets the shelf alignment from prefs. | 463 // Sets the shelf alignment from prefs. |
464 void SetShelfAlignmentFromPrefs(); | 464 void SetShelfAlignmentFromPrefs(); |
465 | 465 |
466 // Sets both of auto-hide behavior and alignment from prefs. | 466 // Sets both of auto-hide behavior and alignment from prefs. |
467 void SetShelfBehaviorsFromPrefs(); | 467 void SetShelfBehaviorsFromPrefs(); |
468 | 468 |
| 469 #if defined(OS_CHROMEOS) |
| 470 // Sets whether the virtual keyboard is enabled from prefs. |
| 471 void SetVirtualKeyboardBehaviorFromPrefs(); |
| 472 #endif // defined(OS_CHROMEOS) |
| 473 |
469 // Returns the shelf item status for the given |app_id|, which can be either | 474 // Returns the shelf item status for the given |app_id|, which can be either |
470 // STATUS_ACTIVE (if the app is active), STATUS_RUNNING (if there is such an | 475 // STATUS_ACTIVE (if the app is active), STATUS_RUNNING (if there is such an |
471 // app) or STATUS_CLOSED. | 476 // app) or STATUS_CLOSED. |
472 ash::ShelfItemStatus GetAppState(const::std::string& app_id); | 477 ash::ShelfItemStatus GetAppState(const::std::string& app_id); |
473 | 478 |
474 // Creates an app launcher to insert at |index|. Note that |index| may be | 479 // Creates an app launcher to insert at |index|. Note that |index| may be |
475 // adjusted by the model to meet ordering constraints. | 480 // adjusted by the model to meet ordering constraints. |
476 // The |shelf_item_type| will be set into the ShelfModel. | 481 // The |shelf_item_type| will be set into the ShelfModel. |
477 ash::ShelfID InsertAppLauncherItem(LauncherItemController* controller, | 482 ash::ShelfID InsertAppLauncherItem(LauncherItemController* controller, |
478 const std::string& app_id, | 483 const std::string& app_id, |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 // The list of running & un-pinned applications for different users on hidden | 595 // The list of running & un-pinned applications for different users on hidden |
591 // desktops. | 596 // desktops. |
592 typedef std::vector<std::string> RunningAppListIds; | 597 typedef std::vector<std::string> RunningAppListIds; |
593 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; | 598 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; |
594 RunningAppListIdMap last_used_running_application_order_; | 599 RunningAppListIdMap last_used_running_application_order_; |
595 | 600 |
596 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 601 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
597 }; | 602 }; |
598 | 603 |
599 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 604 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
OLD | NEW |