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

Side by Side Diff: third_party/WebKit/Source/modules/sensor/Gyroscope.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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 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 "modules/sensor/Gyroscope.h" 5 #include "modules/sensor/Gyroscope.h"
6 6
7
8 using device::mojom::blink::SensorType; 7 using device::mojom::blink::SensorType;
9 8
10 namespace blink { 9 namespace blink {
11 10
12 Gyroscope* Gyroscope::Create(ExecutionContext* execution_context, 11 Gyroscope* Gyroscope::Create(ExecutionContext* execution_context,
13 const SensorOptions& options, 12 const SensorOptions& options,
14 ExceptionState& exception_state) { 13 ExceptionState& exception_state) {
15 return new Gyroscope(execution_context, options, exception_state); 14 return new Gyroscope(execution_context, options, exception_state);
16 } 15 }
17 16
(...skipping 21 matching lines...) Expand all
39 38
40 double Gyroscope::z(bool& is_null) const { 39 double Gyroscope::z(bool& is_null) const {
41 return ReadingValue(2, is_null); 40 return ReadingValue(2, is_null);
42 } 41 }
43 42
44 DEFINE_TRACE(Gyroscope) { 43 DEFINE_TRACE(Gyroscope) {
45 Sensor::Trace(visitor); 44 Sensor::Trace(visitor);
46 } 45 }
47 46
48 } // namespace blink 47 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698