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

Side by Side Diff: ui/gfx/win/physical_size.cc

Issue 1589253002: clang/win: Fix a -Wmissing-braces regression from https://codereview.chromium.org/1563183008/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/gfx/win/physical_size.h" 5 #include "ui/gfx/win/physical_size.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <setupapi.h> 8 #include <setupapi.h>
9 9
10 #include <iostream> 10 #include <iostream>
11 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/scoped_generic.h" 14 #include "base/scoped_generic.h"
15 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "base/win/registry.h" 16 #include "base/win/registry.h"
17 17
18 // This GUID {E6F07B5F-EE97-4A90-B076-33F57BF4EAA7} was taken from 18 // This GUID {E6F07B5F-EE97-4A90-B076-33F57BF4EAA7} was taken from
19 // https://msdn.microsoft.com/en-us/library/windows/hardware/ff545901.aspx 19 // https://msdn.microsoft.com/en-us/library/windows/hardware/ff545901.aspx
20 const GUID GUID_DEVICEINTERFACE_MONITOR = { 20 const GUID GUID_DEVICEINTERFACE_MONITOR = {
21 0xE6F07B5F, 0xEE97, 0x4A90, 0xB0, 0x76, 0x33, 0xF5, 0x7B, 0xF4, 0xEA, 0xA7}; 21 0xE6F07B5F,
22 0xEE97,
23 0x4A90,
24 {0xB0, 0x76, 0x33, 0xF5, 0x7B, 0xF4, 0xEA, 0xA7}};
22 25
23 namespace { 26 namespace {
24 27
25 struct DeviceInfoListScopedTraits { 28 struct DeviceInfoListScopedTraits {
26 static HDEVINFO InvalidValue() { return INVALID_HANDLE_VALUE; } 29 static HDEVINFO InvalidValue() { return INVALID_HANDLE_VALUE; }
27 30
28 static void Free(HDEVINFO h) { SetupDiDestroyDeviceInfoList(h); } 31 static void Free(HDEVINFO h) { SetupDiDestroyDeviceInfoList(h); }
29 }; 32 };
30 33
31 bool GetSizeFromRegistry(HDEVINFO device_info_list, 34 bool GetSizeFromRegistry(HDEVINFO device_info_list,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 } 153 }
151 break; 154 break;
152 } 155 }
153 } 156 }
154 } 157 }
155 } 158 }
156 return out; 159 return out;
157 } 160 }
158 161
159 } // namespace gfx 162 } // namespace gfx
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698