| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 VIEWS_SCREEN_H_ | 5 #ifndef VIEWS_SCREEN_H_ |
| 6 #define VIEWS_SCREEN_H_ | 6 #define VIEWS_SCREEN_H_ |
| 7 | 7 |
| 8 #include "base/gfx/native_widget_types.h" |
| 8 #include "base/gfx/point.h" | 9 #include "base/gfx/point.h" |
| 10 #include "base/gfx/rect.h" |
| 9 | 11 |
| 10 namespace views { | 12 namespace views { |
| 11 | 13 |
| 12 // A utility class for getting various info about screen size, monitors, | 14 // A utility class for getting various info about screen size, monitors, |
| 13 // cursor position, etc. | 15 // cursor position, etc. |
| 14 // TODO(erikkay) add more of those methods here | 16 // TODO(erikkay) add more of those methods here |
| 15 class Screen { | 17 class Screen { |
| 16 public: | 18 public: |
| 17 static gfx::Point GetCursorScreenPoint(); | 19 static gfx::Point GetCursorScreenPoint(); |
| 20 |
| 21 // Returns the work area of the monitor nearest the specified window. |
| 22 static gfx::Rect GetMonitorWorkAreaNearestWindow(gfx::NativeWindow window); |
| 18 }; | 23 }; |
| 19 | 24 |
| 20 } // namespace views | 25 } // namespace views |
| 21 | 26 |
| 22 #endif // VIEWS_SCREEN_H_ | 27 #endif // VIEWS_SCREEN_H_ |
| OLD | NEW |