| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/manager/chromeos/apply_content_protection_task.h" | 5 #include "ui/display/manager/chromeos/apply_content_protection_task.h" |
| 6 | 6 |
| 7 #include "ui/display/manager/chromeos/display_layout_manager.h" | 7 #include "ui/display/manager/chromeos/display_layout_manager.h" |
| 8 #include "ui/display/types/display_snapshot.h" | 8 #include "ui/display/types/display_snapshot.h" |
| 9 #include "ui/display/types/native_display_delegate.h" | 9 #include "ui/display/types/native_display_delegate.h" |
| 10 | 10 |
| 11 namespace ui { | 11 namespace display { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 bool GetHDCPCapableDisplays( | 15 bool GetHDCPCapableDisplays( |
| 16 const DisplayLayoutManager& layout_manager, | 16 const DisplayLayoutManager& layout_manager, |
| 17 std::vector<DisplaySnapshot*>* hdcp_capable_displays) { | 17 std::vector<DisplaySnapshot*>* hdcp_capable_displays) { |
| 18 for (DisplaySnapshot* display : layout_manager.GetDisplayStates()) { | 18 for (DisplaySnapshot* display : layout_manager.GetDisplayStates()) { |
| 19 switch (display->type()) { | 19 switch (display->type()) { |
| 20 case DISPLAY_CONNECTION_TYPE_UNKNOWN: | 20 case DISPLAY_CONNECTION_TYPE_UNKNOWN: |
| 21 return false; | 21 return false; |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 desired_mask |= pair.second; | 161 desired_mask |= pair.second; |
| 162 } else { | 162 } else { |
| 163 auto it = requests_.find(display_id); | 163 auto it = requests_.find(display_id); |
| 164 if (it != requests_.end()) | 164 if (it != requests_.end()) |
| 165 desired_mask = it->second; | 165 desired_mask = it->second; |
| 166 } | 166 } |
| 167 | 167 |
| 168 return desired_mask; | 168 return desired_mask; |
| 169 } | 169 } |
| 170 | 170 |
| 171 } // namespace ui | 171 } // namespace display |
| OLD | NEW |