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

Unified Diff: ash/monitor/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/monitor/mouse_cursor_event_filter.h ('k') | ash/monitor/multi_monitor_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/monitor/mouse_cursor_event_filter.cc
diff --git a/ash/monitor/mouse_cursor_event_filter.cc b/ash/monitor/mouse_cursor_event_filter.cc
deleted file mode 100644
index 0c451d1744c1d718dd4e09f3149d11c246e39fa8..0000000000000000000000000000000000000000
--- a/ash/monitor/mouse_cursor_event_filter.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// 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/monitor/monitor_controller.h"
-#include "ui/aura/event.h"
-#include "ui/aura/root_window.h"
-#include "ui/aura/window.h"
-
-namespace ash {
-namespace internal {
-
-MouseCursorEventFilter::MouseCursorEventFilter(
- MonitorController* monitor_controller)
- : monitor_controller_(monitor_controller) {
- DCHECK(monitor_controller_);
-}
-
-MouseCursorEventFilter::~MouseCursorEventFilter() {
-}
-
-bool MouseCursorEventFilter::PreHandleKeyEvent(aura::Window* target,
- aura::KeyEvent* event) {
- return false;
-}
-
-bool MouseCursorEventFilter::PreHandleMouseEvent(aura::Window* target,
- aura::MouseEvent* event) {
- if (event->type() != ui::ET_MOUSE_MOVED)
- return false;
- 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(
- current_root, location_in_root);
-}
-
-ui::TouchStatus MouseCursorEventFilter::PreHandleTouchEvent(
- aura::Window* target,
- aura::TouchEvent* event) {
- return ui::TOUCH_STATUS_UNKNOWN;
-}
-
-ui::GestureStatus MouseCursorEventFilter::PreHandleGestureEvent(
- aura::Window* target,
- aura::GestureEvent* event) {
- return ui::GESTURE_STATUS_UNKNOWN;
-}
-
-} // namespace internal
-} // namespace ash
« no previous file with comments | « ash/monitor/mouse_cursor_event_filter.h ('k') | ash/monitor/multi_monitor_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698