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

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

Issue 2488723002: Reland 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
239 client::CaptureClient* AuraTestBase::GetCaptureClient() { 235 client::CaptureClient* AuraTestBase::GetCaptureClient() {
240 return helper_->capture_client(); 236 return helper_->capture_client();
241 } 237 }
242 238
243 PropertyConverter* AuraTestBase::GetPropertyConverter() { 239 PropertyConverter* AuraTestBase::GetPropertyConverter() {
244 return property_converter_.get(); 240 return property_converter_.get();
245 } 241 }
246 242
247 AuraTestBaseWithType::AuraTestBaseWithType() {} 243 AuraTestBaseWithType::AuraTestBaseWithType() {}
248 244
249 AuraTestBaseWithType::~AuraTestBaseWithType() { 245 AuraTestBaseWithType::~AuraTestBaseWithType() {
250 DCHECK(setup_called_); 246 DCHECK(setup_called_);
251 } 247 }
252 248
253 void AuraTestBaseWithType::SetUp() { 249 void AuraTestBaseWithType::SetUp() {
254 DCHECK(!setup_called_); 250 DCHECK(!setup_called_);
255 setup_called_ = true; 251 setup_called_ = true;
256 ConfigureBackend(GetParam()); 252 ConfigureBackend(GetParam());
257 AuraTestBase::SetUp(); 253 AuraTestBase::SetUp();
258 } 254 }
259 255
260 } // namespace test 256 } // namespace test
261 } // namespace aura 257 } // 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