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

Side by Side Diff: ash/mus/window_manager.cc

Issue 2610063002: Cleanup after removing views-mus code (Closed)
Patch Set: merge Created 3 years, 11 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/mus/window_manager.h ('k') | ash/touch_hud/mus/touch_hud_application.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/mus/window_manager.h" 5 #include "ash/mus/window_manager.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "ui/aura/client/window_parenting_client.h" 42 #include "ui/aura/client/window_parenting_client.h"
43 #include "ui/aura/env.h" 43 #include "ui/aura/env.h"
44 #include "ui/aura/mus/property_converter.h" 44 #include "ui/aura/mus/property_converter.h"
45 #include "ui/aura/mus/window_tree_client.h" 45 #include "ui/aura/mus/window_tree_client.h"
46 #include "ui/aura/mus/window_tree_host_mus.h" 46 #include "ui/aura/mus/window_tree_host_mus.h"
47 #include "ui/aura/window.h" 47 #include "ui/aura/window.h"
48 #include "ui/aura/window_property.h" 48 #include "ui/aura/window_property.h"
49 #include "ui/base/hit_test.h" 49 #include "ui/base/hit_test.h"
50 #include "ui/display/display_observer.h" 50 #include "ui/display/display_observer.h"
51 #include "ui/events/mojo/event.mojom.h" 51 #include "ui/events/mojo/event.mojom.h"
52 #include "ui/views/mus/pointer_watcher_event_router2.h" 52 #include "ui/views/mus/pointer_watcher_event_router.h"
53 #include "ui/views/mus/screen_mus.h" 53 #include "ui/views/mus/screen_mus.h"
54 #include "ui/wm/core/capture_controller.h" 54 #include "ui/wm/core/capture_controller.h"
55 #include "ui/wm/core/focus_controller.h" 55 #include "ui/wm/core/focus_controller.h"
56 #include "ui/wm/core/wm_state.h" 56 #include "ui/wm/core/wm_state.h"
57 57
58 namespace ash { 58 namespace ash {
59 namespace mus { 59 namespace mus {
60 namespace { 60 namespace {
61 61
62 // TODO: this is temporary until WindowManager create the real Shell (which is 62 // TODO: this is temporary until WindowManager create the real Shell (which is
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // |connector_| will be null in some tests. 111 // |connector_| will be null in some tests.
112 if (connector_) { 112 if (connector_) {
113 connector_->ConnectToInterface(ui::mojom::kServiceName, 113 connector_->ConnectToInterface(ui::mojom::kServiceName,
114 &display_controller_); 114 &display_controller_);
115 } 115 }
116 116
117 screen_ = base::MakeUnique<ScreenMus>(); 117 screen_ = base::MakeUnique<ScreenMus>();
118 display::Screen::SetScreenInstance(screen_.get()); 118 display::Screen::SetScreenInstance(screen_.get());
119 119
120 pointer_watcher_event_router_ = 120 pointer_watcher_event_router_ =
121 base::MakeUnique<views::PointerWatcherEventRouter2>( 121 base::MakeUnique<views::PointerWatcherEventRouter>(
122 window_tree_client_.get()); 122 window_tree_client_.get());
123 123
124 shadow_controller_ = base::MakeUnique<ShadowController>(); 124 shadow_controller_ = base::MakeUnique<ShadowController>();
125 125
126 ui::mojom::FrameDecorationValuesPtr frame_decoration_values = 126 ui::mojom::FrameDecorationValuesPtr frame_decoration_values =
127 ui::mojom::FrameDecorationValues::New(); 127 ui::mojom::FrameDecorationValues::New();
128 const gfx::Insets client_area_insets = 128 const gfx::Insets client_area_insets =
129 NonClientFrameController::GetPreferredClientAreaInsets(); 129 NonClientFrameController::GetPreferredClientAreaInsets();
130 frame_decoration_values->normal_client_area_insets = client_area_insets; 130 frame_decoration_values->normal_client_area_insets = client_area_insets;
131 frame_decoration_values->maximized_client_area_insets = client_area_insets; 131 frame_decoration_values->maximized_client_area_insets = client_area_insets;
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 499
500 void WindowManager::OnWindowInitialized(aura::Window* window) { 500 void WindowManager::OnWindowInitialized(aura::Window* window) {
501 // This ensures WmWindowAura won't be called before WmWindowMus. This is 501 // This ensures WmWindowAura won't be called before WmWindowMus. This is
502 // important as if WmWindowAura::Get() is called first, then WmWindowAura 502 // important as if WmWindowAura::Get() is called first, then WmWindowAura
503 // would be created, not WmWindowMus. 503 // would be created, not WmWindowMus.
504 WmWindowMus::Get(window); 504 WmWindowMus::Get(window);
505 } 505 }
506 506
507 } // namespace mus 507 } // namespace mus
508 } // namespace ash 508 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/window_manager.h ('k') | ash/touch_hud/mus/touch_hud_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698