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

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

Issue 10255020: Get the default device scale factor from monitor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated comment 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/monitor.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/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
10 #include "ui/gfx/monitor.h" 11 #include "ui/gfx/monitor.h"
11 #include "ui/gfx/point.h" 12 #include "ui/gfx/point.h"
12 13
13 namespace gfx { 14 namespace gfx {
14 class Rect; 15 class Rect;
15 class ScreenImpl; 16 class ScreenImpl;
16 17
17 // A utility class for getting various info about screen size, monitors, 18 // A utility class for getting various info about screen size, monitors,
18 // cursor position, etc. 19 // cursor position, etc.
(...skipping 28 matching lines...) Expand all
47 // Returns the bounds of the work area of the primary monitor. 48 // Returns the bounds of the work area of the primary monitor.
48 static gfx::Monitor GetPrimaryMonitor(); 49 static gfx::Monitor GetPrimaryMonitor();
49 50
50 // Returns the monitor that most closely intersects the provided bounds. 51 // Returns the monitor that most closely intersects the provided bounds.
51 static gfx::Monitor GetMonitorMatching(const gfx::Rect& match_rect); 52 static gfx::Monitor GetMonitorMatching(const gfx::Rect& match_rect);
52 }; 53 };
53 54
54 } // namespace gfx 55 } // namespace gfx
55 56
56 #endif // VIEWS_SCREEN_H_ 57 #endif // VIEWS_SCREEN_H_
OLDNEW
« no previous file with comments | « ui/gfx/monitor.cc ('k') | ui/gfx/screen_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698