OLD | NEW |
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 "mash/wm/test/wm_test_helper.h" | 5 #include "mash/wm/test/wm_test_helper.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "components/mus/public/cpp/property_type_converters.h" | 8 #include "components/mus/public/cpp/property_type_converters.h" |
9 #include "components/mus/public/cpp/window_tree_connection.h" | 9 #include "components/mus/public/cpp/window_tree_client.h" |
10 #include "mash/wm/root_window_controller.h" | 10 #include "mash/wm/root_window_controller.h" |
11 #include "mash/wm/test/wm_test_screen.h" | 11 #include "mash/wm/test/wm_test_screen.h" |
12 #include "mash/wm/window_manager.h" | 12 #include "mash/wm/window_manager.h" |
13 #include "mash/wm/window_manager.h" | 13 #include "mash/wm/window_manager.h" |
14 #include "mash/wm/window_manager_application.h" | 14 #include "mash/wm/window_manager_application.h" |
15 #include "ui/display/display.h" | 15 #include "ui/display/display.h" |
16 | 16 |
17 namespace mash { | 17 namespace mash { |
18 namespace wm { | 18 namespace wm { |
19 | 19 |
(...skipping 17 matching lines...) Expand all Loading... |
37 root_window_controller->display_.set_bounds(display_bounds); | 37 root_window_controller->display_.set_bounds(display_bounds); |
38 // Offset the height slightly to give a different work area. -20 is arbitrary, | 38 // Offset the height slightly to give a different work area. -20 is arbitrary, |
39 // it could be anything. | 39 // it could be anything. |
40 const gfx::Rect work_area(0, 0, display_bounds.width(), | 40 const gfx::Rect work_area(0, 0, display_bounds.width(), |
41 display_bounds.height() - 20); | 41 display_bounds.height() - 20); |
42 root_window_controller->display_.set_work_area(work_area); | 42 root_window_controller->display_.set_work_area(work_area); |
43 | 43 |
44 screen_->display_list()->AddDisplay(root_window_controller->display(), | 44 screen_->display_list()->AddDisplay(root_window_controller->display(), |
45 views::DisplayList::Type::PRIMARY); | 45 views::DisplayList::Type::PRIMARY); |
46 | 46 |
47 window_tree_connection_setup_.Init( | 47 window_tree_client_setup_.Init( |
48 root_window_controller, root_window_controller->window_manager_.get()); | 48 root_window_controller, root_window_controller->window_manager_.get()); |
49 root_window_controller->root()->SetBounds(display_bounds); | 49 root_window_controller->root()->SetBounds(display_bounds); |
50 window_manager_app_.AddRootWindowController(root_window_controller); | 50 window_manager_app_.AddRootWindowController(root_window_controller); |
51 } | 51 } |
52 | 52 |
53 } // namespace wm | 53 } // namespace wm |
54 } // namespace mash | 54 } // namespace mash |
OLD | NEW |