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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // 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: |
61 void OnWindowVisibilityChanging(aura::Window* window, bool visible) override; | 61 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override; |
62 void OnWindowDestroying(aura::Window* window) override; | 62 void OnWindowDestroying(aura::Window* window) override; |
63 | 63 |
64 // aura::client::ActivationChangeObserver: | 64 // aura::client::ActivationChangeObserver: |
65 void OnWindowActivated( | 65 void OnWindowActivated( |
66 aura::client::ActivationChangeObserver::ActivationReason reason, | 66 aura::client::ActivationChangeObserver::ActivationReason reason, |
67 aura::Window* gained_active, | 67 aura::Window* gained_active, |
68 aura::Window* lost_active) override; | 68 aura::Window* lost_active) override; |
69 | 69 |
70 // ash::ShellObserver: | 70 // ash::ShellObserver: |
71 void OnMaximizeModeStarted() override; | 71 void OnMaximizeModeStarted() override; |
(...skipping 43 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 |