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

Unified Diff: ash/display/mouse_cursor_event_filter.cc

Issue 10675011: Rename the remaining usage of Monitor to Display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 6 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/display/mouse_cursor_event_filter.h ('k') | ash/display/multi_display_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/mouse_cursor_event_filter.cc
diff --git a/ash/monitor/mouse_cursor_event_filter.cc b/ash/display/mouse_cursor_event_filter.cc
similarity index 83%
rename from ash/monitor/mouse_cursor_event_filter.cc
rename to ash/display/mouse_cursor_event_filter.cc
index 0c451d1744c1d718dd4e09f3149d11c246e39fa8..0ab6f1cff0e09c1580095415b8ae1cf8c11c2050 100644
--- a/ash/monitor/mouse_cursor_event_filter.cc
+++ b/ash/display/mouse_cursor_event_filter.cc
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ash/monitor/mouse_cursor_event_filter.h"
+#include "ash/display/mouse_cursor_event_filter.h"
-#include "ash/monitor/monitor_controller.h"
+#include "ash/display/display_controller.h"
#include "ui/aura/event.h"
#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
@@ -13,9 +13,9 @@ namespace ash {
namespace internal {
MouseCursorEventFilter::MouseCursorEventFilter(
- MonitorController* monitor_controller)
- : monitor_controller_(monitor_controller) {
- DCHECK(monitor_controller_);
+ DisplayController* display_controller)
+ : display_controller_(display_controller) {
+ DCHECK(display_controller_);
}
MouseCursorEventFilter::~MouseCursorEventFilter() {
@@ -33,7 +33,7 @@ bool MouseCursorEventFilter::PreHandleMouseEvent(aura::Window* target,
aura::RootWindow* current_root = target->GetRootWindow();
gfx::Point location_in_root(event->location());
aura::Window::ConvertPointToWindow(target, current_root, &location_in_root);
- return monitor_controller_->WarpMouseCursorIfNecessary(
+ return display_controller_->WarpMouseCursorIfNecessary(
current_root, location_in_root);
}
« no previous file with comments | « ash/display/mouse_cursor_event_filter.h ('k') | ash/display/multi_display_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698