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

Side by Side Diff: ash/root_window_controller.h

Issue 2070163002: Fix "modal isn't modal in multi displays" issue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 | « no previous file | ash/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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ROOT_WINDOW_CONTROLLER_H_ 5 #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_
6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ 6 #define ASH_ROOT_WINDOW_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // Returns the system tray on this root window. Note that 161 // Returns the system tray on this root window. Note that
162 // calling this on the root window that doesn't have a shelf will 162 // calling this on the root window that doesn't have a shelf will
163 // lead to a crash. 163 // lead to a crash.
164 SystemTray* GetSystemTray(); 164 SystemTray* GetSystemTray();
165 165
166 // Shows context menu at the |location_in_screen|. This uses 166 // Shows context menu at the |location_in_screen|. This uses
167 // |ShellDelegate::CreateContextMenu| to define the content of the menu. 167 // |ShellDelegate::CreateContextMenu| to define the content of the menu.
168 void ShowContextMenu(const gfx::Point& location_in_screen, 168 void ShowContextMenu(const gfx::Point& location_in_screen,
169 ui::MenuSourceType source_type); 169 ui::MenuSourceType source_type);
170 170
171 // True if the window can receive events on this root window.
172 bool CanWindowReceiveEvents(aura::Window* window);
173
171 // Returns the layout-manager for the appropriate modal-container. If the 174 // Returns the layout-manager for the appropriate modal-container. If the
172 // window is inside the lockscreen modal container, then the layout manager 175 // window is inside the lockscreen modal container, then the layout manager
173 // for that is returned. Otherwise the layout manager for the default modal 176 // for that is returned. Otherwise the layout manager for the default modal
174 // container is returned. 177 // container is returned.
175 // If no window is specified (i.e. |window| is NULL), then the lockscreen 178 // If no window is specified (i.e. |window| is NULL), then the lockscreen
176 // modal container is used if the screen is currently locked. Otherwise, the 179 // modal container is used if the screen is currently locked. Otherwise, the
177 // default modal container is used. 180 // default modal container is used.
178 SystemModalContainerLayoutManager* GetSystemModalLayoutManager( 181 SystemModalContainerLayoutManager* GetSystemModalLayoutManager(
179 aura::Window* window); 182 aura::Window* window);
180 183
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 337
335 // On classic ash, returns the RootWindowController for the given |root_window|. 338 // On classic ash, returns the RootWindowController for the given |root_window|.
336 // On mus ash, returns the RootWindowController for the primary display. 339 // On mus ash, returns the RootWindowController for the primary display.
337 // See RootWindowController class comment above. 340 // See RootWindowController class comment above.
338 ASH_EXPORT RootWindowController* GetRootWindowController( 341 ASH_EXPORT RootWindowController* GetRootWindowController(
339 const aura::Window* root_window); 342 const aura::Window* root_window);
340 343
341 } // namespace ash 344 } // namespace ash
342 345
343 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ 346 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698