summaryrefslogtreecommitdiffstats
path: root/aura/root_window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'aura/root_window.cc')
-rw-r--r--aura/root_window.cc35
1 files changed, 0 insertions, 35 deletions
diff --git a/aura/root_window.cc b/aura/root_window.cc
deleted file mode 100644
index 6e3df25..0000000
--- a/aura/root_window.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2011 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 "aura/root_window.h"
-
-#include "base/logging.h"
-#include "aura/event.h"
-#include "aura/window_delegate.h"
-#include "ui/base/events.h"
-
-namespace aura {
-namespace internal {
-
-RootWindow::RootWindow() : Window(NULL), mouse_pressed_handler_(NULL) {
-}
-
-RootWindow::~RootWindow() {
-}
-
-bool RootWindow::HandleMouseEvent(const MouseEvent& event) {
- Window* target = mouse_pressed_handler_;
- if (!target)
- target = GetEventHandlerForPoint(event.location());
- if (event.type() == ui::ET_MOUSE_PRESSED && !mouse_pressed_handler_)
- mouse_pressed_handler_ = target;
- if (target->delegate()) {
- MouseEvent translated_event(event, this, target);
- return target->delegate()->OnMouseEvent(translated_event);
- }
- return false;
-}
-
-} // namespace internal
-} // namespace aura