diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-12 22:39:51 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-12 22:39:51 +0000 |
commit | 1ae36165f35664d79493c2229fe26b84b04ec4a5 (patch) | |
tree | 61c733b8328aa11a59422697ce147685419ea9f6 /ash/shell.cc | |
parent | c03c06546cd69eb7568f41afe9aa9f5b7963abbd (diff) | |
download | chromium_src-1ae36165f35664d79493c2229fe26b84b04ec4a5.zip chromium_src-1ae36165f35664d79493c2229fe26b84b04ec4a5.tar.gz chromium_src-1ae36165f35664d79493c2229fe26b84b04ec4a5.tar.bz2 |
Remove a bunch of stuff related to Focus/Activation events.
http://crbug.com/162100
R=sadrul@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172624
Review URL: https://codereview.chromium.org/11537019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172674 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell.cc')
-rw-r--r-- | ash/shell.cc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/ash/shell.cc b/ash/shell.cc index de1721d..1651251 100644 --- a/ash/shell.cc +++ b/ash/shell.cc @@ -87,7 +87,6 @@ #include "ui/ui_controls/ui_controls.h" #include "ui/views/corewm/compound_event_filter.h" #include "ui/views/corewm/corewm_switches.h" -#include "ui/views/corewm/focus_change_event.h" #include "ui/views/corewm/focus_controller.h" #include "ui/views/corewm/input_method_event_filter.h" #include "ui/views/corewm/shadow_controller.h" @@ -414,6 +413,7 @@ void Shell::Init() { new views::corewm::FocusController(new wm::AshFocusRules); focus_client_.reset(focus_controller); activation_client_ = focus_controller; + activation_client_->AddObserver(this); } else { focus_client_.reset(new aura::FocusManager); activation_controller_.reset( @@ -891,11 +891,14 @@ ui::EventTarget* Shell::GetParentTarget() { } void Shell::OnEvent(ui::Event* event) { - if (event->type() == - views::corewm::FocusChangeEvent::activation_changed_event_type()) { - active_root_window_ = - static_cast<aura::Window*>(event->target())->GetRootWindow(); - } +} + +//////////////////////////////////////////////////////////////////////////////// +// Shell, aura::client::ActivationChangeObserver implementation: + +void Shell::OnWindowActivated(aura::Window* gained_active, + aura::Window* lost_active) { + active_root_window_ = gained_active->GetRootWindow(); } } // namespace ash |