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

Unified Diff: ui/views/mus/window_manager_connection.h

Issue 2183163002: mus: Change PointerWatcher to observe all pointer events, with moves optional. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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_unittest.cc ('k') | ui/views/mus/window_manager_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 71c894ff6dabce27770f9519c165df7b54a74b8c..a5dd6053517e217a2894d45c836105138d22c927 100644
--- a/ui/views/mus/window_manager_connection.h
+++ b/ui/views/mus/window_manager_connection.h
@@ -33,7 +33,6 @@ namespace views {
class ClipboardMus;
class NativeWidget;
class PointerWatcher;
-class TouchEventWatcher;
class ScreenMus;
namespace internal {
class NativeWidgetDelegate;
@@ -72,12 +71,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:
@@ -88,12 +84,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;
@@ -109,7 +105,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);
};
« no previous file with comments | « services/ui/ws/window_tree_unittest.cc ('k') | ui/views/mus/window_manager_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698