• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 #ifndef UI_VIEWS_WIDGET_MONITOR_WIN_H_
6 #define UI_VIEWS_WIDGET_MONITOR_WIN_H_
7 
8 #include <windows.h>
9 
10 #include "ui/views/views_export.h"
11 
12 namespace gfx {
13 class Rect;
14 }
15 
16 namespace views {
17 
18 // Returns the bounds for the monitor that contains the largest area of
19 // intersection with the specified rectangle.
20 VIEWS_EXPORT gfx::Rect GetMonitorBoundsForRect(const gfx::Rect& rect);
21 
22 // Returns the always-on-top auto-hiding taskbar for edge |edge| (one of
23 // ABE_LEFT, TOP, RIGHT, or BOTTOM) of monitor |monitor|. NULL is returned
24 // if nothing is found.
25 //
26 // WARNING: this function spawns a nested message loop. Use Appbar instead if
27 // possible.
28 VIEWS_EXPORT HWND GetTopmostAutoHideTaskbarForEdge(UINT edge, HMONITOR monitor);
29 
30 }  // namespace views
31 
32 #endif  // UI_VIEWS_WIDGET_MONITOR_WIN_H_
33