Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Side by Side Diff: ash/common/wm_root_window_controller.h

Issue 2489723005: chromeos: Make system tray audio item observe CrasAudioHandler directly (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/system/tray/system_tray_notifier.cc ('k') | ash/common/wm_root_window_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ 5 #ifndef ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_
6 #define ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ 6 #define ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/wm/workspace/workspace_types.h" 9 #include "ash/common/wm/workspace/workspace_types.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 13 matching lines...) Expand all
24 class MenuRunner; 24 class MenuRunner;
25 } 25 }
26 26
27 namespace ash { 27 namespace ash {
28 28
29 class AlwaysOnTopController; 29 class AlwaysOnTopController;
30 class AnimatingWallpaperWidgetController; 30 class AnimatingWallpaperWidgetController;
31 class DockedWindowLayoutManager; 31 class DockedWindowLayoutManager;
32 class PanelLayoutManager; 32 class PanelLayoutManager;
33 class SystemModalContainerLayoutManager; 33 class SystemModalContainerLayoutManager;
34 class SystemTray;
34 class WallpaperWidgetController; 35 class WallpaperWidgetController;
35 class WmShelf; 36 class WmShelf;
36 class WmShell; 37 class WmShell;
37 class WmWindow; 38 class WmWindow;
38 class WorkspaceController; 39 class WorkspaceController;
39 40
40 enum class LoginStatus; 41 enum class LoginStatus;
41 42
42 namespace wm { 43 namespace wm {
43 class RootWindowLayoutManager; 44 class RootWindowLayoutManager;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 97
97 virtual WmShelf* GetShelf() = 0; 98 virtual WmShelf* GetShelf() = 0;
98 99
99 // Creates the shelf for this root window and notifies observers. 100 // Creates the shelf for this root window and notifies observers.
100 void CreateShelf(); 101 void CreateShelf();
101 102
102 // Show shelf view if it was created hidden (before session has started). 103 // Show shelf view if it was created hidden (before session has started).
103 // TODO(jamescook): Eliminate this and handle show via Shelf. 104 // TODO(jamescook): Eliminate this and handle show via Shelf.
104 void ShowShelf(); 105 void ShowShelf();
105 106
107 // Returns the system tray controller. May be null for external displays.
108 SystemTray* GetSystemTray();
109
106 // Returns the window associated with this WmRootWindowController. 110 // Returns the window associated with this WmRootWindowController.
107 virtual WmWindow* GetWindow() = 0; 111 virtual WmWindow* GetWindow() = 0;
108 112
109 // Gets the WmWindow whose shell window id is |container_id|. 113 // Gets the WmWindow whose shell window id is |container_id|.
110 WmWindow* GetContainer(int container_id); 114 WmWindow* GetContainer(int container_id);
111 const WmWindow* GetContainer(int container_id) const; 115 const WmWindow* GetContainer(int container_id) const;
112 116
113 // Configures |init_params| prior to initializing |widget|. 117 // Configures |init_params| prior to initializing |widget|.
114 // |shell_container_id| is the id of the container to parent |widget| to. 118 // |shell_container_id| is the id of the container to parent |widget| to.
115 virtual void ConfigureWidgetInitParamsForContainer( 119 virtual void ConfigureWidgetInitParamsForContainer(
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 std::unique_ptr<ui::MenuModel> menu_model_; 189 std::unique_ptr<ui::MenuModel> menu_model_;
186 std::unique_ptr<views::MenuModelAdapter> menu_model_adapter_; 190 std::unique_ptr<views::MenuModelAdapter> menu_model_adapter_;
187 std::unique_ptr<views::MenuRunner> menu_runner_; 191 std::unique_ptr<views::MenuRunner> menu_runner_;
188 192
189 DISALLOW_COPY_AND_ASSIGN(WmRootWindowController); 193 DISALLOW_COPY_AND_ASSIGN(WmRootWindowController);
190 }; 194 };
191 195
192 } // namespace ash 196 } // namespace ash
193 197
194 #endif // ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ 198 #endif // ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/common/system/tray/system_tray_notifier.cc ('k') | ash/common/wm_root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698