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

Side by Side Diff: ash/shell_port.h

Issue 2871813002: Converts remaining usage of WmLayoutManager to aura::LayoutManager (Closed)
Patch Set: cleanup 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_observer.h ('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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // Sets work area insets of the display containing |window|, pings observers. 114 // Sets work area insets of the display containing |window|, pings observers.
115 virtual void SetDisplayWorkAreaInsets(WmWindow* window, 115 virtual void SetDisplayWorkAreaInsets(WmWindow* window,
116 const gfx::Insets& insets) = 0; 116 const gfx::Insets& insets) = 0;
117 117
118 // Returns true if a system-modal dialog window is currently open. 118 // Returns true if a system-modal dialog window is currently open.
119 bool IsSystemModalWindowOpen(); 119 bool IsSystemModalWindowOpen();
120 120
121 // Creates a modal background (a partially-opaque fullscreen window) on all 121 // Creates a modal background (a partially-opaque fullscreen window) on all
122 // displays for |window|. 122 // displays for |window|.
123 void CreateModalBackground(WmWindow* window); 123 void CreateModalBackground(aura::Window* window);
124 124
125 // Called when a modal window is removed. It will activate another modal 125 // Called when a modal window is removed. It will activate another modal
126 // window if any, or remove modal screens on all displays. 126 // window if any, or remove modal screens on all displays.
127 void OnModalWindowRemoved(WmWindow* removed); 127 void OnModalWindowRemoved(aura::Window* removed);
128 128
129 // For testing only: set simulation that a modal window is open 129 // For testing only: set simulation that a modal window is open
130 void SimulateModalWindowOpenForTesting(bool modal_window_open) { 130 void SimulateModalWindowOpenForTesting(bool modal_window_open) {
131 simulate_modal_window_open_for_testing_ = modal_window_open; 131 simulate_modal_window_open_for_testing_ = modal_window_open;
132 } 132 }
133 133
134 // See aura::client::CursorClient for details on these. 134 // See aura::client::CursorClient for details on these.
135 virtual void LockCursor() = 0; 135 virtual void LockCursor() = 0;
136 virtual void UnlockCursor() = 0; 136 virtual void UnlockCursor() = 0;
137 virtual bool IsMouseEventsEnabled() = 0; 137 virtual bool IsMouseEventsEnabled() = 0;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 static ShellPort* instance_; 238 static ShellPort* instance_;
239 239
240 base::ObserverList<LockStateObserver> lock_state_observers_; 240 base::ObserverList<LockStateObserver> lock_state_observers_;
241 241
242 bool simulate_modal_window_open_for_testing_ = false; 242 bool simulate_modal_window_open_for_testing_ = false;
243 }; 243 };
244 244
245 } // namespace ash 245 } // namespace ash
246 246
247 #endif // ASH_SHELL_PORT_H_ 247 #endif // ASH_SHELL_PORT_H_
OLDNEW
« no previous file with comments | « ash/shell_observer.h ('k') | ash/shell_port.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698