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

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

Issue 2610063002: Cleanup after removing views-mus code (Closed)
Patch Set: merge Created 3 years, 12 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 | « ui/views/mus/mus_client.cc ('k') | ui/views/mus/pointer_watcher_event_router.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/pointer_watcher_event_router.h
diff --git a/ui/views/mus/pointer_watcher_event_router2.h b/ui/views/mus/pointer_watcher_event_router.h
similarity index 78%
rename from ui/views/mus/pointer_watcher_event_router2.h
rename to ui/views/mus/pointer_watcher_event_router.h
index 5a963b8e5329b8bbdf6f0bdd4432c99ad0707749..4e2500c56e69b9470b6aa1b5c3e50e2a84ba75a3 100644
--- a/ui/views/mus/pointer_watcher_event_router2.h
+++ b/ui/views/mus/pointer_watcher_event_router.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef UI_VIEWS_MUS_POINTER_WATCHER_EVENT_ROUTER2_H_
-#define UI_VIEWS_MUS_POINTER_WATCHER_EVENT_ROUTER2_H_
+#ifndef UI_VIEWS_MUS_POINTER_WATCHER_EVENT_ROUTER_H_
+#define UI_VIEWS_MUS_POINTER_WATCHER_EVENT_ROUTER_H_
#include "base/compiler_specific.h"
#include "base/macros.h"
@@ -23,14 +23,13 @@ class PointerEvent;
namespace views {
class PointerWatcher;
-class PointerWatcherEventRouter2Test;
+class PointerWatcherEventRouterTest;
-// PointerWatcherEventRouter2 is responsible for maintaining the list of
+// PointerWatcherEventRouter is responsible for maintaining the list of
// PointerWatchers and notifying appropriately. It is expected the owner of
-// PointerWatcherEventRouter2 is a WindowTreeClientDelegate and calls
+// PointerWatcherEventRouter is a WindowTreeClientDelegate and calls
// OnPointerEventObserved().
-// TODO(sky): Nuke existing PointerWatcherEventRouter and rename this.
-class VIEWS_MUS_EXPORT PointerWatcherEventRouter2
+class VIEWS_MUS_EXPORT PointerWatcherEventRouter
: public aura::WindowTreeClientObserver,
public aura::client::CaptureClientObserver {
public:
@@ -46,9 +45,9 @@ class VIEWS_MUS_EXPORT PointerWatcherEventRouter2
MOVE_EVENTS,
};
- explicit PointerWatcherEventRouter2(
+ explicit PointerWatcherEventRouter(
aura::WindowTreeClient* window_tree_client);
- ~PointerWatcherEventRouter2() override;
+ ~PointerWatcherEventRouter() override;
// Called by WindowTreeClientDelegate to notify PointerWatchers appropriately.
void OnPointerEventObserved(const ui::PointerEvent& event,
@@ -58,7 +57,7 @@ class VIEWS_MUS_EXPORT PointerWatcherEventRouter2
void RemovePointerWatcher(PointerWatcher* watcher);
private:
- friend class PointerWatcherEventRouter2Test;
+ friend class PointerWatcherEventRouterTest;
// Determines EventTypes based on the number and type of PointerWatchers.
EventTypes DetermineEventTypes();
@@ -80,9 +79,9 @@ class VIEWS_MUS_EXPORT PointerWatcherEventRouter2
EventTypes event_types_ = EventTypes::NONE;
- DISALLOW_COPY_AND_ASSIGN(PointerWatcherEventRouter2);
+ DISALLOW_COPY_AND_ASSIGN(PointerWatcherEventRouter);
};
} // namespace views
-#endif // UI_VIEWS_MUS_POINTER_WATCHER_EVENT_ROUTER2_H_
+#endif // UI_VIEWS_MUS_POINTER_WATCHER_EVENT_ROUTER_H_
« no previous file with comments | « ui/views/mus/mus_client.cc ('k') | ui/views/mus/pointer_watcher_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698