| 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 class MonitorObserver; |
| 16 class ScreenImpl; |
| 17 |
| 18 // A class that provides |gfx::Screen|'s implementation on aura. |
| 19 class UI_EXPORT ScreenImpl { |
| 20 public: |
| 21 virtual ~ScreenImpl() {} |
| 22 |
| 23 virtual gfx::Point GetCursorScreenPoint() = 0; |
| 24 virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() = 0; |
| 25 |
| 26 virtual int GetNumMonitors() = 0; |
| 27 virtual const gfx::Monitor* GetMonitorNearestWindow( |
| 28 gfx::NativeView view) = 0; |
| 29 virtual const gfx::Monitor* GetMonitorNearestPoint( |
| 30 const gfx::Point& point) = 0; |
| 31 virtual const gfx::Monitor* GetPrimaryMonitor() = 0; |
| 32 |
| 33 virtual void AddMonitorObserver(MonitorObserver* observer) = 0; |
| 34 virtual void RemoveMonitorObserver(MonitorObserver* observer) = 0; |
| 35 }; |
| 36 |
| 37 } // namespace gfx |
| 38 |
| 39 #endif // UI_GFX_SCREEN_IMPL_H_ |
| OLD | NEW |