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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 // TODO(simon.hong81): Make this take a scoped_ptr of |item_delegate|. | 544 // TODO(simon.hong81): Make this take a scoped_ptr of |item_delegate|. |
545 void SetShelfItemDelegate(ash::ShelfID id, | 545 void SetShelfItemDelegate(ash::ShelfID id, |
546 ash::ShelfItemDelegate* item_delegate); | 546 ash::ShelfItemDelegate* item_delegate); |
547 | 547 |
548 // Attach to a specific profile. | 548 // Attach to a specific profile. |
549 void AttachProfile(Profile* proifile); | 549 void AttachProfile(Profile* proifile); |
550 | 550 |
551 // Forget the current profile to allow attaching to a new one. | 551 // Forget the current profile to allow attaching to a new one. |
552 void ReleaseProfile(); | 552 void ReleaseProfile(); |
553 | 553 |
| 554 // Returns true if |app_id| is a Packaged App that has already launched on the |
| 555 // native desktop and, if so, executes it as a desktop shortcut to activate |
| 556 // desktop mode and send another OnLaunched event to the Extension. |
| 557 bool LaunchedInNativeDesktop(const std::string& app_id); |
| 558 |
554 static ChromeLauncherController* instance_; | 559 static ChromeLauncherController* instance_; |
555 | 560 |
556 ash::ShelfModel* model_; | 561 ash::ShelfModel* model_; |
557 | 562 |
558 ash::ShelfItemDelegateManager* item_delegate_manager_; | 563 ash::ShelfItemDelegateManager* item_delegate_manager_; |
559 | 564 |
560 // Profile used for prefs and loading extensions. This is NOT necessarily the | 565 // Profile used for prefs and loading extensions. This is NOT necessarily the |
561 // profile new windows are created with. | 566 // profile new windows are created with. |
562 Profile* profile_; | 567 Profile* profile_; |
563 | 568 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 // The list of running & un-pinned applications for different users on hidden | 604 // The list of running & un-pinned applications for different users on hidden |
600 // desktops. | 605 // desktops. |
601 typedef std::vector<std::string> RunningAppListIds; | 606 typedef std::vector<std::string> RunningAppListIds; |
602 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; | 607 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; |
603 RunningAppListIdMap last_used_running_application_order_; | 608 RunningAppListIdMap last_used_running_application_order_; |
604 | 609 |
605 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 610 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
606 }; | 611 }; |
607 | 612 |
608 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 613 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
OLD | NEW |