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

Side by Side Diff: ash/shell.h

Issue 2336653002: Ports SystemModalContainerLayoutManager to ash/common (Closed)
Patch Set: merge again Created 4 years, 3 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/root_window_controller_unittest.cc ('k') | ash/shell.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_SHELL_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 static int64_t GetTargetDisplayId(); 185 static int64_t GetTargetDisplayId();
186 186
187 // Returns all root windows. 187 // Returns all root windows.
188 static aura::Window::Windows GetAllRootWindows(); 188 static aura::Window::Windows GetAllRootWindows();
189 189
190 static aura::Window* GetContainer(aura::Window* root_window, 190 static aura::Window* GetContainer(aura::Window* root_window,
191 int container_id); 191 int container_id);
192 static const aura::Window* GetContainer(const aura::Window* root_window, 192 static const aura::Window* GetContainer(const aura::Window* root_window,
193 int container_id); 193 int container_id);
194 194
195 // Returns the list of containers that match |container_id| in
196 // all root windows. If |priority_root| is given, the container
197 // in the |priority_root| will be inserted at the top of the list.
198 static std::vector<aura::Window*> GetContainersFromAllRootWindows(
199 int container_id,
200 aura::Window* priority_root);
201
202 // Shows the context menu for the wallpaper and shelf at the screen location. 195 // Shows the context menu for the wallpaper and shelf at the screen location.
203 void ShowContextMenu(const gfx::Point& location_in_screen, 196 void ShowContextMenu(const gfx::Point& location_in_screen,
204 ui::MenuSourceType source_type); 197 ui::MenuSourceType source_type);
205 198
206 // Creates a default views::NonClientFrameView for use by windows in the 199 // Creates a default views::NonClientFrameView for use by windows in the
207 // Ash environment. 200 // Ash environment.
208 views::NonClientFrameView* CreateDefaultNonClientFrameView( 201 views::NonClientFrameView* CreateDefaultNonClientFrameView(
209 views::Widget* widget); 202 views::Widget* widget);
210 203
211 // Sets work area insets of the display containing |window|, pings observers. 204 // Sets work area insets of the display containing |window|, pings observers.
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 } 319 }
327 320
328 aura::client::ActivationClient* activation_client() { 321 aura::client::ActivationClient* activation_client() {
329 return activation_client_; 322 return activation_client_;
330 } 323 }
331 324
332 // Force the shelf to query for it's current visibility state. 325 // Force the shelf to query for it's current visibility state.
333 // TODO(jamescook): Move to Shelf. 326 // TODO(jamescook): Move to Shelf.
334 void UpdateShelfVisibility(); 327 void UpdateShelfVisibility();
335 328
336 // Creates a modal background (a partially-opaque fullscreen window)
337 // on all displays for |window|.
338 void CreateModalBackground(aura::Window* window);
339
340 // Called when a modal window is removed. It will activate
341 // another modal window if any, or remove modal screens
342 // on all displays.
343 void OnModalWindowRemoved(aura::Window* removed);
344
345 // Returns WebNotificationTray on the primary root window. 329 // Returns WebNotificationTray on the primary root window.
346 WebNotificationTray* GetWebNotificationTray(); 330 WebNotificationTray* GetWebNotificationTray();
347 331
348 // Does the primary display have status area? 332 // Does the primary display have status area?
349 bool HasPrimaryStatusArea(); 333 bool HasPrimaryStatusArea();
350 334
351 // Returns the system tray on primary display. 335 // Returns the system tray on primary display.
352 SystemTray* GetPrimarySystemTray(); 336 SystemTray* GetPrimarySystemTray();
353 337
354 static void set_initially_hide_cursor(bool hide) { 338 static void set_initially_hide_cursor(bool hide) {
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 std::unique_ptr<ImmersiveHandlerFactoryAsh> immersive_handler_factory_; 567 std::unique_ptr<ImmersiveHandlerFactoryAsh> immersive_handler_factory_;
584 568
585 bool in_mus_ = false; 569 bool in_mus_ = false;
586 570
587 DISALLOW_COPY_AND_ASSIGN(Shell); 571 DISALLOW_COPY_AND_ASSIGN(Shell);
588 }; 572 };
589 573
590 } // namespace ash 574 } // namespace ash
591 575
592 #endif // ASH_SHELL_H_ 576 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/root_window_controller_unittest.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698