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

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

Issue 1811913004: mus: Allow SetModal to fail gracefully (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed constructor/destructor Created 4 years, 9 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 "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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 uint32_t window_id) {} 84 uint32_t window_id) {}
85 85
86 void TestWindowTree::AddTransientWindow(uint32_t change_id, 86 void TestWindowTree::AddTransientWindow(uint32_t change_id,
87 uint32_t window_id, 87 uint32_t window_id,
88 uint32_t transient_window_id) {} 88 uint32_t transient_window_id) {}
89 89
90 void TestWindowTree::RemoveTransientWindowFromParent( 90 void TestWindowTree::RemoveTransientWindowFromParent(
91 uint32_t change_id, 91 uint32_t change_id,
92 uint32_t transient_window_id) {} 92 uint32_t transient_window_id) {}
93 93
94 void TestWindowTree::SetModal(uint32_t change_id, uint32_t window_id) {} 94 void TestWindowTree::SetModal(uint32_t change_id, uint32_t window_id) {
95 got_change_ = true;
96 change_id_ = change_id;
97 }
95 98
96 void TestWindowTree::ReorderWindow(uint32_t change_id, 99 void TestWindowTree::ReorderWindow(uint32_t change_id,
97 uint32_t window_id, 100 uint32_t window_id,
98 uint32_t relative_window_id, 101 uint32_t relative_window_id,
99 mojom::OrderDirection direction) {} 102 mojom::OrderDirection direction) {}
100 103
101 void TestWindowTree::GetWindowTree(uint32_t window_id, 104 void TestWindowTree::GetWindowTree(uint32_t window_id,
102 const GetWindowTreeCallback& callback) {} 105 const GetWindowTreeCallback& callback) {}
103 106
104 void TestWindowTree::SetCapture(uint32_t change_id, uint32_t window_id) { 107 void TestWindowTree::SetCapture(uint32_t change_id, uint32_t window_id) {
(...skipping 30 matching lines...) Expand all
135 138
136 void TestWindowTree::OnWindowInputEventAck(uint32_t event_id, bool handled) { 139 void TestWindowTree::OnWindowInputEventAck(uint32_t event_id, bool handled) {
137 EXPECT_FALSE(acked_events_.count(event_id)); 140 EXPECT_FALSE(acked_events_.count(event_id));
138 acked_events_.insert(event_id); 141 acked_events_.insert(event_id);
139 } 142 }
140 143
141 void TestWindowTree::GetWindowManagerClient( 144 void TestWindowTree::GetWindowManagerClient(
142 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {} 145 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {}
143 146
144 } // namespace mus 147 } // namespace mus
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698