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

Unified Diff: athena/main/athena_main.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 | « athena/home/home_card_impl.cc ('k') | athena/main/debug/debug_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/main/athena_main.cc
diff --git a/athena/main/athena_main.cc b/athena/main/athena_main.cc
index 7ade3c9087575fdcb7a10b46a72d9950ba736d62..f829a2d4952418b8bf127ee6a37ffd55122d548e 100644
--- a/athena/main/athena_main.cc
+++ b/athena/main/athena_main.cc
@@ -17,6 +17,7 @@
#include "athena/main/debug/debug_window.h"
#include "athena/main/placeholder.h"
#include "athena/main/url_search_provider.h"
+#include "athena/screen/public/screen_manager.h"
#include "athena/virtual_keyboard/public/virtual_keyboard_bindings.h"
#include "athena/virtual_keyboard/public/virtual_keyboard_manager.h"
#include "base/command_line.h"
@@ -58,6 +59,20 @@ class VirtualKeyboardObserver : public keyboard::KeyboardControllerObserver {
DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardObserver);
};
+class AthenaDesktopController : public apps::ShellDesktopController {
+ public:
+ AthenaDesktopController() {}
+ virtual ~AthenaDesktopController() {}
+
+ private:
+ // apps::ShellDesktopController:
+ virtual wm::FocusRules* CreateFocusRules() OVERRIDE {
+ return athena::ScreenManager::CreateFocusRules();
+ }
+
+ DISALLOW_COPY_AND_ASSIGN(AthenaDesktopController);
+};
+
class AthenaBrowserMainDelegate : public apps::ShellBrowserMainDelegate {
public:
AthenaBrowserMainDelegate() {}
@@ -100,7 +115,7 @@ class AthenaBrowserMainDelegate : public apps::ShellBrowserMainDelegate {
virtual apps::ShellDesktopController* CreateDesktopController() OVERRIDE {
// TODO(mukai): create Athena's own ShellDesktopController subclass so that
// it can initialize its own window manager logic.
- apps::ShellDesktopController* desktop = new apps::ShellDesktopController();
+ apps::ShellDesktopController* desktop = new AthenaDesktopController();
desktop->SetAppWindowController(new athena::AthenaAppWindowController());
return desktop;
}
« no previous file with comments | « athena/home/home_card_impl.cc ('k') | athena/main/debug/debug_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698