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_ITEM_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // LauncherItemController | 57 // LauncherItemController |
58 virtual string16 GetTitle() OVERRIDE; | 58 virtual string16 GetTitle() OVERRIDE; |
59 virtual bool IsCurrentlyShownInWindow(aura::Window* window) const OVERRIDE; | 59 virtual bool IsCurrentlyShownInWindow(aura::Window* window) const OVERRIDE; |
60 virtual bool IsOpen() const OVERRIDE; | 60 virtual bool IsOpen() const OVERRIDE; |
61 virtual bool IsVisible() const OVERRIDE; | 61 virtual bool IsVisible() const OVERRIDE; |
62 virtual void Launch(int event_flags) OVERRIDE; | 62 virtual void Launch(int event_flags) OVERRIDE; |
63 virtual void Activate() OVERRIDE; | 63 virtual void Activate() OVERRIDE; |
64 virtual void Close() OVERRIDE; | 64 virtual void Close() OVERRIDE; |
65 virtual void Clicked(const ui::Event& event) OVERRIDE; | 65 virtual void Clicked(const ui::Event& event) OVERRIDE; |
66 virtual void OnRemoved() OVERRIDE {} | 66 virtual void OnRemoved() OVERRIDE {} |
67 virtual void LauncherItemChanged( | |
68 int model_index, | |
69 const ash::LauncherItem& old_item) OVERRIDE {} | |
70 virtual ChromeLauncherAppMenuItems GetApplicationList( | 67 virtual ChromeLauncherAppMenuItems GetApplicationList( |
71 int event_flags) OVERRIDE; | 68 int event_flags) OVERRIDE; |
72 | 69 |
73 // aura::WindowObserver | 70 // aura::WindowObserver |
74 virtual void OnWindowPropertyChanged(aura::Window* window, | 71 virtual void OnWindowPropertyChanged(aura::Window* window, |
75 const void* key, | 72 const void* key, |
76 intptr_t old) OVERRIDE; | 73 intptr_t old) OVERRIDE; |
77 | 74 |
78 // Get the number of running applications/incarnations of this. | 75 // Get the number of running applications/incarnations of this. |
79 size_t shell_window_count() const { return shell_windows_.size(); } | 76 size_t shell_window_count() const { return shell_windows_.size(); } |
(...skipping 20 matching lines...) Expand all Loading... |
100 // AppLauncherItemController for each |app_launcher_id_|. | 97 // AppLauncherItemController for each |app_launcher_id_|. |
101 const std::string app_launcher_id_; | 98 const std::string app_launcher_id_; |
102 | 99 |
103 // Scoped list of observed windows (for removal on destruction) | 100 // Scoped list of observed windows (for removal on destruction) |
104 ScopedObserver<aura::Window, aura::WindowObserver> observed_windows_; | 101 ScopedObserver<aura::Window, aura::WindowObserver> observed_windows_; |
105 | 102 |
106 DISALLOW_COPY_AND_ASSIGN(ShellWindowLauncherItemController); | 103 DISALLOW_COPY_AND_ASSIGN(ShellWindowLauncherItemController); |
107 }; | 104 }; |
108 | 105 |
109 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_ITEM_CONTROLLER_
H_ | 106 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_ITEM_CONTROLLER_
H_ |
OLD | NEW |