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

Unified Diff: ash/wm/workspace/workspace_event_handler_aura.h

Issue 2285703003: Moves WorkspaceEventHandler to ash/common (Closed)
Patch Set: merge to tip of tree 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: ash/wm/workspace/workspace_event_handler_aura.h
diff --git a/ash/wm/workspace/workspace_event_handler_aura.h b/ash/wm/workspace/workspace_event_handler_aura.h
new file mode 100644
index 0000000000000000000000000000000000000000..a8e084da9047f6ae40bdbac4802e4338b049d16b
--- /dev/null
+++ b/ash/wm/workspace/workspace_event_handler_aura.h
@@ -0,0 +1,34 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_AURA_H_
+#define ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_AURA_H_
+
+#include "ash/common/wm/workspace/workspace_event_handler.h"
+#include "base/macros.h"
+#include "ui/events/event_handler.h"
+
+namespace ash {
+
+class WmWindow;
+
+class WorkspaceEventHandlerAura : public ui::EventHandler,
+ public WorkspaceEventHandler {
+ public:
+ explicit WorkspaceEventHandlerAura(WmWindow* workspace_window);
+ ~WorkspaceEventHandlerAura() override;
+
+ // ui::EventHandler:
+ void OnMouseEvent(ui::MouseEvent* event) override;
+ void OnGestureEvent(ui::GestureEvent* event) override;
+
+ private:
+ WmWindow* workspace_window_;
+
+ DISALLOW_COPY_AND_ASSIGN(WorkspaceEventHandlerAura);
+};
+
+} // namespace ash
+
+#endif // ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_AURA_H_

Powered by Google App Engine
This is Rietveld 408576698