| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 float GetDeviceScaleFactor() override { | 59 float GetDeviceScaleFactor() override { |
| 60 return display_metrics_.device_scale_factor; | 60 return display_metrics_.device_scale_factor; |
| 61 } | 61 } |
| 62 void UpdateTextInputState(const ui::TextInputState& state) override {} | 62 void UpdateTextInputState(const ui::TextInputState& state) override {} |
| 63 void SetImeVisibility(bool visible) override {} | 63 void SetImeVisibility(bool visible) override {} |
| 64 bool IsFramePending() const override { return false; } | 64 bool IsFramePending() const override { return false; } |
| 65 void RequestCopyOfOutput( | 65 void RequestCopyOfOutput( |
| 66 std::unique_ptr<cc::CopyOutputRequest> output_request) override {} | 66 std::unique_ptr<cc::CopyOutputRequest> output_request) override {} |
| 67 gfx::Rect GetBounds() const override { return display_metrics_.bounds; } | 67 gfx::Rect GetBounds() const override { return display_metrics_.bounds; } |
| 68 bool IsPrimaryDisplay() const override { return is_primary_; } | 68 bool IsPrimaryDisplay() const override { return is_primary_; } |
| 69 void OnGpuChannelEstablished( |
| 70 scoped_refptr<gpu::GpuChannelHost> host) override {} |
| 69 | 71 |
| 70 private: | 72 private: |
| 71 ViewportMetrics display_metrics_; | 73 ViewportMetrics display_metrics_; |
| 72 | 74 |
| 73 int64_t id_; | 75 int64_t id_; |
| 74 bool is_primary_; | 76 bool is_primary_; |
| 75 int32_t* cursor_id_storage_; | 77 int32_t* cursor_id_storage_; |
| 76 | 78 |
| 77 DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplay); | 79 DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplay); |
| 78 }; | 80 }; |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 return nullptr; | 543 return nullptr; |
| 542 if (!tree->AddWindow(parent_client_id, client_window_id)) | 544 if (!tree->AddWindow(parent_client_id, client_window_id)) |
| 543 return nullptr; | 545 return nullptr; |
| 544 *client_id = client_window_id; | 546 *client_id = client_window_id; |
| 545 return tree->GetWindowByClientId(client_window_id); | 547 return tree->GetWindowByClientId(client_window_id); |
| 546 } | 548 } |
| 547 | 549 |
| 548 } // namespace test | 550 } // namespace test |
| 549 } // namespace ws | 551 } // namespace ws |
| 550 } // namespace ui | 552 } // namespace ui |
| OLD | NEW |