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

Unified Diff: ui/aura/test/aura_test_helper.cc

Issue 11299219: Rework FocusManager as FocusClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/test/aura_test_helper.h ('k') | ui/aura/window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/aura_test_helper.cc
===================================================================
--- ui/aura/test/aura_test_helper.cc (revision 169818)
+++ ui/aura/test/aura_test_helper.cc (working copy)
@@ -8,6 +8,7 @@
#include "base/run_loop.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/client/default_capture_client.h"
+#include "ui/aura/client/focus_client.h"
#include "ui/aura/env.h"
#include "ui/aura/focus_manager.h"
#include "ui/aura/root_window.h"
@@ -42,21 +43,21 @@
void AuraTestHelper::SetUp() {
setup_called_ = true;
- aura::Env::GetInstance();
+ Env::GetInstance();
test_screen_.reset(new TestScreen());
gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, test_screen_.get());
root_window_.reset(test_screen_->CreateRootWindowForPrimaryDisplay());
ui_controls::InstallUIControlsAura(CreateUIControlsAura(root_window_.get()));
- focus_manager_.reset(new FocusManager);
- root_window_->set_focus_manager(focus_manager_.get());
+ focus_client_.reset(new FocusManager);
+ client::SetFocusClient(root_window_.get(), focus_client_.get());
stacking_client_.reset(new TestStackingClient(root_window_.get()));
test_activation_client_.reset(
new test::TestActivationClient(root_window_.get()));
capture_client_.reset(new client::DefaultCaptureClient(root_window_.get()));
test_input_method_.reset(new ui::test::DummyInputMethod);
root_window_->SetProperty(
- aura::client::kRootWindowInputMethodKey,
+ client::kRootWindowInputMethodKey,
test_input_method_.get());
root_window_->Show();
@@ -70,11 +71,11 @@
stacking_client_.reset();
test_activation_client_.reset();
capture_client_.reset();
- focus_manager_.reset();
+ focus_client_.reset();
root_window_.reset();
test_screen_.reset();
gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, NULL);
- aura::Env::DeleteInstance();
+ Env::DeleteInstance();
}
void AuraTestHelper::RunAllPendingInMessageLoop() {
« no previous file with comments | « ui/aura/test/aura_test_helper.h ('k') | ui/aura/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698