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

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

Issue 2480273003: Revert of Improves focus/activation for aura-mus and DesktopNativeWidgetAura (Closed)
Patch Set: 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
« no previous file with comments | « ui/aura/test/aura_test_base.h ('k') | ui/aura/test/aura_test_helper.cc » ('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 (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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 } 225 }
226 226
227 void AuraTestBase::OnWmPerformMoveLoop( 227 void AuraTestBase::OnWmPerformMoveLoop(
228 Window* window, 228 Window* window,
229 ui::mojom::MoveLoopSource source, 229 ui::mojom::MoveLoopSource source,
230 const gfx::Point& cursor_location, 230 const gfx::Point& cursor_location,
231 const base::Callback<void(bool)>& on_done) {} 231 const base::Callback<void(bool)>& on_done) {}
232 232
233 void AuraTestBase::OnWmCancelMoveLoop(Window* window) {} 233 void AuraTestBase::OnWmCancelMoveLoop(Window* window) {}
234 234
235 client::FocusClient* AuraTestBase::GetFocusClient() {
236 return helper_->focus_client();
237 }
238
235 client::CaptureClient* AuraTestBase::GetCaptureClient() { 239 client::CaptureClient* AuraTestBase::GetCaptureClient() {
236 return helper_->capture_client(); 240 return helper_->capture_client();
237 } 241 }
238 242
239 PropertyConverter* AuraTestBase::GetPropertyConverter() { 243 PropertyConverter* AuraTestBase::GetPropertyConverter() {
240 return property_converter_.get(); 244 return property_converter_.get();
241 } 245 }
242 246
243 AuraTestBaseWithType::AuraTestBaseWithType() {} 247 AuraTestBaseWithType::AuraTestBaseWithType() {}
244 248
245 AuraTestBaseWithType::~AuraTestBaseWithType() { 249 AuraTestBaseWithType::~AuraTestBaseWithType() {
246 DCHECK(setup_called_); 250 DCHECK(setup_called_);
247 } 251 }
248 252
249 void AuraTestBaseWithType::SetUp() { 253 void AuraTestBaseWithType::SetUp() {
250 DCHECK(!setup_called_); 254 DCHECK(!setup_called_);
251 setup_called_ = true; 255 setup_called_ = true;
252 ConfigureBackend(GetParam()); 256 ConfigureBackend(GetParam());
253 AuraTestBase::SetUp(); 257 AuraTestBase::SetUp();
254 } 258 }
255 259
256 } // namespace test 260 } // namespace test
257 } // namespace aura 261 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/test/aura_test_base.h ('k') | ui/aura/test/aura_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698