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

Unified Diff: ash/wm/activation_controller.h

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 | « ash/shell.cc ('k') | ash/wm/activation_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/activation_controller.h
===================================================================
--- ash/wm/activation_controller.h (revision 169818)
+++ ash/wm/activation_controller.h (working copy)
@@ -11,14 +11,15 @@
#include "base/observer_list.h"
#include "base/scoped_observer.h"
#include "ui/aura/client/activation_client.h"
+#include "ui/aura/client/focus_change_observer.h"
#include "ui/aura/env_observer.h"
-#include "ui/aura/focus_change_observer.h"
#include "ui/aura/window_observer.h"
#include "ui/base/events/event_handler.h"
namespace aura {
namespace client {
class ActivationChangeObserver;
+class FocusClient;
}
}
@@ -32,16 +33,16 @@
: public aura::client::ActivationClient,
public aura::WindowObserver,
public aura::EnvObserver,
- public aura::FocusChangeObserver,
+ public aura::client::FocusChangeObserver,
public ui::EventHandler {
public:
// The ActivationController takes ownership of |delegate|.
- ActivationController(aura::FocusManager* focus_manager,
+ ActivationController(aura::client::FocusClient* focus_client,
ActivationControllerDelegate* delegate);
virtual ~ActivationController();
// Returns true if |window| exists within a container that supports
- // activation. |event| is the revent responsible for initiating the change, or
+ // activation. |event| is the event responsible for initiating the change, or
// NULL if there is no event.
static aura::Window* GetActivatableWindow(aura::Window* window,
const ui::Event* event);
@@ -66,7 +67,7 @@
// Overridden from aura::EnvObserver:
virtual void OnWindowInitialized(aura::Window* window) OVERRIDE;
- // Overridden from aura::FocusChangeObserver:
+ // Overridden from aura::client::FocusChangeObserver:
virtual void OnWindowFocused(aura::Window* window) OVERRIDE;
private:
@@ -99,7 +100,7 @@
// result in focus changes.
void FocusWindowWithEvent(const ui::Event* event);
- aura::FocusManager* focus_manager_;
+ aura::client::FocusClient* focus_client_;
// True inside ActivateWindow(). Used to prevent recursion of focus
// change notifications causing activation.
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/activation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698