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

Side by Side Diff: components/mus/public/cpp/tests/test_window_tree.cc

Issue 1991973003: mash: Preliminary support for widget hit test masks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 | « components/mus/public/cpp/tests/test_window_tree.h ('k') | components/mus/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 "components/mus/public/cpp/tests/test_window_tree.h" 5 #include "components/mus/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 mus { 9 namespace mus {
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 mojo::RectPtr bounds) { 48 mojo::RectPtr 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 mojo::InsetsPtr insets, 55 mojo::InsetsPtr insets,
56 mojo::Array<mojo::RectPtr> additional_client_areas) {} 56 mojo::Array<mojo::RectPtr> additional_client_areas) {}
57 57
58 void TestWindowTree::SetHitTestMask(uint32_t window_id, mojo::RectPtr mask) {}
59
58 void TestWindowTree::SetWindowVisibility(uint32_t change_id, 60 void TestWindowTree::SetWindowVisibility(uint32_t change_id,
59 uint32_t window_id, 61 uint32_t window_id,
60 bool visible) { 62 bool visible) {
61 got_change_ = true; 63 got_change_ = true;
62 change_id_ = change_id; 64 change_id_ = change_id;
63 } 65 }
64 66
65 void TestWindowTree::SetWindowProperty(uint32_t change_id, 67 void TestWindowTree::SetWindowProperty(uint32_t change_id,
66 uint32_t window_id, 68 uint32_t window_id,
67 const mojo::String& name, 69 const mojo::String& name,
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 156
155 void TestWindowTree::GetWindowManagerClient( 157 void TestWindowTree::GetWindowManagerClient(
156 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {} 158 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {}
157 159
158 void TestWindowTree::GetCursorLocationMemory( 160 void TestWindowTree::GetCursorLocationMemory(
159 const GetCursorLocationMemoryCallback& callback) { 161 const GetCursorLocationMemoryCallback& callback) {
160 callback.Run(mojo::ScopedSharedBufferHandle()); 162 callback.Run(mojo::ScopedSharedBufferHandle());
161 } 163 }
162 164
163 } // namespace mus 165 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/public/cpp/tests/test_window_tree.h ('k') | components/mus/public/cpp/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698