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

Unified Diff: ash/wm/window_cycle_controller.h

Issue 11421194: Hook up the FocusController behind a flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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/wm/shelf_layout_manager.cc ('k') | ash/wm/window_cycle_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_cycle_controller.h
===================================================================
--- ash/wm/window_cycle_controller.h (revision 170746)
+++ ash/wm/window_cycle_controller.h (working copy)
@@ -11,13 +11,16 @@
#include "ash/ash_export.h"
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
-#include "ui/aura/client/activation_change_observer.h"
#include "ui/aura/window_observer.h"
+#include "ui/views/corewm/activation_change_shim.h"
namespace aura {
class RootWindow;
class Window;
+namespace client {
+class ActivationClient;
}
+}
namespace ui {
class EventHandler;
@@ -25,10 +28,6 @@
namespace ash {
-namespace internal {
-class ActivationController;
-}
-
class WindowCycleList;
// Controls cycling through windows with the keyboard, for example, via alt-tab.
@@ -39,7 +38,7 @@
// at the beginning of the gesture so you can cycle through in a consistent
// order.
class ASH_EXPORT WindowCycleController
- : public aura::client::ActivationChangeObserver,
+ : public views::corewm::ActivationChangeShim,
public aura::WindowObserver {
public:
enum Direction {
@@ -47,7 +46,7 @@
BACKWARD
};
explicit WindowCycleController(
- internal::ActivationController* activation_controller);
+ aura::client::ActivationClient* activation_client);
virtual ~WindowCycleController();
// Returns true if cycling through windows is enabled. This is false at
@@ -98,7 +97,7 @@
// Checks if the window represents a container whose children we track.
static bool IsTrackedContainer(aura::Window* window);
- // Overridden from ActivationChangeObserver:
+ // Overridden from views::corewm::ActivationChangeShim:
virtual void OnWindowActivated(aura::Window* active,
aura::Window* old_active) OVERRIDE;
@@ -116,7 +115,7 @@
// through, sorted by most recently used.
std::list<aura::Window*> mru_windows_;
- internal::ActivationController* activation_controller_;
+ aura::client::ActivationClient* activation_client_;
DISALLOW_COPY_AND_ASSIGN(WindowCycleController);
};
« no previous file with comments | « ash/wm/shelf_layout_manager.cc ('k') | ash/wm/window_cycle_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698