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

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

Issue 2163453002: mus: Change PointerWatcher to watch for all events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: AddPointerEventWatcher 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 | « no previous file | 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 ea9619ea287a2db3e0047678724d4fb60c73d6ef..fd5dc4d06013eb06ae070954fcd0156796fc38fc 100644
--- a/ui/views/mus/window_manager_connection.h
+++ b/ui/views/mus/window_manager_connection.h
@@ -27,8 +27,8 @@ class Connector;
namespace views {
class ClipboardMus;
class NativeWidget;
+class PointerEventWatcher;
class PointerWatcher;
-class TouchEventWatcher;
class ScreenMus;
namespace internal {
class NativeWidgetDelegate;
@@ -68,8 +68,10 @@ class VIEWS_MUS_EXPORT WindowManagerConnection
void AddPointerWatcher(PointerWatcher* watcher);
void RemovePointerWatcher(PointerWatcher* watcher);
- void AddTouchEventWatcher(TouchEventWatcher* watcher);
- void RemoveTouchEventWatcher(TouchEventWatcher* watcher);
+ void AddPointerEventWatcher(PointerEventWatcher* watcher,
+ ui::EventPointerType type);
+ void RemovePointerEventWatcher(PointerEventWatcher* watcher,
+ ui::EventPointerType type);
const std::set<ui::Window*>& GetRoots() const;
@@ -82,6 +84,7 @@ class VIEWS_MUS_EXPORT WindowManagerConnection
// Returns true if there is one or more watchers for this client.
bool HasPointerWatcher();
bool HasTouchEventWatcher();
+ bool HasMouseEventWatcher();
// ui::WindowTreeClientDelegate:
void OnEmbed(ui::Window* root) override;
@@ -98,7 +101,8 @@ 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_;
+ base::ObserverList<PointerEventWatcher, true> touch_event_watchers_;
+ base::ObserverList<PointerEventWatcher, true> mouse_event_watchers_;
sadrul 2016/07/20 16:14:54 Can this be an ObserverList<> pointer_event_watche
DISALLOW_COPY_AND_ASSIGN(WindowManagerConnection);
};
« no previous file with comments | « no previous file | ui/views/mus/window_manager_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698