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

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

Issue 10391179: Revert 137622 - Fix a couple of bugs with the image skia implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/image/image_skia.cc ('k') | ui/gfx/screen_android.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/base/ui_export.h" 9 #include "ui/base/ui_export.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 virtual ~Screen() {} 22 virtual ~Screen() {}
23 23
24 #if defined(USE_AURA) 24 #if defined(USE_AURA)
25 // Sets the instance to use. This takes owernship of |screen|, deleting the 25 // Sets the instance to use. This takes owernship of |screen|, deleting the
26 // old instance. This is used on aura to avoid circular dependencies between 26 // old instance. This is used on aura to avoid circular dependencies between
27 // ui and aura. 27 // ui and aura.
28 static void SetInstance(ScreenImpl* screen); 28 static void SetInstance(ScreenImpl* screen);
29 #endif 29 #endif
30 30
31 // True if DIP is enabled.
32 static bool IsDIPEnabled();
33
34 // Returns the current absolute position of the mouse pointer. 31 // Returns the current absolute position of the mouse pointer.
35 static gfx::Point GetCursorScreenPoint(); 32 static gfx::Point GetCursorScreenPoint();
36 33
37 // Returns the window under the cursor. 34 // Returns the window under the cursor.
38 static gfx::NativeWindow GetWindowAtCursorScreenPoint(); 35 static gfx::NativeWindow GetWindowAtCursorScreenPoint();
39 36
40 // Returns the number of monitors. 37 // Returns the number of monitors.
41 // Mirrored displays are excluded; this method is intended to return the 38 // Mirrored displays are excluded; this method is intended to return the
42 // number of distinct, usable displays. 39 // number of distinct, usable displays.
43 static int GetNumMonitors(); 40 static int GetNumMonitors();
44 41
45 // Returns the monitor nearest the specified window. 42 // Returns the monitor nearest the specified window.
46 static gfx::Monitor GetMonitorNearestWindow(gfx::NativeView view); 43 static gfx::Monitor GetMonitorNearestWindow(gfx::NativeView view);
47 44
48 // Returns the the monitor nearest the specified point. 45 // Returns the the monitor nearest the specified point.
49 static gfx::Monitor GetMonitorNearestPoint(const gfx::Point& point); 46 static gfx::Monitor GetMonitorNearestPoint(const gfx::Point& point);
50 47
51 // Returns the bounds of the work area of the primary monitor. 48 // Returns the bounds of the work area of the primary monitor.
52 static gfx::Monitor GetPrimaryMonitor(); 49 static gfx::Monitor GetPrimaryMonitor();
53 50
54 // Returns the monitor that most closely intersects the provided bounds. 51 // Returns the monitor that most closely intersects the provided bounds.
55 static gfx::Monitor GetMonitorMatching(const gfx::Rect& match_rect); 52 static gfx::Monitor GetMonitorMatching(const gfx::Rect& match_rect);
56 }; 53 };
57 54
58 } // namespace gfx 55 } // namespace gfx
59 56
60 #endif // VIEWS_SCREEN_H_ 57 #endif // VIEWS_SCREEN_H_
OLDNEW
« no previous file with comments | « ui/gfx/image/image_skia.cc ('k') | ui/gfx/screen_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698