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

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

Issue 2068093002: mus: Allow embedder to intercept events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot-merge Created 4 years, 6 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void TestWindowTree::ReleaseCapture(uint32_t change_id, uint32_t window_id) { 122 void TestWindowTree::ReleaseCapture(uint32_t change_id, uint32_t window_id) {
123 got_change_ = true; 123 got_change_ = true;
124 change_id_ = change_id; 124 change_id_ = change_id;
125 } 125 }
126 126
127 void TestWindowTree::SetEventObserver(mojom::EventMatcherPtr matcher, 127 void TestWindowTree::SetEventObserver(mojom::EventMatcherPtr matcher,
128 uint32_t observer_id) {} 128 uint32_t observer_id) {}
129 129
130 void TestWindowTree::Embed(uint32_t window_id, 130 void TestWindowTree::Embed(uint32_t window_id,
131 mojom::WindowTreeClientPtr client, 131 mojom::WindowTreeClientPtr client,
132 uint32_t flags,
132 const EmbedCallback& callback) {} 133 const EmbedCallback& callback) {}
133 134
134 void TestWindowTree::SetFocus(uint32_t change_id, uint32_t window_id) { 135 void TestWindowTree::SetFocus(uint32_t change_id, uint32_t window_id) {
135 got_change_ = true; 136 got_change_ = true;
136 change_id_ = change_id; 137 change_id_ = change_id;
137 } 138 }
138 139
139 void TestWindowTree::SetCanFocus(uint32_t window_id, bool can_focus) {} 140 void TestWindowTree::SetCanFocus(uint32_t window_id, bool can_focus) {}
140 141
141 void TestWindowTree::SetPredefinedCursor(uint32_t change_id, 142 void TestWindowTree::SetPredefinedCursor(uint32_t change_id,
(...skipping 15 matching lines...) Expand all
157 158
158 void TestWindowTree::GetWindowManagerClient( 159 void TestWindowTree::GetWindowManagerClient(
159 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {} 160 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {}
160 161
161 void TestWindowTree::GetCursorLocationMemory( 162 void TestWindowTree::GetCursorLocationMemory(
162 const GetCursorLocationMemoryCallback& callback) { 163 const GetCursorLocationMemoryCallback& callback) {
163 callback.Run(mojo::ScopedSharedBufferHandle()); 164 callback.Run(mojo::ScopedSharedBufferHandle());
164 } 165 }
165 166
166 } // namespace mus 167 } // 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