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

Side by Side Diff: ash/common/wm_root_window_controller.cc

Issue 2430593002: mash: Use ash shell window container ids instead of ash::mojom::Container (Closed)
Patch Set: rebase Created 4 years, 2 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/common/wm/workspace_controller.cc ('k') | ash/common/wm_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 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 #include "ash/common/wm_root_window_controller.h" 5 #include "ash/common/wm_root_window_controller.h"
6 6
7 #include "ash/common/session/session_state_delegate.h" 7 #include "ash/common/session/session_state_delegate.h"
8 #include "ash/common/shelf/shelf_layout_manager.h" 8 #include "ash/common/shelf/shelf_layout_manager.h"
9 #include "ash/common/shelf/shelf_widget.h" 9 #include "ash/common/shelf/shelf_widget.h"
10 #include "ash/common/shelf/wm_shelf.h" 10 #include "ash/common/shelf/wm_shelf.h"
11 #include "ash/common/shell_delegate.h" 11 #include "ash/common/shell_delegate.h"
12 #include "ash/common/shell_window_ids.h"
13 #include "ash/common/system/status_area_widget.h" 12 #include "ash/common/system/status_area_widget.h"
14 #include "ash/common/wallpaper/wallpaper_delegate.h" 13 #include "ash/common/wallpaper/wallpaper_delegate.h"
15 #include "ash/common/wallpaper/wallpaper_widget_controller.h" 14 #include "ash/common/wallpaper/wallpaper_widget_controller.h"
16 #include "ash/common/wm/always_on_top_controller.h" 15 #include "ash/common/wm/always_on_top_controller.h"
17 #include "ash/common/wm/container_finder.h" 16 #include "ash/common/wm/container_finder.h"
18 #include "ash/common/wm/dock/docked_window_layout_manager.h" 17 #include "ash/common/wm/dock/docked_window_layout_manager.h"
19 #include "ash/common/wm/lock_layout_manager.h" 18 #include "ash/common/wm/lock_layout_manager.h"
20 #include "ash/common/wm/panels/panel_layout_manager.h" 19 #include "ash/common/wm/panels/panel_layout_manager.h"
21 #include "ash/common/wm/root_window_layout_manager.h" 20 #include "ash/common/wm/root_window_layout_manager.h"
22 #include "ash/common/wm/system_modal_container_layout_manager.h" 21 #include "ash/common/wm/system_modal_container_layout_manager.h"
23 #include "ash/common/wm/window_state.h" 22 #include "ash/common/wm/window_state.h"
24 #include "ash/common/wm/wm_snap_to_pixel_layout_manager.h" 23 #include "ash/common/wm/wm_snap_to_pixel_layout_manager.h"
25 #include "ash/common/wm/workspace/workspace_layout_manager.h" 24 #include "ash/common/wm/workspace/workspace_layout_manager.h"
26 #include "ash/common/wm/workspace_controller.h" 25 #include "ash/common/wm/workspace_controller.h"
27 #include "ash/common/wm_shell.h" 26 #include "ash/common/wm_shell.h"
28 #include "ash/common/wm_window.h" 27 #include "ash/common/wm_window.h"
28 #include "ash/public/cpp/shell_window_ids.h"
29 #include "base/memory/ptr_util.h" 29 #include "base/memory/ptr_util.h"
30 #include "ui/base/models/menu_model.h" 30 #include "ui/base/models/menu_model.h"
31 #include "ui/views/controls/menu/menu_model_adapter.h" 31 #include "ui/views/controls/menu/menu_model_adapter.h"
32 #include "ui/views/controls/menu/menu_runner.h" 32 #include "ui/views/controls/menu/menu_runner.h"
33 33
34 namespace ash { 34 namespace ash {
35 namespace { 35 namespace {
36 36
37 // Scales |value| that is originally between 0 and |src_max| to be between 37 // Scales |value| that is originally between 0 and |src_max| to be between
38 // 0 and |dst_max|. 38 // 0 and |dst_max|.
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 } 587 }
588 588
589 void WmRootWindowController::OnMenuClosed() { 589 void WmRootWindowController::OnMenuClosed() {
590 menu_runner_.reset(); 590 menu_runner_.reset();
591 menu_model_adapter_.reset(); 591 menu_model_adapter_.reset();
592 menu_model_.reset(); 592 menu_model_.reset();
593 GetShelf()->UpdateVisibilityState(); 593 GetShelf()->UpdateVisibilityState();
594 } 594 }
595 595
596 } // namespace ash 596 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm/workspace_controller.cc ('k') | ash/common/wm_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698