Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Side by Side Diff: views/screen.h

Issue 328012: Makes it so that when a folder is open on the bookmark bar and the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/controls/menu/submenu_view.cc ('k') | views/screen_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "app/gfx/native_widget_types.h" 8 #include "app/gfx/native_widget_types.h"
9 #include "base/gfx/point.h" 9 #include "base/gfx/point.h"
10 #include "base/gfx/rect.h" 10 #include "base/gfx/rect.h"
11 11
12 namespace views { 12 namespace views {
13 13
14 // A utility class for getting various info about screen size, monitors, 14 // A utility class for getting various info about screen size, monitors,
15 // cursor position, etc. 15 // cursor position, etc.
16 // TODO(erikkay) add more of those methods here 16 // TODO(erikkay) add more of those methods here
17 class Screen { 17 class Screen {
18 public: 18 public:
19 static gfx::Point GetCursorScreenPoint(); 19 static gfx::Point GetCursorScreenPoint();
20 20
21 // Returns the work area of the monitor nearest the specified window. 21 // Returns the work area of the monitor nearest the specified window.
22 static gfx::Rect GetMonitorWorkAreaNearestWindow(gfx::NativeView view); 22 static gfx::Rect GetMonitorWorkAreaNearestWindow(gfx::NativeView view);
23 23
24 // Returns the bounds of the monitor nearest the specified window. 24 // Returns the bounds of the monitor nearest the specified window.
25 static gfx::Rect GetMonitorAreaNearestWindow(gfx::NativeView view); 25 static gfx::Rect GetMonitorAreaNearestWindow(gfx::NativeView view);
26 26
27 // Returns the monitor area (not the work area, but the complete bounds) of 27 // Returns the monitor area (not the work area, but the complete bounds) of
28 // the monitor nearest the specified point. 28 // the monitor nearest the specified point.
29 static gfx::Rect GetMonitorAreaNearestPoint(const gfx::Point& point); 29 static gfx::Rect GetMonitorAreaNearestPoint(const gfx::Point& point);
30
31 // Returns the window under the cursor.
32 static gfx::NativeWindow GetWindowAtCursorScreenPoint();
30 }; 33 };
31 34
32 } // namespace views 35 } // namespace views
33 36
34 #endif // VIEWS_SCREEN_H_ 37 #endif // VIEWS_SCREEN_H_
OLDNEW
« no previous file with comments | « views/controls/menu/submenu_view.cc ('k') | views/screen_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698