| 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   // Returns Arc task id for the window. | 
|  | 54   static int GetWindowTaskId(aura::Window* window); | 
|  | 55 | 
| 53   // AppWindowLauncherController: | 56   // AppWindowLauncherController: | 
| 54   void ActiveUserChanged(const std::string& user_email) override; | 57   void ActiveUserChanged(const std::string& user_email) override; | 
| 55   void AdditionalUserAddedToSession(Profile* profile) override; | 58   void AdditionalUserAddedToSession(Profile* profile) override; | 
| 56 | 59 | 
| 57   // aura::EnvObserver: | 60   // aura::EnvObserver: | 
| 58   void OnWindowInitialized(aura::Window* window) override; | 61   void OnWindowInitialized(aura::Window* window) override; | 
| 59 | 62 | 
| 60   // aura::WindowObserver: | 63   // aura::WindowObserver: | 
| 61   void OnWindowVisibilityChanged(aura::Window* window, bool visible) override; | 64   void OnWindowVisibilityChanged(aura::Window* window, bool visible) override; | 
| 62   void OnWindowDestroying(aura::Window* window) override; | 65   void OnWindowDestroying(aura::Window* window) override; | 
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 118   TaskIdToAppWindowInfo task_id_to_app_window_info_; | 121   TaskIdToAppWindowInfo task_id_to_app_window_info_; | 
| 119   ShelfAppIdToAppControllerMap app_controller_map_; | 122   ShelfAppIdToAppControllerMap app_controller_map_; | 
| 120   std::vector<aura::Window*> observed_windows_; | 123   std::vector<aura::Window*> observed_windows_; | 
| 121   Profile* observed_profile_ = nullptr; | 124   Profile* observed_profile_ = nullptr; | 
| 122   bool observing_shell_ = false; | 125   bool observing_shell_ = false; | 
| 123 | 126 | 
| 124   DISALLOW_COPY_AND_ASSIGN(ArcAppWindowLauncherController); | 127   DISALLOW_COPY_AND_ASSIGN(ArcAppWindowLauncherController); | 
| 125 }; | 128 }; | 
| 126 | 129 | 
| 127 #endif  // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_CONTROLLER_H_ | 130 #endif  // CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_WINDOW_LAUNCHER_CONTROLLER_H_ | 
| OLD | NEW | 
|---|