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

Side by Side Diff: services/ui/public/cpp/tests/test_window_tree.cc

Issue 2429173005: Mus+Ash: Replace (Server)WindowSurface with (Server)WindowCompositorFrameSink (Closed)
Patch Set: Rebased Created 4 years, 2 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
« no previous file with comments | « services/ui/public/cpp/tests/test_window_tree.h ('k') | services/ui/public/cpp/window.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/public/cpp/tests/test_window_tree.h" 5 #include "services/ui/public/cpp/tests/test_window_tree.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 change_id_ = change_id; 76 change_id_ = change_id;
77 } 77 }
78 78
79 void TestWindowTree::SetWindowOpacity(uint32_t change_id, 79 void TestWindowTree::SetWindowOpacity(uint32_t change_id,
80 uint32_t window_id, 80 uint32_t window_id,
81 float opacity) { 81 float opacity) {
82 got_change_ = true; 82 got_change_ = true;
83 change_id_ = change_id; 83 change_id_ = change_id;
84 } 84 }
85 85
86 void TestWindowTree::AttachSurface( 86 void TestWindowTree::AttachCompositorFrameSink(
87 uint32_t window_id, 87 uint32_t window_id,
88 mojom::SurfaceType type, 88 mojom::CompositorFrameSinkType type,
89 mojo::InterfaceRequest<cc::mojom::MojoCompositorFrameSink> surface, 89 mojo::InterfaceRequest<cc::mojom::MojoCompositorFrameSink> surface,
90 cc::mojom::MojoCompositorFrameSinkClientPtr client) {} 90 cc::mojom::MojoCompositorFrameSinkClientPtr client) {}
91 91
92 void TestWindowTree::AddWindow(uint32_t change_id, 92 void TestWindowTree::AddWindow(uint32_t change_id,
93 uint32_t parent, 93 uint32_t parent,
94 uint32_t child) {} 94 uint32_t child) {}
95 95
96 void TestWindowTree::RemoveWindowFromParent(uint32_t change_id, 96 void TestWindowTree::RemoveWindowFromParent(uint32_t change_id,
97 uint32_t window_id) {} 97 uint32_t window_id) {}
98 98
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 mojom::MoveLoopSource source, 184 mojom::MoveLoopSource source,
185 const gfx::Point& cursor_location) {} 185 const gfx::Point& cursor_location) {}
186 186
187 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} 187 void TestWindowTree::CancelWindowMove(uint32_t window_id) {}
188 188
189 void TestWindowTree::OnWindowSurfaceDetached( 189 void TestWindowTree::OnWindowSurfaceDetached(
190 uint32_t window_id, 190 uint32_t window_id,
191 const cc::SurfaceSequence& sequence) {} 191 const cc::SurfaceSequence& sequence) {}
192 192
193 } // namespace ui 193 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/public/cpp/tests/test_window_tree.h ('k') | services/ui/public/cpp/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698