| 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/ws/test_utils.h" | 5 #include "components/mus/ws/test_utils.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "cc/output/copy_output_request.h" | 8 #include "cc/output/copy_output_request.h" |
| 9 #include "components/mus/surfaces/surfaces_state.h" | 9 #include "components/mus/surfaces/surfaces_state.h" |
| 10 #include "components/mus/ws/display_binding.h" | 10 #include "components/mus/ws/display_binding.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 void SetCursorById(int32_t cursor) override { *cursor_id_storage_ = cursor; } | 47 void SetCursorById(int32_t cursor) override { *cursor_id_storage_ = cursor; } |
| 48 mojom::Rotation GetRotation() override { return mojom::Rotation::VALUE_0; } | 48 mojom::Rotation GetRotation() override { return mojom::Rotation::VALUE_0; } |
| 49 float GetDeviceScaleFactor() override { | 49 float GetDeviceScaleFactor() override { |
| 50 return display_metrics_.device_scale_factor; | 50 return display_metrics_.device_scale_factor; |
| 51 } | 51 } |
| 52 void UpdateTextInputState(const ui::TextInputState& state) override {} | 52 void UpdateTextInputState(const ui::TextInputState& state) override {} |
| 53 void SetImeVisibility(bool visible) override {} | 53 void SetImeVisibility(bool visible) override {} |
| 54 bool IsFramePending() const override { return false; } | 54 bool IsFramePending() const override { return false; } |
| 55 void RequestCopyOfOutput( | 55 void RequestCopyOfOutput( |
| 56 std::unique_ptr<cc::CopyOutputRequest> output_request) override {} | 56 std::unique_ptr<cc::CopyOutputRequest> output_request) override {} |
| 57 int64_t GetDisplayId() const override { return 1; } |
| 57 | 58 |
| 58 private: | 59 private: |
| 59 ViewportMetrics display_metrics_; | 60 ViewportMetrics display_metrics_; |
| 60 | 61 |
| 61 int32_t* cursor_id_storage_; | 62 int32_t* cursor_id_storage_; |
| 62 | 63 |
| 63 DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplay); | 64 DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplay); |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 ClientWindowId NextUnusedClientWindowId(WindowTree* tree) { | 67 ClientWindowId NextUnusedClientWindowId(WindowTree* tree) { |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 return nullptr; | 483 return nullptr; |
| 483 if (!tree->AddWindow(parent_client_id, client_window_id)) | 484 if (!tree->AddWindow(parent_client_id, client_window_id)) |
| 484 return nullptr; | 485 return nullptr; |
| 485 *client_id = client_window_id; | 486 *client_id = client_window_id; |
| 486 return tree->GetWindowByClientId(client_window_id); | 487 return tree->GetWindowByClientId(client_window_id); |
| 487 } | 488 } |
| 488 | 489 |
| 489 } // namespace test | 490 } // namespace test |
| 490 } // namespace ws | 491 } // namespace ws |
| 491 } // namespace mus | 492 } // namespace mus |
| OLD | NEW |