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

Unified Diff: components/exo/touch.cc

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/touch.cc
diff --git a/components/exo/touch.cc b/components/exo/touch.cc
index 255072270964c5ae08db902ac498371300d6f4bb..f0db59594419a36274fe3312914d6f254223ff90 100644
--- a/components/exo/touch.cc
+++ b/components/exo/touch.cc
@@ -4,9 +4,9 @@
#include "components/exo/touch.h"
-#include "ash/shell.h"
#include "components/exo/surface.h"
#include "components/exo/touch_delegate.h"
+#include "components/exo/wm_helper.h"
#include "ui/aura/window.h"
#include "ui/events/event.h"
@@ -32,14 +32,14 @@ bool VectorContainsItem(T& vector, U value) {
// Touch, public:
Touch::Touch(TouchDelegate* delegate) : delegate_(delegate) {
- ash::Shell::GetInstance()->AddPreTargetHandler(this);
+ WMHelper::GetInstance()->AddPreTargetHandler(this);
}
Touch::~Touch() {
delegate_->OnTouchDestroying(this);
if (focus_)
focus_->RemoveSurfaceObserver(this);
- ash::Shell::GetInstance()->RemovePreTargetHandler(this);
+ WMHelper::GetInstance()->RemovePreTargetHandler(this);
}
////////////////////////////////////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698