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

Unified Diff: components/exo/shell_surface.h

Issue 2242283002: Add an adapter layer (WMHelper) between exo and ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 4 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: components/exo/shell_surface.h
diff --git a/components/exo/shell_surface.h b/components/exo/shell_surface.h
index 1f8ee3935225d64ba07daecfc50b2f4e567df0b6..1c7e3072d1045684ff0c92d207664547205a4651 100644
--- a/components/exo/shell_surface.h
+++ b/components/exo/shell_surface.h
@@ -14,13 +14,13 @@
#include "base/strings/string16.h"
#include "components/exo/surface_delegate.h"
#include "components/exo/surface_observer.h"
+#include "components/exo/wm_helper.h"
#include "ui/aura/window_observer.h"
#include "ui/base/hit_test.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/vector2d.h"
#include "ui/views/widget/widget_delegate.h"
-#include "ui/wm/public/activation_change_observer.h"
namespace ash {
class WindowResizer;
@@ -44,7 +44,7 @@ class ShellSurface : public SurfaceDelegate,
public views::View,
public ash::wm::WindowStateObserver,
public aura::WindowObserver,
- public aura::client::ActivationChangeObserver {
+ public WMHelper::ActivationObserver {
public:
ShellSurface(Surface* surface,
ShellSurface* parent,
@@ -206,9 +206,8 @@ class ShellSurface : public SurfaceDelegate,
const gfx::Rect& new_bounds) override;
void OnWindowDestroying(aura::Window* window) override;
- // Overridden from aura::client::ActivationChangeObserver:
+ // Overridden from WMHelper::ActivationObserver:
void OnWindowActivated(
- aura::client::ActivationChangeObserver::ActivationReason reason,
aura::Window* gained_active,
aura::Window* lost_active) override;

Powered by Google App Engine
This is Rietveld 408576698