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

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

Issue 2834053003: Split V8Binding (Closed)
Patch Set: Rebase Created 3 years, 7 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 "bindings/core/v8/V8Binding.h" 7 #include "bindings/core/v8/V8BindingForCore.h"
8 #include "v8/include/v8.h" 8 #include "v8/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& event_type, 14 SensorErrorEvent::SensorErrorEvent(const AtomicString& event_type,
15 DOMException* error) 15 DOMException* error)
16 : Event(event_type, false, false) // does not bubble, is not cancelable. 16 : Event(event_type, false, false) // does not bubble, is not cancelable.
17 , 17 ,
18 error_(error) { 18 error_(error) {
19 DCHECK(error_); 19 DCHECK(error_);
20 } 20 }
21 21
22 SensorErrorEvent::SensorErrorEvent(const AtomicString& event_type, 22 SensorErrorEvent::SensorErrorEvent(const AtomicString& event_type,
23 const SensorErrorEventInit& initializer) 23 const SensorErrorEventInit& initializer)
24 : Event(event_type, initializer) {} 24 : Event(event_type, 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(error_); 31 visitor->Trace(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