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

Side by Side Diff: ui/gfx/screen.h

Issue 7569005: Rename UI_API to UI_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | « ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h ('k') | ui/gfx/scrollbar_size.h » ('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) 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 UI_GFX_SCREEN_H_ 5 #ifndef UI_GFX_SCREEN_H_
6 #define UI_GFX_SCREEN_H_ 6 #define UI_GFX_SCREEN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/gfx/point.h" 10 #include "ui/gfx/point.h"
11 #include "ui/gfx/rect.h" 11 #include "ui/gfx/rect.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 14
15 // A utility class for getting various info about screen size, monitors, 15 // A utility class for getting various info about screen size, monitors,
16 // cursor position, etc. 16 // cursor position, etc.
17 // TODO(erikkay) add more of those methods here 17 // TODO(erikkay) add more of those methods here
18 class UI_API Screen { 18 class UI_EXPORT Screen {
19 public: 19 public:
20 static gfx::Point GetCursorScreenPoint(); 20 static gfx::Point GetCursorScreenPoint();
21 21
22 // Returns the work area of the monitor nearest the specified window. 22 // Returns the work area of the monitor nearest the specified window.
23 static gfx::Rect GetMonitorWorkAreaNearestWindow(gfx::NativeView view); 23 static gfx::Rect GetMonitorWorkAreaNearestWindow(gfx::NativeView view);
24 24
25 // Returns the bounds of the monitor nearest the specified window. 25 // Returns the bounds of the monitor nearest the specified window.
26 static gfx::Rect GetMonitorAreaNearestWindow(gfx::NativeView view); 26 static gfx::Rect GetMonitorAreaNearestWindow(gfx::NativeView view);
27 27
28 // Returns the work area of the monitor nearest the specified point. 28 // Returns the work area of the monitor nearest the specified point.
29 static gfx::Rect GetMonitorWorkAreaNearestPoint(const gfx::Point& point); 29 static gfx::Rect GetMonitorWorkAreaNearestPoint(const gfx::Point& point);
30 30
31 // Returns the monitor area (not the work area, but the complete bounds) of 31 // Returns the monitor area (not the work area, but the complete bounds) of
32 // the monitor nearest the specified point. 32 // the monitor nearest the specified point.
33 static gfx::Rect GetMonitorAreaNearestPoint(const gfx::Point& point); 33 static gfx::Rect GetMonitorAreaNearestPoint(const gfx::Point& point);
34 34
35 // Returns the window under the cursor. 35 // Returns the window under the cursor.
36 static gfx::NativeWindow GetWindowAtCursorScreenPoint(); 36 static gfx::NativeWindow GetWindowAtCursorScreenPoint();
37 }; 37 };
38 38
39 } // namespace gfx 39 } // namespace gfx
40 40
41 #endif // VIEWS_SCREEN_H_ 41 #endif // VIEWS_SCREEN_H_
OLDNEW
« no previous file with comments | « ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h ('k') | ui/gfx/scrollbar_size.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698