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_ITEM_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 void RemoveWindow(ui::BaseWindow* window); | 38 void RemoveWindow(ui::BaseWindow* window); |
39 | 39 |
40 void SetActiveWindow(aura::Window* window); | 40 void SetActiveWindow(aura::Window* window); |
41 ui::BaseWindow* GetAppWindow(aura::Window* window); | 41 ui::BaseWindow* GetAppWindow(aura::Window* window); |
42 | 42 |
43 // ash::ShelfItemDelegate overrides: | 43 // ash::ShelfItemDelegate overrides: |
44 AppWindowLauncherItemController* AsAppWindowLauncherItemController() override; | 44 AppWindowLauncherItemController* AsAppWindowLauncherItemController() override; |
45 void ItemSelected(std::unique_ptr<ui::Event> event, | 45 void ItemSelected(std::unique_ptr<ui::Event> event, |
46 int64_t display_id, | 46 int64_t display_id, |
47 ash::ShelfLaunchSource source, | 47 ash::ShelfLaunchSource source, |
48 const ItemSelectedCallback& callback) override; | 48 ItemSelectedCallback callback) override; |
49 void ExecuteCommand(uint32_t command_id, int32_t event_flags) override; | 49 void ExecuteCommand(uint32_t command_id, int32_t event_flags) override; |
50 void Close() override; | 50 void Close() override; |
51 | 51 |
52 // aura::WindowObserver overrides: | 52 // aura::WindowObserver overrides: |
53 void OnWindowPropertyChanged(aura::Window* window, | 53 void OnWindowPropertyChanged(aura::Window* window, |
54 const void* key, | 54 const void* key, |
55 intptr_t old) override; | 55 intptr_t old) override; |
56 | 56 |
57 // Get the number of running applications/incarnations of this. | 57 // Get the number of running applications/incarnations of this. |
58 size_t window_count() const { return windows_.size(); } | 58 size_t window_count() const { return windows_.size(); } |
(...skipping 29 matching lines...) Expand all Loading... |
88 // Pointer to the most recently active app window | 88 // Pointer to the most recently active app window |
89 ui::BaseWindow* last_active_window_ = nullptr; | 89 ui::BaseWindow* last_active_window_ = nullptr; |
90 | 90 |
91 // Scoped list of observed windows (for removal on destruction) | 91 // Scoped list of observed windows (for removal on destruction) |
92 ScopedObserver<aura::Window, aura::WindowObserver> observed_windows_; | 92 ScopedObserver<aura::Window, aura::WindowObserver> observed_windows_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(AppWindowLauncherItemController); | 94 DISALLOW_COPY_AND_ASSIGN(AppWindowLauncherItemController); |
95 }; | 95 }; |
96 | 96 |
97 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_ | 97 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_ |
OLD | NEW |