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

Side by Side Diff: ui/display/manager/chromeos/apply_content_protection_task.cc

Issue 2613493002: Fix namespace for src/ui/display/. (Closed)
Patch Set: Rebase. Created 3 years, 11 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698