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

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: Cleanup IWYU. 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
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"
24 #include "ui/display/win/dpi.h" 23 #include "ui/display/win/dpi.h"
25 #endif 24 #endif
26 25
27 namespace ash { 26 namespace ash {
28 namespace { 27 namespace {
29 28
30 // Use larger than max int to catch overflow early. 29 // Use larger than max int to catch overflow early.
31 const int64_t kSynthesizedDisplayIdStart = 2200000000LL; 30 const int64_t kSynthesizedDisplayIdStart = 2200000000LL;
32 31
33 int64_t synthesized_display_id = kSynthesizedDisplayIdStart; 32 int64_t synthesized_display_id = kSynthesizedDisplayIdStart;
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 456
458 void DisplayInfo::ClearInputDevices() { 457 void DisplayInfo::ClearInputDevices() {
459 input_devices_.clear(); 458 input_devices_.clear();
460 } 459 }
461 460
462 void ResetDisplayIdForTest() { 461 void ResetDisplayIdForTest() {
463 synthesized_display_id = kSynthesizedDisplayIdStart; 462 synthesized_display_id = kSynthesizedDisplayIdStart;
464 } 463 }
465 464
466 } // namespace ash 465 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698