OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_ARC_APP_WINDOW_LAUNCHER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_CONTROLLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 ArcAppWindowLauncherController(ChromeLauncherController* owner, | 43 ArcAppWindowLauncherController(ChromeLauncherController* owner, |
44 ash::ShelfDelegate* shelf_delegate); | 44 ash::ShelfDelegate* shelf_delegate); |
45 ~ArcAppWindowLauncherController() override; | 45 ~ArcAppWindowLauncherController() override; |
46 | 46 |
47 // Returns shelf app id. Play Store app is mapped to Arc platform host app. | 47 // Returns shelf app id. Play Store app is mapped to Arc platform host app. |
48 static std::string GetShelfAppIdFromArcAppId(const std::string& arc_app_id); | 48 static std::string GetShelfAppIdFromArcAppId(const std::string& arc_app_id); |
49 | 49 |
50 // Returns Arc app id. Arc platform host app is mapped to Play Store app. | 50 // Returns Arc app id. Arc platform host app is mapped to Play Store app. |
51 static std::string GetArcAppIdFromShelfAppId(const std::string& shelf_app_id); | 51 static std::string GetArcAppIdFromShelfAppId(const std::string& shelf_app_id); |
52 | 52 |
53 // AppWindowLauncherControllre: | 53 // AppWindowLauncherController: |
54 void ActiveUserChanged(const std::string& user_email) override; | 54 void ActiveUserChanged(const std::string& user_email) override; |
55 void AdditionalUserAddedToSession(Profile* profile) override; | 55 void AdditionalUserAddedToSession(Profile* profile) override; |
56 | 56 |
57 // aura::EnvObserver: | 57 // aura::EnvObserver: |
58 void OnWindowInitialized(aura::Window* window) override; | 58 void OnWindowInitialized(aura::Window* window) override; |
59 | 59 |
60 // aura::WindowObserver: | 60 // aura::WindowObserver: |
61 void OnWindowVisibilityChanging(aura::Window* window, bool visible) override; | 61 void OnWindowVisibilityChanging(aura::Window* window, bool visible) override; |
62 void OnWindowDestroying(aura::Window* window) override; | 62 void OnWindowDestroying(aura::Window* window) override; |
63 | 63 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 TaskIdToShelfAppIdMap task_id_to_shelf_app_id_; | 115 TaskIdToShelfAppIdMap task_id_to_shelf_app_id_; |
116 AppControllerMap app_controller_map_; | 116 AppControllerMap app_controller_map_; |
117 std::vector<aura::Window*> observed_windows_; | 117 std::vector<aura::Window*> observed_windows_; |
118 Profile* observed_profile_ = nullptr; | 118 Profile* observed_profile_ = nullptr; |
119 bool observing_shell_ = false; | 119 bool observing_shell_ = false; |
120 | 120 |
121 DISALLOW_COPY_AND_ASSIGN(ArcAppWindowLauncherController); | 121 DISALLOW_COPY_AND_ASSIGN(ArcAppWindowLauncherController); |
122 }; | 122 }; |
123 | 123 |
124 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_CONTROLLER_H_ | 124 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_CONTROLLER_H_ |
OLD | NEW |