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

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

Issue 2787363002: Moves couple of WmShell methods to standalone functions (Closed)
Patch Set: feedback and fix applist Created 3 years, 8 months 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
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_SHELL_H_ 5 #ifndef ASH_COMMON_WM_SHELL_H_
6 #define ASH_COMMON_WM_SHELL_H_ 6 #define ASH_COMMON_WM_SHELL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 static WmShell* Get(); 67 static WmShell* Get();
68 static bool HasInstance() { return instance_ != nullptr; } 68 static bool HasInstance() { return instance_ != nullptr; }
69 69
70 virtual void Shutdown(); 70 virtual void Shutdown();
71 71
72 // Returns true when ash is running as a service_manager::Service. 72 // Returns true when ash is running as a service_manager::Service.
73 // TODO(sky): remove and convert to GetConfig(). 73 // TODO(sky): remove and convert to GetConfig().
74 virtual bool IsRunningInMash() const = 0; 74 virtual bool IsRunningInMash() const = 0;
75 virtual Config GetConfig() const = 0; 75 virtual Config GetConfig() const = 0;
76 76
77 virtual WmWindow* GetFocusedWindow() = 0;
78 virtual WmWindow* GetActiveWindow() = 0;
79
80 virtual WmWindow* GetCaptureWindow() = 0;
81
82 // Convenience for GetPrimaryRootWindow()->GetRootWindowController(). 77 // Convenience for GetPrimaryRootWindow()->GetRootWindowController().
83 RootWindowController* GetPrimaryRootWindowController(); 78 RootWindowController* GetPrimaryRootWindowController();
84 79
85 virtual WmWindow* GetPrimaryRootWindow() = 0; 80 virtual WmWindow* GetPrimaryRootWindow() = 0;
86 81
87 // Returns the root window for the specified display. 82 // Returns the root window for the specified display.
88 virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0; 83 virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0;
89 84
90 // Retuns the display info associated with |display_id|. 85 // Retuns the display info associated with |display_id|.
91 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 86 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 static WmShell* instance_; 225 static WmShell* instance_;
231 226
232 base::ObserverList<LockStateObserver> lock_state_observers_; 227 base::ObserverList<LockStateObserver> lock_state_observers_;
233 228
234 bool simulate_modal_window_open_for_testing_ = false; 229 bool simulate_modal_window_open_for_testing_ = false;
235 }; 230 };
236 231
237 } // namespace ash 232 } // namespace ash
238 233
239 #endif // ASH_COMMON_WM_SHELL_H_ 234 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW
« no previous file with comments | « ash/common/wm/workspace/workspace_layout_manager.cc ('k') | ash/mus/accelerators/accelerator_controller_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698