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

Side by Side Diff: ash/display/display_info.cc

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « ash/display/display_info.h ('k') | ash/display/display_info_unittest.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include <stdio.h> 5 #include <stdio.h>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/display/display_info.h" 9 #include "ash/display/display_info.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
14 #include "ui/gfx/display.h" 14 #include "ui/gfx/display.h"
15 #include "ui/gfx/size_conversions.h" 15 #include "ui/gfx/size_conversions.h"
16 #include "ui/gfx/size_f.h" 16 #include "ui/gfx/size_f.h"
17 17
18 #if defined(OS_WIN) 18 #if defined(OS_WIN)
19 #include "ui/aura/window_tree_host.h" 19 #include "ui/aura/window_tree_host.h"
20 #include "ui/gfx/win/dpi.h" 20 #include "ui/gfx/win/dpi.h"
21 #endif 21 #endif
22 22
23 namespace ash { 23 namespace ash {
24 namespace internal {
25 24
26 DisplayMode::DisplayMode() 25 DisplayMode::DisplayMode()
27 : refresh_rate(0.0f), interlaced(false), native(false) {} 26 : refresh_rate(0.0f), interlaced(false), native(false) {}
28 27
29 DisplayMode::DisplayMode(const gfx::Size& size, 28 DisplayMode::DisplayMode(const gfx::Size& size,
30 float refresh_rate, 29 float refresh_rate,
31 bool interlaced, 30 bool interlaced,
32 bool native) 31 bool native)
33 : size(size), 32 : size(size),
34 refresh_rate(refresh_rate), 33 refresh_rate(refresh_rate),
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 color_profile_ = profile; 308 color_profile_ = profile;
310 } 309 }
311 310
312 bool DisplayInfo::IsColorProfileAvailable( 311 bool DisplayInfo::IsColorProfileAvailable(
313 ui::ColorCalibrationProfile profile) const { 312 ui::ColorCalibrationProfile profile) const {
314 return std::find(available_color_profiles_.begin(), 313 return std::find(available_color_profiles_.begin(),
315 available_color_profiles_.end(), 314 available_color_profiles_.end(),
316 profile) != available_color_profiles_.end(); 315 profile) != available_color_profiles_.end();
317 } 316 }
318 317
319 } // namespace internal
320 } // namespace ash 318 } // namespace ash
OLDNEW
« no previous file with comments | « ash/display/display_info.h ('k') | ash/display/display_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698