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

Side by Side Diff: ui/aura/test/aura_test_base.cc

Issue 2500973002: Converts test_wm to use aura (Closed)
Patch Set: cleanup Created 4 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/aura/test/aura_test_base.h" 5 #include "ui/aura/test/aura_test_base.h"
6 6
7 #include "ui/aura/client/window_parenting_client.h" 7 #include "ui/aura/client/window_parenting_client.h"
8 #include "ui/aura/mus/property_converter.h" 8 #include "ui/aura/mus/property_converter.h"
9 #include "ui/aura/mus/window_tree_client.h" 9 #include "ui/aura/mus/window_tree_client.h"
10 #include "ui/aura/mus/window_tree_host_mus.h" 10 #include "ui/aura/mus/window_tree_host_mus.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 const std::set<Window*>& client_windows, 181 const std::set<Window*>& client_windows,
182 bool janky) {} 182 bool janky) {}
183 183
184 void AuraTestBase::OnWmNewDisplay( 184 void AuraTestBase::OnWmNewDisplay(
185 std::unique_ptr<WindowTreeHostMus> window_tree_host, 185 std::unique_ptr<WindowTreeHostMus> window_tree_host,
186 const display::Display& display) { 186 const display::Display& display) {
187 // Take ownership of the WindowTreeHost. 187 // Take ownership of the WindowTreeHost.
188 window_tree_host_mus_ = std::move(window_tree_host); 188 window_tree_host_mus_ = std::move(window_tree_host);
189 } 189 }
190 190
191 void AuraTestBase::OnWmDisplayRemoved(Window* window) {} 191 void AuraTestBase::OnWmDisplayRemoved(WindowTreeHostMus* window_tree_host) {
192 if (window_tree_host_mus_.get() == window_tree_host)
193 window_tree_host_mus_.reset();
194 }
192 195
193 void AuraTestBase::OnWmDisplayModified(const display::Display& display) {} 196 void AuraTestBase::OnWmDisplayModified(const display::Display& display) {}
194 197
195 ui::mojom::EventResult AuraTestBase::OnAccelerator(uint32_t id, 198 ui::mojom::EventResult AuraTestBase::OnAccelerator(uint32_t id,
196 const ui::Event& event) { 199 const ui::Event& event) {
197 return ui::mojom::EventResult::HANDLED; 200 return ui::mojom::EventResult::HANDLED;
198 } 201 }
199 202
200 void AuraTestBase::OnWmPerformMoveLoop( 203 void AuraTestBase::OnWmPerformMoveLoop(
201 Window* window, 204 Window* window,
(...skipping 19 matching lines...) Expand all
221 224
222 void AuraTestBaseWithType::SetUp() { 225 void AuraTestBaseWithType::SetUp() {
223 DCHECK(!setup_called_); 226 DCHECK(!setup_called_);
224 setup_called_ = true; 227 setup_called_ = true;
225 ConfigureBackend(GetParam()); 228 ConfigureBackend(GetParam());
226 AuraTestBase::SetUp(); 229 AuraTestBase::SetUp();
227 } 230 }
228 231
229 } // namespace test 232 } // namespace test
230 } // namespace aura 233 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698