| 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 "services/ui/ws/test_utils.h" | 5 #include "services/ui/ws/test_utils.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "cc/output/copy_output_request.h" | 10 #include "cc/output/copy_output_request.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 return ::display::Display::Rotation::ROTATE_0; | 52 return ::display::Display::Rotation::ROTATE_0; |
| 53 } | 53 } |
| 54 float GetDeviceScaleFactor() override { | 54 float GetDeviceScaleFactor() override { |
| 55 return display_metrics_.device_scale_factor; | 55 return display_metrics_.device_scale_factor; |
| 56 } | 56 } |
| 57 void UpdateTextInputState(const ui::TextInputState& state) override {} | 57 void UpdateTextInputState(const ui::TextInputState& state) override {} |
| 58 void SetImeVisibility(bool visible) override {} | 58 void SetImeVisibility(bool visible) override {} |
| 59 bool IsFramePending() const override { return false; } | 59 bool IsFramePending() const override { return false; } |
| 60 void RequestCopyOfOutput( | 60 void RequestCopyOfOutput( |
| 61 std::unique_ptr<cc::CopyOutputRequest> output_request) override {} | 61 std::unique_ptr<cc::CopyOutputRequest> output_request) override {} |
| 62 int64_t GetDisplayId() const override { return 1; } | 62 int64_t GetId() const override { return 1; } |
| 63 gfx::Rect GetBounds() const override { return display_metrics_.bounds; } | 63 gfx::Rect GetBounds() const override { return display_metrics_.bounds; } |
| 64 | 64 |
| 65 private: | 65 private: |
| 66 ViewportMetrics display_metrics_; | 66 ViewportMetrics display_metrics_; |
| 67 | 67 |
| 68 int32_t* cursor_id_storage_; | 68 int32_t* cursor_id_storage_; |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplay); | 70 DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplay); |
| 71 }; | 71 }; |
| 72 | 72 |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 return nullptr; | 523 return nullptr; |
| 524 if (!tree->AddWindow(parent_client_id, client_window_id)) | 524 if (!tree->AddWindow(parent_client_id, client_window_id)) |
| 525 return nullptr; | 525 return nullptr; |
| 526 *client_id = client_window_id; | 526 *client_id = client_window_id; |
| 527 return tree->GetWindowByClientId(client_window_id); | 527 return tree->GetWindowByClientId(client_window_id); |
| 528 } | 528 } |
| 529 | 529 |
| 530 } // namespace test | 530 } // namespace test |
| 531 } // namespace ws | 531 } // namespace ws |
| 532 } // namespace ui | 532 } // namespace ui |
| OLD | NEW |