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

Side by Side Diff: ash/shell_port.h

Issue 2886253002: mash: remove more shell/shelf WmWindow usage. (Closed)
Patch Set: Fix WmShelf::ForWindow. Created 3 years, 7 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
« no previous file with comments | « ash/shell/window_watcher.cc ('k') | ash/shell_port.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_SHELL_PORT_H_ 5 #ifndef ASH_SHELL_PORT_H_
6 #define ASH_SHELL_PORT_H_ 6 #define ASH_SHELL_PORT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 public: 70 public:
71 virtual ~ShellPort(); 71 virtual ~ShellPort();
72 72
73 static ShellPort* Get(); 73 static ShellPort* Get();
74 static bool HasInstance() { return instance_ != nullptr; } 74 static bool HasInstance() { return instance_ != nullptr; }
75 75
76 virtual void Shutdown(); 76 virtual void Shutdown();
77 77
78 virtual Config GetAshConfig() const = 0; 78 virtual Config GetAshConfig() const = 0;
79 79
80 // Convenience for GetPrimaryRootWindow()->GetRootWindowController(). 80 virtual aura::Window* GetPrimaryRootWindow() = 0;
81 RootWindowController* GetPrimaryRootWindowController();
82
83 virtual WmWindow* GetPrimaryRootWindow() = 0;
84 81
85 // Returns the root window for the specified display. 82 // Returns the root window for the specified display.
86 virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0; 83 virtual aura::Window* GetRootWindowForDisplayId(int64_t display_id) = 0;
87 84
88 // Retuns the display info associated with |display_id|. 85 // Retuns the display info associated with |display_id|.
89 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 86 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480
90 virtual const display::ManagedDisplayInfo& GetDisplayInfo( 87 virtual const display::ManagedDisplayInfo& GetDisplayInfo(
91 int64_t display_id) const = 0; 88 int64_t display_id) const = 0;
92 89
93 // Matches that of DisplayManager::IsActiveDisplayId(). 90 // Matches that of DisplayManager::IsActiveDisplayId().
94 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 91 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480
95 virtual bool IsActiveDisplayId(int64_t display_id) const = 0; 92 virtual bool IsActiveDisplayId(int64_t display_id) const = 0;
96 93
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 static ShellPort* instance_; 241 static ShellPort* instance_;
245 242
246 base::ObserverList<LockStateObserver> lock_state_observers_; 243 base::ObserverList<LockStateObserver> lock_state_observers_;
247 244
248 bool simulate_modal_window_open_for_testing_ = false; 245 bool simulate_modal_window_open_for_testing_ = false;
249 }; 246 };
250 247
251 } // namespace ash 248 } // namespace ash
252 249
253 #endif // ASH_SHELL_PORT_H_ 250 #endif // ASH_SHELL_PORT_H_
OLDNEW
« no previous file with comments | « ash/shell/window_watcher.cc ('k') | ash/shell_port.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698