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

Unified Diff: ui/views/controls/touch/touch_hud_drawer.h

Issue 2092343002: Touch HUD app for mustash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change window manager connection unittest to original Created 4 years, 5 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
« no previous file with comments | « services/ui/ws/window_tree.cc ('k') | ui/views/controls/touch/touch_hud_drawer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/touch/touch_hud_drawer.h
diff --git a/ui/views/animation/ink_drop_stub.h b/ui/views/controls/touch/touch_hud_drawer.h
similarity index 30%
copy from ui/views/animation/ink_drop_stub.h
copy to ui/views/controls/touch/touch_hud_drawer.h
index 00fb4900e4f11385ddaff5f93ec27befcca994bb..43472ea69e9f9d1362ad55ac74bcfa93d637ca8e 100644
--- a/ui/views/animation/ink_drop_stub.h
+++ b/ui/views/controls/touch/touch_hud_drawer.h
@@ -2,28 +2,44 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#ifndef UI_VIEWS_CONTROLS_TOUCH_TOUCH_HUD_DRAWER_H_
+#define UI_VIEWS_CONTROLS_TOUCH_TOUCH_HUD_DRAWER_H_
+
+#include <map>
+
#include "base/macros.h"
-#include "ui/views/animation/ink_drop.h"
#include "ui/views/views_export.h"
+namespace ash {
+class TouchHudProjectionTest;
+}
+
+namespace ui {
+class LocatedEvent;
+}
+
namespace views {
+class TouchPointView;
+class Widget;
-// A stub implementation of an InkDrop that can be used when no visuals should
-// be shown. e.g. material design is enabled.
-class VIEWS_EXPORT InkDropStub : public InkDrop {
+class VIEWS_EXPORT TouchHudDrawer {
public:
- InkDropStub();
- ~InkDropStub() override;
+ TouchHudDrawer();
+ ~TouchHudDrawer();
- // InkDrop:
- InkDropState GetTargetInkDropState() const override;
- void AnimateToState(InkDropState state) override;
- void SnapToActivated() override;
- void SetHovered(bool is_hovered) override;
- void SetFocused(bool is_hovered) override;
+ // Called to clear touch points and traces from the screen.
+ void Clear();
+
+ void HandleTouchEvent(const ui::LocatedEvent* event, Widget* parent_widget);
private:
- DISALLOW_COPY_AND_ASSIGN(InkDropStub);
+ friend class ash::TouchHudProjectionTest;
+
+ std::map<int, TouchPointView*> points_;
+
+ DISALLOW_COPY_AND_ASSIGN(TouchHudDrawer);
};
} // namespace views
+
+#endif // UI_VIEWS_CONTROLS_TOUCH_TOUCH_HUD_DRAWER_H_
« no previous file with comments | « services/ui/ws/window_tree.cc ('k') | ui/views/controls/touch/touch_hud_drawer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698