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

Unified Diff: ui/views/touch_event_watcher.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 | « ui/views/mus/window_manager_connection.cc ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/touch_event_watcher.h
diff --git a/ui/views/mus/screen_mus_delegate.h b/ui/views/touch_event_watcher.h
similarity index 34%
copy from ui/views/mus/screen_mus_delegate.h
copy to ui/views/touch_event_watcher.h
index 2ae48373b525a51d7ee8f217662aacf089072dd0..e49e63734e00bd001336feabc991b3952aff997e 100644
--- a/ui/views/mus/screen_mus_delegate.h
+++ b/ui/views/touch_event_watcher.h
@@ -2,28 +2,31 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef UI_VIEWS_MUS_SCREEN_MUS_DELEGATE_H_
-#define UI_VIEWS_MUS_SCREEN_MUS_DELEGATE_H_
+#ifndef UI_VIEWS_TOUCH_EVENT_WATCHER_H_
+#define UI_VIEWS_TOUCH_EVENT_WATCHER_H_
-#include "ui/views/mus/mus_export.h"
+#include "ui/views/views_export.h"
namespace gfx {
class Point;
}
+namespace ui {
+class LocatedEvent;
+}
+
namespace views {
+class Widget;
-// Screen implementation backed by ui::mojom::DisplayManager.
-class VIEWS_MUS_EXPORT ScreenMusDelegate {
+class VIEWS_EXPORT TouchEventWatcher {
public:
- virtual void OnWindowManagerFrameValuesChanged() = 0;
-
- virtual gfx::Point GetCursorScreenPoint() = 0;
+ virtual ~TouchEventWatcher() {}
-protected:
- virtual ~ScreenMusDelegate() {}
+ virtual void OnTouchEventObserved(const ui::LocatedEvent& event,
+ const gfx::Point& location_in_screen,
+ Widget* target) = 0;
};
} // namespace views
-#endif // UI_VIEWS_MUS_SCREEN_MUS_DELEGATE_H_
+#endif // UI_VIEWS_TOUCH_EVENT_WATCHER_H_
« no previous file with comments | « ui/views/mus/window_manager_connection.cc ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698