| 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 23 matching lines...) Expand all Loading... |
| 34 class ArcAppWindowLauncherController : public AppWindowLauncherController, | 34 class ArcAppWindowLauncherController : public AppWindowLauncherController, |
| 35 public aura::EnvObserver, | 35 public aura::EnvObserver, |
| 36 public aura::WindowObserver, | 36 public aura::WindowObserver, |
| 37 public ash::ShellObserver, | 37 public ash::ShellObserver, |
| 38 public ArcAppListPrefs::Observer { | 38 public ArcAppListPrefs::Observer { |
| 39 public: | 39 public: |
| 40 ArcAppWindowLauncherController(ChromeLauncherController* owner, | 40 ArcAppWindowLauncherController(ChromeLauncherController* owner, |
| 41 ash::ShelfDelegate* shelf_delegate); | 41 ash::ShelfDelegate* shelf_delegate); |
| 42 ~ArcAppWindowLauncherController() override; | 42 ~ArcAppWindowLauncherController() override; |
| 43 | 43 |
| 44 // Returns shelf app id. Play Store app is mapped to Arc platform host app. | 44 // Returns shelf app id. Play Store app is mapped to ARC platform host app. |
| 45 static std::string GetShelfAppIdFromArcAppId(const std::string& arc_app_id); | 45 static std::string GetShelfAppIdFromArcAppId(const std::string& arc_app_id); |
| 46 | 46 |
| 47 // Returns Arc app id. Arc platform host app is mapped to Play Store app. | 47 // Returns ARC app id. ARC platform host app is mapped to Play Store app. |
| 48 static std::string GetArcAppIdFromShelfAppId(const std::string& shelf_app_id); | 48 static std::string GetArcAppIdFromShelfAppId(const std::string& shelf_app_id); |
| 49 | 49 |
| 50 // Returns Arc task id for the window. | 50 // Returns ARC task id for the window. |
| 51 static int GetWindowTaskId(aura::Window* window); | 51 static int GetWindowTaskId(aura::Window* window); |
| 52 | 52 |
| 53 // AppWindowLauncherController: | 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: |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 TaskIdToAppWindowInfo task_id_to_app_window_info_; | 124 TaskIdToAppWindowInfo task_id_to_app_window_info_; |
| 125 ShelfGroupToAppControllerMap app_shelf_group_to_controller_map_; | 125 ShelfGroupToAppControllerMap app_shelf_group_to_controller_map_; |
| 126 std::vector<aura::Window*> observed_windows_; | 126 std::vector<aura::Window*> observed_windows_; |
| 127 Profile* observed_profile_ = nullptr; | 127 Profile* observed_profile_ = nullptr; |
| 128 bool observing_shell_ = false; | 128 bool observing_shell_ = false; |
| 129 | 129 |
| 130 DISALLOW_COPY_AND_ASSIGN(ArcAppWindowLauncherController); | 130 DISALLOW_COPY_AND_ASSIGN(ArcAppWindowLauncherController); |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_CONTROLLER_H_ | 133 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_CONTROLLER_H_ |
| OLD | NEW |