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

Unified Diff: ui/aura/screen_aura.cc

Issue 9696008: TestScreen shouldn't be marked aura export (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again. Created 8 years, 9 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/aura/screen_aura.h ('k') | ui/aura/test/aura_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/screen_aura.cc
diff --git a/ui/aura/screen_aura.cc b/ui/aura/screen_aura.cc
deleted file mode 100644
index 27e070e2b44b0d17e90e8018964c4355366d6d36..0000000000000000000000000000000000000000
--- a/ui/aura/screen_aura.cc
+++ /dev/null
@@ -1,66 +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 "ui/aura/screen_aura.h"
-
-#include "base/logging.h"
-#include "ui/aura/root_window.h"
-#include "ui/aura/window.h"
-#include "ui/gfx/native_widget_types.h"
-
-namespace aura {
-
-ScreenAura::ScreenAura(RootWindow* root_window) : root_window_(root_window) {
-}
-
-ScreenAura::~ScreenAura() {
-}
-
-gfx::Point ScreenAura::GetCursorScreenPointImpl() {
- return root_window_->last_mouse_location();
-}
-
-gfx::Rect ScreenAura::GetMonitorWorkAreaNearestWindowImpl(
- gfx::NativeWindow window) {
- return GetWorkAreaBounds();
-}
-
-gfx::Rect ScreenAura::GetMonitorAreaNearestWindowImpl(
- gfx::NativeWindow window) {
- return GetBounds();
-}
-
-gfx::Rect ScreenAura::GetMonitorWorkAreaNearestPointImpl(
- const gfx::Point& point) {
- return GetWorkAreaBounds();
-}
-
-gfx::Rect ScreenAura::GetMonitorAreaNearestPointImpl(const gfx::Point& point) {
- return GetBounds();
-}
-
-gfx::NativeWindow ScreenAura::GetWindowAtCursorScreenPointImpl() {
- const gfx::Point point = GetCursorScreenPoint();
- return root_window_->GetTopWindowContainingPoint(point);
-}
-
-gfx::Rect ScreenAura::GetBounds() {
- return gfx::Rect(root_window_->bounds().size());
-}
-
-gfx::Rect ScreenAura::GetWorkAreaBounds() {
- gfx::Rect bounds(GetBounds());
- bounds.Inset(work_area_insets_);
- return bounds;
-}
-
-gfx::Size ScreenAura::GetPrimaryMonitorSizeImpl() {
- return GetMonitorWorkAreaNearestPoint(gfx::Point()).size();
-}
-
-int ScreenAura::GetNumMonitorsImpl() {
- return 1;
-}
-
-} // namespace aura
« no previous file with comments | « ui/aura/screen_aura.h ('k') | ui/aura/test/aura_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698