| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SHELL_WINDOW_LAUNCHER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_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 22 matching lines...) Expand all Loading... |
| 33 class ShellWindowLauncherController | 33 class ShellWindowLauncherController |
| 34 : public extensions::ShellWindowRegistry::Observer, | 34 : public extensions::ShellWindowRegistry::Observer, |
| 35 public aura::WindowObserver, | 35 public aura::WindowObserver, |
| 36 public views::corewm::ActivationChangeShim { | 36 public views::corewm::ActivationChangeShim { |
| 37 public: | 37 public: |
| 38 explicit ShellWindowLauncherController(ChromeLauncherController* owner); | 38 explicit ShellWindowLauncherController(ChromeLauncherController* owner); |
| 39 virtual ~ShellWindowLauncherController(); | 39 virtual ~ShellWindowLauncherController(); |
| 40 | 40 |
| 41 // Overridden from ShellWindowRegistry::Observer: | 41 // Overridden from ShellWindowRegistry::Observer: |
| 42 virtual void OnShellWindowAdded(ShellWindow* shell_window) OVERRIDE; | 42 virtual void OnShellWindowAdded(ShellWindow* shell_window) OVERRIDE; |
| 43 virtual void OnShellWindowIconChanged(ShellWindow* shell_window) OVERRIDE; |
| 43 virtual void OnShellWindowRemoved(ShellWindow* shell_window) OVERRIDE; | 44 virtual void OnShellWindowRemoved(ShellWindow* shell_window) OVERRIDE; |
| 44 | 45 |
| 45 // Overriden from aura::WindowObserver: | 46 // Overriden from aura::WindowObserver: |
| 46 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 47 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; |
| 47 | 48 |
| 48 // Overriden from client::ActivationChangeObserver: | 49 // Overriden from client::ActivationChangeObserver: |
| 49 virtual void OnWindowActivated(aura::Window* active, | 50 virtual void OnWindowActivated(aura::Window* active, |
| 50 aura::Window* old_active) OVERRIDE; | 51 aura::Window* old_active) OVERRIDE; |
| 51 | 52 |
| 52 private: | 53 private: |
| (...skipping 11 matching lines...) Expand all Loading... |
| 64 // Map of app launcher id to controller. | 65 // Map of app launcher id to controller. |
| 65 AppControllerMap app_controller_map_; | 66 AppControllerMap app_controller_map_; |
| 66 | 67 |
| 67 // Allows us to get from an aura::Window to the app launcher id. | 68 // Allows us to get from an aura::Window to the app launcher id. |
| 68 WindowToAppLauncherIdMap window_to_app_launcher_id_map_; | 69 WindowToAppLauncherIdMap window_to_app_launcher_id_map_; |
| 69 | 70 |
| 70 DISALLOW_COPY_AND_ASSIGN(ShellWindowLauncherController); | 71 DISALLOW_COPY_AND_ASSIGN(ShellWindowLauncherController); |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_CONTROLLER_H_ | 74 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_CONTROLLER_H_ |
| OLD | NEW |