OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_APP_WINDOW_LAUNCHER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_CONTROLLER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // Overridden from AppWindowRegistry::Observer: | 52 // Overridden from AppWindowRegistry::Observer: |
53 void OnAppWindowIconChanged(extensions::AppWindow* app_window) override; | 53 void OnAppWindowIconChanged(extensions::AppWindow* app_window) override; |
54 void OnAppWindowShown(extensions::AppWindow* app_window, | 54 void OnAppWindowShown(extensions::AppWindow* app_window, |
55 bool was_hidden) override; | 55 bool was_hidden) override; |
56 void OnAppWindowHidden(extensions::AppWindow* app_window) override; | 56 void OnAppWindowHidden(extensions::AppWindow* app_window) override; |
57 | 57 |
58 // Overriden from aura::WindowObserver: | 58 // Overriden from aura::WindowObserver: |
59 void OnWindowDestroying(aura::Window* window) override; | 59 void OnWindowDestroying(aura::Window* window) override; |
60 | 60 |
61 // Overriden from client::ActivationChangeObserver: | 61 // Overriden from client::ActivationChangeObserver: |
62 void OnWindowActivated(aura::Window* gained_active, | 62 void OnWindowActivated( |
63 aura::Window* lost_active) override; | 63 aura::client::ActivationChangeObserver::ActivationReason reason, |
| 64 aura::Window* gained_active, |
| 65 aura::Window* lost_active) override; |
64 | 66 |
65 protected: | 67 protected: |
66 // Registers a app window with the shelf and this object. | 68 // Registers a app window with the shelf and this object. |
67 void RegisterApp(extensions::AppWindow* app_window); | 69 void RegisterApp(extensions::AppWindow* app_window); |
68 | 70 |
69 // Unregisters a app window with the shelf and this object. | 71 // Unregisters a app window with the shelf and this object. |
70 void UnregisterApp(aura::Window* window); | 72 void UnregisterApp(aura::Window* window); |
71 | 73 |
72 // Check if a given window is known to the launcher controller. | 74 // Check if a given window is known to the launcher controller. |
73 bool IsRegisteredApp(aura::Window* window); | 75 bool IsRegisteredApp(aura::Window* window); |
(...skipping 15 matching lines...) Expand all Loading... |
89 // Map of app launcher id to controller. | 91 // Map of app launcher id to controller. |
90 AppControllerMap app_controller_map_; | 92 AppControllerMap app_controller_map_; |
91 | 93 |
92 // Allows us to get from an aura::Window to the app shelf id. | 94 // Allows us to get from an aura::Window to the app shelf id. |
93 WindowToAppShelfIdMap window_to_app_shelf_id_map_; | 95 WindowToAppShelfIdMap window_to_app_shelf_id_map_; |
94 | 96 |
95 DISALLOW_COPY_AND_ASSIGN(AppWindowLauncherController); | 97 DISALLOW_COPY_AND_ASSIGN(AppWindowLauncherController); |
96 }; | 98 }; |
97 | 99 |
98 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_CONTROLLER_H_ | 100 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_CONTROLLER_H_ |
OLD | NEW |