| 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 69291f7da625dc031173fbce3416d6393579d3ff..91ffd2f46a53ae47339bef4426deb136d175d12b 100644
|
| --- a/ui/views/mus/window_manager_connection.h
|
| +++ b/ui/views/mus/window_manager_connection.h
|
| @@ -32,7 +32,6 @@ namespace views {
|
| class ClipboardMus;
|
| class NativeWidget;
|
| class PointerWatcher;
|
| -class TouchEventWatcher;
|
| class ScreenMus;
|
| namespace internal {
|
| class NativeWidgetDelegate;
|
| @@ -69,12 +68,9 @@ class VIEWS_MUS_EXPORT WindowManagerConnection
|
| const Widget::InitParams& init_params,
|
| internal::NativeWidgetDelegate* delegate);
|
|
|
| - void AddPointerWatcher(PointerWatcher* watcher);
|
| + void AddPointerWatcher(PointerWatcher* watcher, bool want_moves);
|
| void RemovePointerWatcher(PointerWatcher* watcher);
|
|
|
| - void AddTouchEventWatcher(TouchEventWatcher* watcher);
|
| - void RemoveTouchEventWatcher(TouchEventWatcher* watcher);
|
| -
|
| const std::set<ui::Window*>& GetRoots() const;
|
|
|
| private:
|
| @@ -85,12 +81,12 @@ class VIEWS_MUS_EXPORT WindowManagerConnection
|
|
|
| // Returns true if there is one or more watchers for this client.
|
| bool HasPointerWatcher();
|
| - bool HasTouchEventWatcher();
|
|
|
| // ui::WindowTreeClientDelegate:
|
| void OnEmbed(ui::Window* root) override;
|
| void OnDidDestroyClient(ui::WindowTreeClient* client) override;
|
| - void OnEventObserved(const ui::Event& event, ui::Window* target) override;
|
| + void OnPointerEventObserved(const ui::PointerEvent& event,
|
| + ui::Window* target) override;
|
|
|
| // ScreenMusDelegate:
|
| void OnWindowManagerFrameValuesChanged() override;
|
| @@ -103,7 +99,7 @@ class VIEWS_MUS_EXPORT WindowManagerConnection
|
| std::unique_ptr<ui::GpuService> gpu_service_;
|
| // Must be empty on destruction.
|
| base::ObserverList<PointerWatcher, true> pointer_watchers_;
|
| - base::ObserverList<TouchEventWatcher, true> touch_event_watchers_;
|
| + bool pointer_watcher_want_moves_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(WindowManagerConnection);
|
| };
|
|
|