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_ |