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

Unified Diff: ash/aura/pointer_watcher_adapter.h

Issue 2267023003: ash: Eliminate PointerWatcherDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « ash/ash.gyp ('k') | ash/aura/pointer_watcher_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/pointer_watcher_adapter.h
diff --git a/ash/pointer_watcher_delegate_aura.h b/ash/aura/pointer_watcher_adapter.h
similarity index 75%
rename from ash/pointer_watcher_delegate_aura.h
rename to ash/aura/pointer_watcher_adapter.h
index 2c47e20ed72cf1d40c71f6284897a36e5c0b26a9..b17f8cbd00b610c64f163353020738adf695e262 100644
--- a/ash/pointer_watcher_delegate_aura.h
+++ b/ash/aura/pointer_watcher_adapter.h
@@ -2,8 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#ifndef ASH_AURA_POINTER_WATCHER_ADAPTER_H_
+#define ASH_AURA_POINTER_WATCHER_ADAPTER_H_
+
#include "ash/ash_export.h"
-#include "ash/common/pointer_watcher_delegate.h"
#include "base/macros.h"
#include "base/observer_list.h"
#include "ui/events/event_handler.h"
@@ -18,6 +20,7 @@ class PointerEvent;
}
namespace views {
+class PointerWatcher;
class Widget;
}
@@ -25,16 +28,14 @@ namespace ash {
// Support for PointerWatchers in non-mus ash, implemented with a pre-target
// EventHandler on the Shell.
-class ASH_EXPORT PointerWatcherDelegateAura : public PointerWatcherDelegate,
- public ui::EventHandler {
+class ASH_EXPORT PointerWatcherAdapter : public ui::EventHandler {
public:
- PointerWatcherDelegateAura();
- ~PointerWatcherDelegateAura() override;
+ PointerWatcherAdapter();
+ ~PointerWatcherAdapter() override;
- // PointerWatcherDelegate:
- void AddPointerWatcher(views::PointerWatcher* watcher,
- bool wants_moves) override;
- void RemovePointerWatcher(views::PointerWatcher* watcher) override;
+ // See WmShell::AddPointerWatcher() for details.
+ void AddPointerWatcher(views::PointerWatcher* watcher, bool wants_moves);
+ void RemovePointerWatcher(views::PointerWatcher* watcher);
// ui::EventHandler:
void OnMouseEvent(ui::MouseEvent* event) override;
@@ -58,7 +59,9 @@ class ASH_EXPORT PointerWatcherDelegateAura : public PointerWatcherDelegate,
base::ObserverList<views::PointerWatcher, true> non_move_watchers_;
base::ObserverList<views::PointerWatcher, true> move_watchers_;
- DISALLOW_COPY_AND_ASSIGN(PointerWatcherDelegateAura);
+ DISALLOW_COPY_AND_ASSIGN(PointerWatcherAdapter);
};
} // namespace ash
+
+#endif // ASH_AURA_POINTER_WATCHER_ADAPTER_H_
« no previous file with comments | « ash/ash.gyp ('k') | ash/aura/pointer_watcher_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698