| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_AURA_SCREEN_AURA_H_ | 5 #ifndef UI_AURA_SCREEN_AURA_H_ |
| 6 #define UI_AURA_SCREEN_AURA_H_ | 6 #define UI_AURA_SCREEN_AURA_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "ui/aura/aura_export.h" | 10 #include "ui/aura/aura_export.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 virtual gfx::Point GetCursorScreenPointImpl() OVERRIDE; | 28 virtual gfx::Point GetCursorScreenPointImpl() OVERRIDE; |
| 29 virtual gfx::Rect GetMonitorWorkAreaNearestWindowImpl( | 29 virtual gfx::Rect GetMonitorWorkAreaNearestWindowImpl( |
| 30 gfx::NativeView view) OVERRIDE; | 30 gfx::NativeView view) OVERRIDE; |
| 31 virtual gfx::Rect GetMonitorAreaNearestWindowImpl( | 31 virtual gfx::Rect GetMonitorAreaNearestWindowImpl( |
| 32 gfx::NativeView view) OVERRIDE; | 32 gfx::NativeView view) OVERRIDE; |
| 33 virtual gfx::Rect GetMonitorWorkAreaNearestPointImpl( | 33 virtual gfx::Rect GetMonitorWorkAreaNearestPointImpl( |
| 34 const gfx::Point& point) OVERRIDE; | 34 const gfx::Point& point) OVERRIDE; |
| 35 virtual gfx::Rect GetMonitorAreaNearestPointImpl( | 35 virtual gfx::Rect GetMonitorAreaNearestPointImpl( |
| 36 const gfx::Point& point) OVERRIDE; | 36 const gfx::Point& point) OVERRIDE; |
| 37 virtual gfx::NativeWindow GetWindowAtCursorScreenPointImpl() OVERRIDE; | 37 virtual gfx::NativeWindow GetWindowAtCursorScreenPointImpl() OVERRIDE; |
| 38 virtual gfx::Size GetPrimaryMonitorSizeImpl() OVERRIDE; |
| 39 virtual int GetNumMonitorsImpl() OVERRIDE; |
| 38 | 40 |
| 39 private: | 41 private: |
| 40 // We currently support only one monitor. These two methods return the bounds | 42 // We currently support only one monitor. These two methods return the bounds |
| 41 // and work area. | 43 // and work area. |
| 42 gfx::Rect GetBounds(); | 44 gfx::Rect GetBounds(); |
| 43 gfx::Rect GetWorkAreaBounds(); | 45 gfx::Rect GetWorkAreaBounds(); |
| 44 | 46 |
| 45 // Insets for the work area. | 47 // Insets for the work area. |
| 46 gfx::Insets work_area_insets_; | 48 gfx::Insets work_area_insets_; |
| 47 | 49 |
| 48 DISALLOW_COPY_AND_ASSIGN(ScreenAura); | 50 DISALLOW_COPY_AND_ASSIGN(ScreenAura); |
| 49 }; | 51 }; |
| 50 | 52 |
| 51 } // namespace aura | 53 } // namespace aura |
| 52 | 54 |
| 53 #endif // UI_AURA_SCREEN_AURA_H_ | 55 #endif // UI_AURA_SCREEN_AURA_H_ |
| OLD | NEW |