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

Unified Diff: ash/pointer_watcher_delegate_aura.h

Issue 2231533004: Pointer watcher modifications to support laser pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Initial patch. 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
Index: ash/pointer_watcher_delegate_aura.h
diff --git a/ash/pointer_watcher_delegate_aura.h b/ash/pointer_watcher_delegate_aura.h
index 1bea01d1b57409a73407ccc832ee7f94883d03d7..44849b2d7bb585f2fd37c05fffa774c3d74e9374 100644
--- a/ash/pointer_watcher_delegate_aura.h
+++ b/ash/pointer_watcher_delegate_aura.h
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <map>
+
#include "ash/ash_export.h"
#include "ash/common/pointer_watcher_delegate.h"
#include "base/macros.h"
@@ -31,7 +33,8 @@ class ASH_EXPORT PointerWatcherDelegateAura : public PointerWatcherDelegate,
~PointerWatcherDelegateAura() override;
// PointerWatcherDelegate:
- void AddPointerWatcher(views::PointerWatcher* watcher) override;
+ void AddPointerWatcher(views::PointerWatcher* watcher,
+ bool wants_moves = false) override;
void RemovePointerWatcher(views::PointerWatcher* watcher) override;
// ui::EventHandler:
@@ -45,6 +48,9 @@ class ASH_EXPORT PointerWatcherDelegateAura : public PointerWatcherDelegate,
// Must be empty on destruction.
base::ObserverList<views::PointerWatcher, true> pointer_watchers_;
+ // Map stores the pointer watchers that want mouse move events.
+ std::map<views::PointerWatcher*, bool> wants_moves_map_;
+
DISALLOW_COPY_AND_ASSIGN(PointerWatcherDelegateAura);
};

Powered by Google App Engine
This is Rietveld 408576698