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

Unified Diff: ash/common/wm/overview/window_selector.h

Issue 2736753005: Converts WmActivationObserver to aura::client::ActivationChangeObserver (Closed)
Patch Set: cleanup Created 3 years, 9 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: ash/common/wm/overview/window_selector.h
diff --git a/ash/common/wm/overview/window_selector.h b/ash/common/wm/overview/window_selector.h
index a5cb74386e85c081ecb2aa3dd8cc009bc8a9c381..84a47502597c05560ec78dfc3e2f963814163685 100644
--- a/ash/common/wm/overview/window_selector.h
+++ b/ash/common/wm/overview/window_selector.h
@@ -13,13 +13,13 @@
#include <vector>
#include "ash/ash_export.h"
-#include "ash/common/wm_activation_observer.h"
#include "base/macros.h"
#include "base/time/time.h"
#include "ui/aura/window_observer.h"
#include "ui/display/display_observer.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/views/controls/textfield/textfield_controller.h"
+#include "ui/wm/public/activation_change_observer.h"
namespace views {
class Textfield;
@@ -31,12 +31,13 @@ class WindowSelectorDelegate;
class WindowSelectorItem;
class WindowSelectorTest;
class WindowGrid;
+class WmWindow;
// The WindowSelector shows a grid of all of your windows, allowing to select
// one by clicking or tapping on it.
class ASH_EXPORT WindowSelector : public display::DisplayObserver,
public aura::WindowObserver,
- public WmActivationObserver,
+ public aura::client::ActivationChangeObserver,
public views::TextfieldController {
public:
// Returns true if the window can be selected in overview mode.
@@ -95,11 +96,12 @@ class ASH_EXPORT WindowSelector : public display::DisplayObserver,
void OnWindowHierarchyChanged(const HierarchyChangeParams& params) override;
void OnWindowDestroying(aura::Window* window) override;
- // WmActivationObserver
- void OnWindowActivated(WmWindow* gained_active,
- WmWindow* lost_active) override;
- void OnAttemptToReactivateWindow(WmWindow* request_active,
- WmWindow* actual_active) override;
+ // aura::client::ActivationChangeObserver:
+ void OnWindowActivated(ActivationReason reason,
+ aura::Window* gained_active,
+ aura::Window* lost_active) override;
+ void OnAttemptToReactivateWindow(aura::Window* request_active,
+ aura::Window* actual_active) override;
// views::TextfieldController:
void ContentsChanged(views::Textfield* sender,

Powered by Google App Engine
This is Rietveld 408576698