Disable more failing and flaky browser_tests for the touch build.
[chromium-blink-merge.git] / views / screen.h
blob3e65b770e7fc461377f3b14cc54f44a8faac34ce
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
3 // found in the LICENSE file.
5 #ifndef VIEWS_SCREEN_H_
6 #define VIEWS_SCREEN_H_
7 #pragma once
9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/gfx/point.h"
11 #include "ui/gfx/rect.h"
13 namespace views {
15 // A utility class for getting various info about screen size, monitors,
16 // cursor position, etc.
17 // TODO(erikkay) add more of those methods here
18 class Screen {
19 public:
20 static gfx::Point GetCursorScreenPoint();
22 // Returns the work area of the monitor nearest the specified window.
23 static gfx::Rect GetMonitorWorkAreaNearestWindow(gfx::NativeView view);
25 // Returns the bounds of the monitor nearest the specified window.
26 static gfx::Rect GetMonitorAreaNearestWindow(gfx::NativeView view);
28 // Returns the work area of the monitor nearest the specified point.
29 static gfx::Rect GetMonitorWorkAreaNearestPoint(const gfx::Point& point);
31 // Returns the monitor area (not the work area, but the complete bounds) of
32 // the monitor nearest the specified point.
33 static gfx::Rect GetMonitorAreaNearestPoint(const gfx::Point& point);
35 // Returns the window under the cursor.
36 static gfx::NativeWindow GetWindowAtCursorScreenPoint();
39 } // namespace views
41 #endif // VIEWS_SCREEN_H_