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

Side by Side Diff: content/browser/device_sensors/data_fetcher_shared_memory_win.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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 "content/browser/device_sensors/data_fetcher_shared_memory.h" 5 #include "content/browser/device_sensors/data_fetcher_shared_memory.h"
6 6
7 #include <GuidDef.h> 7 #include <GuidDef.h>
8 #include <InitGuid.h> 8 #include <InitGuid.h>
9 #include <PortableDeviceTypes.h> 9 #include <PortableDeviceTypes.h>
10 #include <Sensors.h> 10 #include <Sensors.h>
11 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/macros.h"
13 #include "base/metrics/histogram.h" 14 #include "base/metrics/histogram.h"
14 #include "base/win/iunknown_impl.h" 15 #include "base/win/iunknown_impl.h"
15 #include "base/win/windows_version.h" 16 #include "base/win/windows_version.h"
16 17
17 namespace { 18 namespace {
18 19
19 const double kMeanGravity = 9.80665; 20 const double kMeanGravity = 9.80665;
20 21
21 void SetLightBuffer(content::DeviceLightHardwareBuffer* buffer, double lux) { 22 void SetLightBuffer(content::DeviceLightHardwareBuffer* buffer, double lux) {
22 DCHECK(buffer); 23 DCHECK(buffer);
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 motion_buffer_->data.allAvailableSensorsAreActive = enabled; 466 motion_buffer_->data.allAvailableSensorsAreActive = enabled;
466 motion_buffer_->seqlock.WriteEnd(); 467 motion_buffer_->seqlock.WriteEnd();
467 } 468 }
468 break; 469 break;
469 default: 470 default:
470 NOTREACHED(); 471 NOTREACHED();
471 } 472 }
472 } 473 }
473 474
474 } // namespace content 475 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698