OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_GFX_SCREEN_IMPL_H_ |
| 6 #define UI_GFX_SCREEN_IMPL_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ui/gfx/native_widget_types.h" |
| 10 #include "ui/gfx/point.h" |
| 11 |
| 12 namespace gfx { |
| 13 |
| 14 class Monitor; |
| 15 |
| 16 // A class that provides |gfx::Screen|'s implementation on aura. |
| 17 class UI_EXPORT ScreenImpl { |
| 18 public: |
| 19 virtual ~ScreenImpl() {} |
| 20 |
| 21 virtual gfx::Point GetCursorScreenPoint() = 0; |
| 22 virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() = 0; |
| 23 |
| 24 virtual int GetNumMonitors() = 0; |
| 25 virtual void GetMonitorNearestWindow( |
| 26 gfx::NativeView view, gfx::Monitor* monitor_out) const = 0; |
| 27 virtual void GetMonitorNearestPoint( |
| 28 const gfx::Point& point, gfx::Monitor* monitor_out) const = 0; |
| 29 virtual void GetPrimaryMonitor(gfx::Monitor* monitor_out) const = 0; |
| 30 }; |
| 31 |
| 32 } // namespace gfx |
| 33 |
| 34 #endif // UI_GFX_SCREEN_IMPL_H_ |
OLD | NEW |