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

Unified Diff: ash/wm/maximize_mode/maximize_mode_event_handler_aura.h

Issue 2909763002: Revert of Rename MaximizeMode to TabletMode (Closed)
Patch Set: Created 3 years, 7 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/maximize_mode/maximize_mode_event_handler_aura.h
diff --git a/ash/wm/maximize_mode/maximize_mode_event_handler_aura.h b/ash/wm/maximize_mode/maximize_mode_event_handler_aura.h
new file mode 100644
index 0000000000000000000000000000000000000000..4cc7e233f30abd762ecb52a750f624d2fef33039
--- /dev/null
+++ b/ash/wm/maximize_mode/maximize_mode_event_handler_aura.h
@@ -0,0 +1,32 @@
+// 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_MAXIMIZE_MODE_MAXIMIZE_MODE_EVENT_HANDLER_AURA_H_
+#define ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_EVENT_HANDLER_AURA_H_
+
+#include "ash/ash_export.h"
+#include "ash/wm/maximize_mode/maximize_mode_event_handler.h"
+#include "ui/events/event_handler.h"
+
+namespace ash {
+namespace wm {
+
+// Implementation of MaximizeModeEventHandler for aura. Uses ui::EventHandler.
+class ASH_EXPORT MaximizeModeEventHandlerAura : public MaximizeModeEventHandler,
+ public ui::EventHandler {
+ public:
+ MaximizeModeEventHandlerAura();
+ ~MaximizeModeEventHandlerAura() override;
+
+ private:
+ // ui::EventHandler override:
+ void OnTouchEvent(ui::TouchEvent* event) override;
+
+ DISALLOW_COPY_AND_ASSIGN(MaximizeModeEventHandlerAura);
+};
+
+} // namespace wm
+} // namespace ash
+
+#endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_EVENT_HANDLER_AURA_H_
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_event_handler.cc ('k') | ash/wm/maximize_mode/maximize_mode_event_handler_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698