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

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

Issue 2179273002: Mojo C++ bindings: support mapping T and T? differently. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 const gfx::Rect& bounds) { 48 const gfx::Rect& bounds) {
49 got_change_ = true; 49 got_change_ = true;
50 change_id_ = change_id; 50 change_id_ = change_id;
51 } 51 }
52 52
53 void TestWindowTree::SetClientArea( 53 void TestWindowTree::SetClientArea(
54 uint32_t window_id, 54 uint32_t window_id,
55 const gfx::Insets& insets, 55 const gfx::Insets& insets,
56 mojo::Array<gfx::Rect> additional_client_areas) {} 56 mojo::Array<gfx::Rect> additional_client_areas) {}
57 57
58 void TestWindowTree::SetHitTestMask(uint32_t window_id, const gfx::Rect& mask) { 58 void TestWindowTree::SetHitTestMask(uint32_t window_id,
59 } 59 const base::Optional<gfx::Rect>& mask) {}
60 60
61 void TestWindowTree::SetWindowVisibility(uint32_t change_id, 61 void TestWindowTree::SetWindowVisibility(uint32_t change_id,
62 uint32_t window_id, 62 uint32_t window_id,
63 bool visible) { 63 bool visible) {
64 got_change_ = true; 64 got_change_ = true;
65 change_id_ = change_id; 65 change_id_ = change_id;
66 } 66 }
67 67
68 void TestWindowTree::SetWindowProperty(uint32_t change_id, 68 void TestWindowTree::SetWindowProperty(uint32_t change_id,
69 uint32_t window_id, 69 uint32_t window_id,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 } 168 }
169 169
170 void TestWindowTree::PerformWindowMove(uint32_t change_id, 170 void TestWindowTree::PerformWindowMove(uint32_t change_id,
171 uint32_t window_id, 171 uint32_t window_id,
172 mojom::MoveLoopSource source, 172 mojom::MoveLoopSource source,
173 const gfx::Point& cursor_location) {} 173 const gfx::Point& cursor_location) {}
174 174
175 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} 175 void TestWindowTree::CancelWindowMove(uint32_t window_id) {}
176 176
177 } // namespace ui 177 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/public/cpp/tests/test_window_tree.h ('k') | services/ui/ws/scheduled_animation_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698