Index: ui/gfx/screen_aura.cc |
=================================================================== |
--- ui/gfx/screen_aura.cc (revision 0) |
+++ ui/gfx/screen_aura.cc (revision 0) |
@@ -0,0 +1,55 @@ |
+// 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 "ui/gfx/screen.h" |
+ |
+#include <windows.h> |
+ |
+#include "base/logging.h" |
+ |
+namespace gfx { |
+ |
+// static |
+gfx::Point Screen::GetCursorScreenPoint() { |
+#if defined(OS_WIN) |
+ POINT pt; |
+ GetCursorPos(&pt); |
+ return gfx::Point(pt); |
+#endif |
+} |
+ |
+// static |
+gfx::Rect Screen::GetMonitorWorkAreaNearestWindow(gfx::NativeWindow window) { |
+ NOTIMPLEMENTED(); |
+ return gfx::Rect(); |
+} |
+ |
+// static |
+gfx::Rect Screen::GetMonitorAreaNearestWindow(gfx::NativeWindow window) { |
+ NOTIMPLEMENTED(); |
+ return gfx::Rect(); |
+} |
+ |
+static gfx::Rect GetMonitorAreaOrWorkAreaNearestPoint(const gfx::Point& point, |
+ bool work_area) { |
+ NOTIMPLEMENTED(); |
+ return gfx::Rect(); |
+} |
+ |
+// static |
+gfx::Rect Screen::GetMonitorWorkAreaNearestPoint(const gfx::Point& point) { |
+ return GetMonitorAreaOrWorkAreaNearestPoint(point, true); |
+} |
+ |
+// static |
+gfx::Rect Screen::GetMonitorAreaNearestPoint(const gfx::Point& point) { |
+ return GetMonitorAreaOrWorkAreaNearestPoint(point, false); |
+} |
+ |
+gfx::NativeWindow Screen::GetWindowAtCursorScreenPoint() { |
+ NOTIMPLEMENTED(); |
+ return NULL; |
+} |
+ |
+} // namespace gfx |
Property changes on: ui\gfx\screen_aura.cc |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |