Index: ui/views/mus/window_manager_connection.h |
diff --git a/ui/views/mus/window_manager_connection.h b/ui/views/mus/window_manager_connection.h |
index be8338a2482eefb7fdd3c4f47b53c686654e7b5a..ea9619ea287a2db3e0047678724d4fb60c73d6ef 100644 |
--- a/ui/views/mus/window_manager_connection.h |
+++ b/ui/views/mus/window_manager_connection.h |
@@ -28,6 +28,7 @@ namespace views { |
class ClipboardMus; |
class NativeWidget; |
class PointerWatcher; |
+class TouchEventWatcher; |
class ScreenMus; |
namespace internal { |
class NativeWidgetDelegate; |
@@ -67,6 +68,9 @@ class VIEWS_MUS_EXPORT WindowManagerConnection |
void AddPointerWatcher(PointerWatcher* watcher); |
void RemovePointerWatcher(PointerWatcher* watcher); |
+ void AddTouchEventWatcher(TouchEventWatcher* watcher); |
+ void RemoveTouchEventWatcher(TouchEventWatcher* watcher); |
+ |
const std::set<ui::Window*>& GetRoots() const; |
private: |
@@ -75,8 +79,9 @@ class VIEWS_MUS_EXPORT WindowManagerConnection |
WindowManagerConnection(shell::Connector* connector, |
const shell::Identity& identity); |
- // Returns true if there is one or more pointer watchers for this client. |
+ // Returns true if there is one or more watchers for this client. |
bool HasPointerWatcher(); |
+ bool HasTouchEventWatcher(); |
// ui::WindowTreeClientDelegate: |
void OnEmbed(ui::Window* root) override; |
@@ -93,6 +98,7 @@ class VIEWS_MUS_EXPORT WindowManagerConnection |
std::unique_ptr<ui::WindowTreeClient> client_; |
// Must be empty on destruction. |
base::ObserverList<PointerWatcher, true> pointer_watchers_; |
+ base::ObserverList<TouchEventWatcher, true> touch_event_watchers_; |
DISALLOW_COPY_AND_ASSIGN(WindowManagerConnection); |
}; |