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 "components/mus/public/cpp/window.h" | 5 #include "components/mus/public/cpp/window.h" |
6 #include "components/mus/public/cpp/window_manager_delegate.h" | 6 #include "components/mus/public/cpp/window_manager_delegate.h" |
7 #include "components/mus/public/cpp/window_tree_client.h" | 7 #include "components/mus/public/cpp/window_tree_client.h" |
8 #include "components/mus/public/cpp/window_tree_client_delegate.h" | 8 #include "components/mus/public/cpp/window_tree_client_delegate.h" |
9 #include "mojo/public/c/system/main.h" | 9 #include "mojo/public/c/system/main.h" |
10 #include "mojo/public/cpp/bindings/binding.h" | 10 #include "mojo/public/cpp/bindings/binding.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 window_manager_client_->AddActivationParent(root_); | 82 window_manager_client_->AddActivationParent(root_); |
83 mus::mojom::FrameDecorationValuesPtr frame_decoration_values = | 83 mus::mojom::FrameDecorationValuesPtr frame_decoration_values = |
84 mus::mojom::FrameDecorationValues::New(); | 84 mus::mojom::FrameDecorationValues::New(); |
85 frame_decoration_values->max_title_bar_button_width = 0; | 85 frame_decoration_values->max_title_bar_button_width = 0; |
86 window_manager_client_->SetFrameDecorationValues( | 86 window_manager_client_->SetFrameDecorationValues( |
87 std::move(frame_decoration_values)); | 87 std::move(frame_decoration_values)); |
88 } | 88 } |
89 void OnAccelerator(uint32_t id, const ui::Event& event) override { | 89 void OnAccelerator(uint32_t id, const ui::Event& event) override { |
90 // Don't care. | 90 // Don't care. |
91 } | 91 } |
| 92 void OnWmPerformMoveLoop(uint32_t change_id, |
| 93 uint32_t window_id, |
| 94 const gfx::Point& cursor_location) override { |
| 95 // Don't care. |
| 96 } |
| 97 void OnWmCancelMoveLoop(uint32_t window_id) override {} |
92 | 98 |
93 mus::Window* root_ = nullptr; | 99 mus::Window* root_ = nullptr; |
94 mus::WindowManagerClient* window_manager_client_ = nullptr; | 100 mus::WindowManagerClient* window_manager_client_ = nullptr; |
95 // See WindowTreeClient for details on ownership. | 101 // See WindowTreeClient for details on ownership. |
96 mus::WindowTreeClient* window_tree_client_ = nullptr; | 102 mus::WindowTreeClient* window_tree_client_ = nullptr; |
97 | 103 |
98 DISALLOW_COPY_AND_ASSIGN(TestWM); | 104 DISALLOW_COPY_AND_ASSIGN(TestWM); |
99 }; | 105 }; |
100 | 106 |
101 } // namespace test | 107 } // namespace test |
102 } // namespace mus | 108 } // namespace mus |
103 | 109 |
104 MojoResult MojoMain(MojoHandle shell_handle) { | 110 MojoResult MojoMain(MojoHandle shell_handle) { |
105 shell::ApplicationRunner runner(new mus::test::TestWM); | 111 shell::ApplicationRunner runner(new mus::test::TestWM); |
106 return runner.Run(shell_handle); | 112 return runner.Run(shell_handle); |
107 } | 113 } |
OLD | NEW |