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

Unified Diff: ui/aura/bench/bench_main.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/aura.gyp ('k') | ui/aura/client/focus_change_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/bench/bench_main.cc
===================================================================
--- ui/aura/bench/bench_main.cc (revision 169818)
+++ ui/aura/bench/bench_main.cc (working copy)
@@ -308,8 +308,8 @@
root_window.get(),
new aura::client::DefaultCaptureClient(root_window.get()));
- scoped_ptr<aura::FocusManager> focus_manager(new aura::FocusManager);
- root_window->set_focus_manager(focus_manager.get());
+ scoped_ptr<aura::client::FocusClient> focus_client(new aura::FocusManager);
+ aura::client::SetFocusClient(root_window.get(), focus_client.get());
// add layers
ColoredLayer background(SK_ColorRED);
@@ -353,7 +353,7 @@
root_window->ShowRootWindow();
MessageLoopForUI::current()->Run();
- focus_manager.reset();
+ focus_client.reset();
root_window.reset();
ui::CompositorTestSupport::Terminate();
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/client/focus_change_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698