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

Side by Side Diff: ui/display/display_util.h

Issue 227593011: Modifies the threshold for hidpi displays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add another test expectation Created 6 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DISPLAY_DISPLAY_UTIL_H_ 5 #ifndef UI_DISPLAY_DISPLAY_UTIL_H_
6 #define UI_DISPLAY_DISPLAY_UTIL_H_ 6 #define UI_DISPLAY_DISPLAY_UTIL_H_
7 7
8 #include "ui/display/display_export.h" 8 #include "ui/display/display_export.h"
9 #include "ui/gfx/geometry/size.h" 9 #include "ui/gfx/geometry/size.h"
10 10
11 namespace ui { 11 namespace ui {
12 12
13 // Returns true if a given size is in the list of bogus sizes in mm that should 13 // Returns true if a given size is in the list of bogus sizes in mm that should
14 // be ignored. 14 // be ignored.
15 DISPLAY_EXPORT bool IsDisplaySizeBlackListed(const gfx::Size& physical_size); 15 DISPLAY_EXPORT bool IsDisplaySizeBlackListed(const gfx::Size& physical_size);
16 16
17 // Returns the device scale factor for the specific monitor and mode.
oshima 2014/04/09 23:35:29 // Returns the desired device scale factor for the
Jun Mukai 2014/04/09 23:50:17 Done.
18 DISPLAY_EXPORT float GetScaleFactor(
19 const gfx::Size& physical_size,
oshima 2014/04/09 23:35:29 physical_size_in_mm
Jun Mukai 2014/04/09 23:50:17 Done.
20 const gfx::Size& screen_size);
oshima 2014/04/09 23:35:29 screen_size_in_pixels
Jun Mukai 2014/04/09 23:50:17 Done.
21
17 } // namespace ui 22 } // namespace ui
18 23
19 #endif // UI_DISPLAY_DISPLAY_UTIL_H_ 24 #endif // UI_DISPLAY_DISPLAY_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/display_options_handler.cc ('k') | ui/display/display_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698