| 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" |
| 11 #include "ui/gfx/insets.h" | 11 #include "ui/gfx/insets.h" |
| 12 #include "ui/gfx/screen.h" | 12 #include "ui/gfx/screen.h" |
| 13 | 13 |
| 14 namespace aura { | 14 namespace aura { |
| 15 | 15 |
| 16 // Aura implementation of gfx::Screen. Implemented here to avoid circular | 16 // Aura implementation of gfx::Screen. Implemented here to avoid circular |
| 17 // dependencies. | 17 // dependencies. |
| 18 class AURA_EXPORT ScreenAura : public gfx::Screen { | 18 class AURA_EXPORT ScreenAura : public gfx::Screen { |
| 19 public: | 19 public: |
| 20 ScreenAura(); | 20 ScreenAura(); |
| 21 virtual ~ScreenAura(); | 21 virtual ~ScreenAura(); |
| 22 | 22 |
| 23 void set_work_area_insets(const gfx::Insets& insets) { | 23 void set_work_area_insets(const gfx::Insets& insets) { |
| 24 work_area_insets_ = insets; | 24 work_area_insets_ = insets; |
| 25 } | 25 } |
| 26 const gfx::Insets& work_area_insets() const { return work_area_insets_; } |
| 26 | 27 |
| 27 protected: | 28 protected: |
| 28 virtual gfx::Point GetCursorScreenPointImpl() OVERRIDE; | 29 virtual gfx::Point GetCursorScreenPointImpl() OVERRIDE; |
| 29 virtual gfx::Rect GetMonitorWorkAreaNearestWindowImpl( | 30 virtual gfx::Rect GetMonitorWorkAreaNearestWindowImpl( |
| 30 gfx::NativeView view) OVERRIDE; | 31 gfx::NativeView view) OVERRIDE; |
| 31 virtual gfx::Rect GetMonitorAreaNearestWindowImpl( | 32 virtual gfx::Rect GetMonitorAreaNearestWindowImpl( |
| 32 gfx::NativeView view) OVERRIDE; | 33 gfx::NativeView view) OVERRIDE; |
| 33 virtual gfx::Rect GetMonitorWorkAreaNearestPointImpl( | 34 virtual gfx::Rect GetMonitorWorkAreaNearestPointImpl( |
| 34 const gfx::Point& point) OVERRIDE; | 35 const gfx::Point& point) OVERRIDE; |
| 35 virtual gfx::Rect GetMonitorAreaNearestPointImpl( | 36 virtual gfx::Rect GetMonitorAreaNearestPointImpl( |
| (...skipping 10 matching lines...) Expand all Loading... |
| 46 | 47 |
| 47 // Insets for the work area. | 48 // Insets for the work area. |
| 48 gfx::Insets work_area_insets_; | 49 gfx::Insets work_area_insets_; |
| 49 | 50 |
| 50 DISALLOW_COPY_AND_ASSIGN(ScreenAura); | 51 DISALLOW_COPY_AND_ASSIGN(ScreenAura); |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 } // namespace aura | 54 } // namespace aura |
| 54 | 55 |
| 55 #endif // UI_AURA_SCREEN_AURA_H_ | 56 #endif // UI_AURA_SCREEN_AURA_H_ |
| OLD | NEW |