| 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 "mojo/public/c/system/main.h" | 5 #include "mojo/public/c/system/main.h" |
| 6 #include "mojo/public/cpp/bindings/binding.h" | 6 #include "mojo/public/cpp/bindings/binding.h" |
| 7 #include "services/shell/public/cpp/application_runner.h" | 7 #include "services/shell/public/cpp/application_runner.h" |
| 8 #include "services/shell/public/cpp/connector.h" | 8 #include "services/shell/public/cpp/connector.h" |
| 9 #include "services/shell/public/cpp/service.h" | 9 #include "services/shell/public/cpp/service.h" |
| 10 #include "services/ui/public/cpp/window.h" | 10 #include "services/ui/public/cpp/window.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 ui::mojom::FrameDecorationValuesPtr frame_decoration_values = | 83 ui::mojom::FrameDecorationValuesPtr frame_decoration_values = |
| 84 ui::mojom::FrameDecorationValues::New(); | 84 ui::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(Window* window, |
| 93 mojom::MoveLoopSource source, |
| 94 const gfx::Point& cursor_location, |
| 95 const base::Callback<void(bool)>& on_done) override { |
| 96 // Don't care. |
| 97 } |
| 98 void OnWmCancelMoveLoop(Window* window) override {} |
| 92 | 99 |
| 93 ui::Window* root_ = nullptr; | 100 ui::Window* root_ = nullptr; |
| 94 ui::WindowManagerClient* window_manager_client_ = nullptr; | 101 ui::WindowManagerClient* window_manager_client_ = nullptr; |
| 95 // See WindowTreeClient for details on ownership. | 102 // See WindowTreeClient for details on ownership. |
| 96 ui::WindowTreeClient* window_tree_client_ = nullptr; | 103 ui::WindowTreeClient* window_tree_client_ = nullptr; |
| 97 | 104 |
| 98 DISALLOW_COPY_AND_ASSIGN(TestWM); | 105 DISALLOW_COPY_AND_ASSIGN(TestWM); |
| 99 }; | 106 }; |
| 100 | 107 |
| 101 } // namespace test | 108 } // namespace test |
| 102 } // namespace ui | 109 } // namespace ui |
| 103 | 110 |
| 104 MojoResult MojoMain(MojoHandle shell_handle) { | 111 MojoResult MojoMain(MojoHandle shell_handle) { |
| 105 shell::ApplicationRunner runner(new ui::test::TestWM); | 112 shell::ApplicationRunner runner(new ui::test::TestWM); |
| 106 return runner.Run(shell_handle); | 113 return runner.Run(shell_handle); |
| 107 } | 114 } |
| OLD | NEW |