OLD | NEW |
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 #include "ui/display/chromeos/display_configurator.h" | 5 #include "ui/display/chromeos/display_configurator.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "base/sys_info.h" | 12 #include "base/sys_info.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "ui/display/display_switches.h" | 14 #include "ui/display/display_switches.h" |
15 #include "ui/display/types/chromeos/display_mode.h" | 15 #include "ui/display/types/display_mode.h" |
16 #include "ui/display/types/chromeos/display_snapshot.h" | 16 #include "ui/display/types/display_snapshot.h" |
17 #include "ui/display/types/chromeos/native_display_delegate.h" | 17 #include "ui/display/types/native_display_delegate.h" |
18 | 18 |
19 namespace ui { | 19 namespace ui { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 typedef std::vector<const DisplayMode*> DisplayModeList; | 23 typedef std::vector<const DisplayMode*> DisplayModeList; |
24 | 24 |
25 // The delay to perform configuration after RRNotify. See the comment for | 25 // The delay to perform configuration after RRNotify. See the comment for |
26 // |configure_timer_|. | 26 // |configure_timer_|. |
27 const int kConfigureDelayMs = 500; | 27 const int kConfigureDelayMs = 500; |
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
949 return state_controller_->GetStateForDisplayIds(display_ids); | 949 return state_controller_->GetStateForDisplayIds(display_ids); |
950 } | 950 } |
951 } | 951 } |
952 default: | 952 default: |
953 NOTREACHED(); | 953 NOTREACHED(); |
954 } | 954 } |
955 return MULTIPLE_DISPLAY_STATE_INVALID; | 955 return MULTIPLE_DISPLAY_STATE_INVALID; |
956 } | 956 } |
957 | 957 |
958 } // namespace ui | 958 } // namespace ui |
OLD | NEW |