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

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

Issue 2084533008: mash: Migrate tray audio and deps to common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase. Created 4 years, 6 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
« no previous file with comments | « ash/common/display/display_info.h ('k') | ash/common/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 "ash/display/display_info.h" 5 #include "ash/common/display/display_info.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/strings/string_split.h" 15 #include "base/strings/string_split.h"
16 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
17 #include "base/strings/stringprintf.h" 17 #include "base/strings/stringprintf.h"
18 #include "ui/display/display.h" 18 #include "ui/display/display.h"
19 #include "ui/gfx/geometry/size_conversions.h" 19 #include "ui/gfx/geometry/size_conversions.h"
20 #include "ui/gfx/geometry/size_f.h" 20 #include "ui/gfx/geometry/size_f.h"
21 21
22 #if defined(OS_WIN) 22 #if defined(OS_WIN)
23 #include "ui/aura/window_tree_host.h" 23 #include <windows.h>
24 #include "ui/display/win/dpi.h" 24 #include "ui/display/win/dpi.h"
25 #endif 25 #endif
26 26
27 namespace ash { 27 namespace ash {
28 namespace { 28 namespace {
29 29
30 // Use larger than max int to catch overflow early. 30 // Use larger than max int to catch overflow early.
31 const int64_t kSynthesizedDisplayIdStart = 2200000000LL; 31 const int64_t kSynthesizedDisplayIdStart = 2200000000LL;
32 32
33 int64_t synthesized_display_id = kSynthesizedDisplayIdStart; 33 int64_t synthesized_display_id = kSynthesizedDisplayIdStart;
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 457
458 void DisplayInfo::ClearInputDevices() { 458 void DisplayInfo::ClearInputDevices() {
459 input_devices_.clear(); 459 input_devices_.clear();
460 } 460 }
461 461
462 void ResetDisplayIdForTest() { 462 void ResetDisplayIdForTest() {
463 synthesized_display_id = kSynthesizedDisplayIdStart; 463 synthesized_display_id = kSynthesizedDisplayIdStart;
464 } 464 }
465 465
466 } // namespace ash 466 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/display/display_info.h ('k') | ash/common/display/display_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698