Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Side by Side Diff: services/ui/ws/test_utils.cc

Issue 2281583003: services/ui: Split GpuServiceInternal into gpu vs. ws pieces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DONE_2016.08.24_mus-ws-gpu-refactor
Patch Set: tot merge Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698