| 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_MULTI_PROFILE_APP_WINDOW_LAUNCHER_CONTROL
LER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_MULTI_PROFILE_APP_WINDOW_LAUNCHER_CONTROL
LER_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_MULTI_PROFILE_APP_WINDOW_LAUNCHER_CONTROL
LER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_MULTI_PROFILE_APP_WINDOW_LAUNCHER_CONTROL
LER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/ash/launcher/extension_app_window_launcher_controlle
r.h" | 9 #include "chrome/browser/ui/ash/launcher/extension_app_window_launcher_controlle
r.h" |
| 10 | 10 |
| 11 // Inherits from AppWindowLauncherController and overwrites the AppWindow | 11 // Inherits from AppWindowLauncherController and overwrites the AppWindow |
| 12 // observing functions to switch between users dynamically. | 12 // observing functions to switch between users dynamically. |
| 13 class MultiProfileAppWindowLauncherController | 13 class MultiProfileAppWindowLauncherController |
| 14 : public ExtensionAppWindowLauncherController { | 14 : public ExtensionAppWindowLauncherController { |
| 15 public: | 15 public: |
| 16 explicit MultiProfileAppWindowLauncherController( | 16 explicit MultiProfileAppWindowLauncherController( |
| 17 ChromeLauncherController* owner); | 17 ChromeLauncherControllerImpl* owner); |
| 18 ~MultiProfileAppWindowLauncherController() override; | 18 ~MultiProfileAppWindowLauncherController() override; |
| 19 | 19 |
| 20 // Overridden from AppWindowLauncherController: | 20 // Overridden from AppWindowLauncherController: |
| 21 void ActiveUserChanged(const std::string& user_email) override; | 21 void ActiveUserChanged(const std::string& user_email) override; |
| 22 void AdditionalUserAddedToSession(Profile* profile) override; | 22 void AdditionalUserAddedToSession(Profile* profile) override; |
| 23 | 23 |
| 24 // Overridden from AppWindowRegistry::Observer: | 24 // Overridden from AppWindowRegistry::Observer: |
| 25 void OnAppWindowAdded(extensions::AppWindow* app_window) override; | 25 void OnAppWindowAdded(extensions::AppWindow* app_window) override; |
| 26 void OnAppWindowRemoved(extensions::AppWindow* app_window) override; | 26 void OnAppWindowRemoved(extensions::AppWindow* app_window) override; |
| 27 void OnAppWindowShown(extensions::AppWindow* app_window, | 27 void OnAppWindowShown(extensions::AppWindow* app_window, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 39 // A list of all app windows for all users. | 39 // A list of all app windows for all users. |
| 40 AppWindowList app_window_list_; | 40 AppWindowList app_window_list_; |
| 41 | 41 |
| 42 // A list of the app window registries which we additionally observe. | 42 // A list of the app window registries which we additionally observe. |
| 43 AppWindowRegistryList multi_user_registry_; | 43 AppWindowRegistryList multi_user_registry_; |
| 44 | 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(MultiProfileAppWindowLauncherController); | 45 DISALLOW_COPY_AND_ASSIGN(MultiProfileAppWindowLauncherController); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_MULTI_PROFILE_APP_WINDOW_LAUNCHER_CONT
ROLLER_H_ | 48 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_MULTI_PROFILE_APP_WINDOW_LAUNCHER_CONT
ROLLER_H_ |
| OLD | NEW |