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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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/SensorErrorEvent.h" 5 #include "modules/sensor/SensorErrorEvent.h"
6 6
7 #include <v8.h>
7 #include "bindings/core/v8/V8Binding.h" 8 #include "bindings/core/v8/V8Binding.h"
8 #include <v8.h>
9 9
10 namespace blink { 10 namespace blink {
11 11
12 SensorErrorEvent::~SensorErrorEvent() {} 12 SensorErrorEvent::~SensorErrorEvent() {}
13 13
14 SensorErrorEvent::SensorErrorEvent(const AtomicString& eventType, 14 SensorErrorEvent::SensorErrorEvent(const AtomicString& eventType,
15 DOMException* error) 15 DOMException* error)
16 : Event(eventType, false, false) // does not bubble, is not cancelable. 16 : Event(eventType, false, false) // does not bubble, is not cancelable.
17 , 17 ,
18 m_error(error) { 18 m_error(error) {
19 DCHECK(m_error); 19 DCHECK(m_error);
20 } 20 }
21 21
22 SensorErrorEvent::SensorErrorEvent(const AtomicString& eventType, 22 SensorErrorEvent::SensorErrorEvent(const AtomicString& eventType,
23 const SensorErrorEventInit& initializer) 23 const SensorErrorEventInit& initializer)
24 : Event(eventType, initializer) {} 24 : Event(eventType, initializer) {}
25 25
26 const AtomicString& SensorErrorEvent::interfaceName() const { 26 const AtomicString& SensorErrorEvent::interfaceName() const {
27 return EventNames::SensorErrorEvent; 27 return EventNames::SensorErrorEvent;
28 } 28 }
29 29
30 DEFINE_TRACE(SensorErrorEvent) { 30 DEFINE_TRACE(SensorErrorEvent) {
31 visitor->trace(m_error); 31 visitor->trace(m_error);
32 Event::trace(visitor); 32 Event::trace(visitor);
33 } 33 }
34 34
35 } // namespace blink 35 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698