| 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 VIEWS_WIDGET_MONITOR_WIN_H_ | 5 #ifndef VIEWS_WIDGET_MONITOR_WIN_H_ |
| 6 #define VIEWS_WIDGET_MONITOR_WIN_H_ | 6 #define VIEWS_WIDGET_MONITOR_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <windows.h> |
| 9 #include "views/views_export.h" | 10 #include "views/views_export.h" |
| 10 | 11 |
| 11 namespace gfx { | 12 namespace gfx { |
| 12 class Rect; | 13 class Rect; |
| 13 } | 14 } |
| 14 | 15 |
| 15 namespace views { | 16 namespace views { |
| 16 | 17 |
| 17 // Returns the bounds for the monitor that contains the largest area of | 18 // Returns the bounds for the monitor that contains the largest area of |
| 18 // intersection with the specified rectangle. | 19 // intersection with the specified rectangle. |
| 19 VIEWS_EXPORT gfx::Rect GetMonitorBoundsForRect(const gfx::Rect& rect); | 20 VIEWS_EXPORT gfx::Rect GetMonitorBoundsForRect(const gfx::Rect& rect); |
| 20 | 21 |
| 22 // Returns true if edge |edge| (one of ABE_LEFT, TOP, RIGHT, or BOTTOM) of |
| 23 // monitor |monitor| has an auto-hiding taskbar that's always-on-top. |
| 24 VIEWS_EXPORT bool EdgeHasTopmostAutoHideTaskbar(UINT edge, HMONITOR monitor); |
| 25 |
| 21 } // namespace views | 26 } // namespace views |
| 22 | 27 |
| 23 #endif // VIEWS_WIDGET_MONITOR_WIN_H_ | 28 #endif // VIEWS_WIDGET_MONITOR_WIN_H_ |
| OLD | NEW |