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

Unified Diff: athena/screen/screen_manager_impl.cc

Issue 322503005: Athena's FocusManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
Index: athena/screen/screen_manager_impl.cc
diff --git a/athena/screen/screen_manager_impl.cc b/athena/screen/screen_manager_impl.cc
index ca3101a7698c623e77d6dd3c102d0184e51e6924..e426a80f873e3249c08820fd923c9f5ccb9965eb 100644
--- a/athena/screen/screen_manager_impl.cc
+++ b/athena/screen/screen_manager_impl.cc
@@ -4,12 +4,15 @@
#include "athena/screen/public/screen_manager.h"
+#include "athena/input/public/accelerator_manager.h"
#include "athena/screen/background_controller.h"
+#include "athena/screen/screen_accelerator_handler.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "ui/aura/client/window_tree_client.h"
#include "ui/aura/layout_manager.h"
#include "ui/aura/window.h"
+#include "ui/wm/core/capture_controller.h"
namespace athena {
namespace {
@@ -103,6 +106,8 @@ class ScreenManagerImpl : public ScreenManager {
scoped_ptr<BackgroundController> background_controller_;
scoped_ptr<aura::client::WindowTreeClient> window_tree_client_;
+ scoped_ptr<AcceleratorHandler> accelerator_handler_;
+ scoped_ptr< ::wm::ScopedCaptureClient> capture_client_;
Jun Mukai 2014/06/10 01:43:05 nit: Is there a rule to put space between < and :?
oshima 2014/06/10 05:18:11 Believe or not, <: is reserved (replacement for "[
Jun Mukai 2014/06/10 19:32:50 Whoa, you're right! I've forgotten I hate that th
DISALLOW_COPY_AND_ASSIGN(ScreenManagerImpl);
};
@@ -114,6 +119,9 @@ void ScreenManagerImpl::Init() {
background_window_->SetLayoutManager(
new FillLayoutManager(background_window_));
background_controller_.reset(new BackgroundController(background_window_));
+
+ capture_client_.reset(new ::wm::ScopedCaptureClient(root_window_));
+ accelerator_handler_.reset(new ScreenAcceleratorHandler(root_window_));
}
aura::Window* ScreenManagerImpl::CreateDefaultContainer(

Powered by Google App Engine
This is Rietveld 408576698