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

Side by Side Diff: ui/display/manager/chromeos/display_util.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 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/manager/chromeos/display_util.h" 5 #include "ui/display/manager/chromeos/display_util.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
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 "ui/display/types/display_snapshot.h" 12 #include "ui/display/types/display_snapshot.h"
13 13
14 namespace ui { 14 namespace display {
15 15
16 std::string DisplayPowerStateToString(chromeos::DisplayPowerState state) { 16 std::string DisplayPowerStateToString(chromeos::DisplayPowerState state) {
17 switch (state) { 17 switch (state) {
18 case chromeos::DISPLAY_POWER_ALL_ON: 18 case chromeos::DISPLAY_POWER_ALL_ON:
19 return "ALL_ON"; 19 return "ALL_ON";
20 case chromeos::DISPLAY_POWER_ALL_OFF: 20 case chromeos::DISPLAY_POWER_ALL_OFF:
21 return "ALL_OFF"; 21 return "ALL_OFF";
22 case chromeos::DISPLAY_POWER_INTERNAL_OFF_EXTERNAL_ON: 22 case chromeos::DISPLAY_POWER_INTERNAL_OFF_EXTERNAL_ON:
23 return "INTERNAL_OFF_EXTERNAL_ON"; 23 return "INTERNAL_OFF_EXTERNAL_ON";
24 case chromeos::DISPLAY_POWER_INTERNAL_ON_EXTERNAL_OFF: 24 case chromeos::DISPLAY_POWER_INTERNAL_ON_EXTERNAL_OFF:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 !internal) || 63 !internal) ||
64 (state == chromeos::DISPLAY_POWER_INTERNAL_ON_EXTERNAL_OFF && internal); 64 (state == chromeos::DISPLAY_POWER_INTERNAL_ON_EXTERNAL_OFF && internal);
65 if (display_power) 65 if (display_power)
66 (*display_power)[i] = on; 66 (*display_power)[i] = on;
67 if (on) 67 if (on)
68 num_on_displays++; 68 num_on_displays++;
69 } 69 }
70 return num_on_displays; 70 return num_on_displays;
71 } 71 }
72 72
73 bool IsPhysicalDisplayType(ui::DisplayConnectionType type) { 73 bool IsPhysicalDisplayType(DisplayConnectionType type) {
74 return !(type & 74 return !(type &
75 (DISPLAY_CONNECTION_TYPE_NETWORK | DISPLAY_CONNECTION_TYPE_VIRTUAL)); 75 (DISPLAY_CONNECTION_TYPE_NETWORK | DISPLAY_CONNECTION_TYPE_VIRTUAL));
76 } 76 }
77 77
78 } // namespace ui 78 } // namespace display
OLDNEW
« no previous file with comments | « ui/display/manager/chromeos/display_util.h ('k') | ui/display/manager/chromeos/query_content_protection_task.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698