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

Unified Diff: apps/shell/browser/shell_desktop_controller.cc

Issue 404563002: Athena's FocusRules (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months 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 | « apps/shell/browser/shell_desktop_controller.h ('k') | athena/home/home_card_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shell/browser/shell_desktop_controller.cc
diff --git a/apps/shell/browser/shell_desktop_controller.cc b/apps/shell/browser/shell_desktop_controller.cc
index e9d11ab9202c1b1e8ddb57ea16e190e5e6e2dcd6..88f114a5500e449b1d0fb73b93b0850ec6d4b437 100644
--- a/apps/shell/browser/shell_desktop_controller.cc
+++ b/apps/shell/browser/shell_desktop_controller.cc
@@ -261,7 +261,7 @@ void ShellDesktopController::CreateRootWindow() {
void ShellDesktopController::InitWindowManager() {
wm::FocusController* focus_controller =
- new wm::FocusController(new AppsFocusRules());
+ new wm::FocusController(CreateFocusRules());
aura::client::SetFocusClient(host_->window(), focus_controller);
host_->window()->AddPreTargetHandler(focus_controller);
aura::client::SetActivationClient(host_->window(), focus_controller);
@@ -295,6 +295,10 @@ void ShellDesktopController::InitWindowManager() {
#endif
}
+wm::FocusRules* ShellDesktopController::CreateFocusRules() {
+ return new AppsFocusRules();
+}
+
void ShellDesktopController::DestroyRootWindow() {
host_->RemoveObserver(this);
if (input_method_filter_)
« no previous file with comments | « apps/shell/browser/shell_desktop_controller.h ('k') | athena/home/home_card_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698