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

Side by Side Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/bluetooth/BluetoothRemoteGATTCharacteristic.h" 5 #include "modules/bluetooth/BluetoothRemoteGATTCharacteristic.h"
6 6
7 #include "bindings/core/v8/ScriptPromise.h" 7 #include "bindings/core/v8/ScriptPromise.h"
8 #include "bindings/core/v8/ScriptPromiseResolver.h" 8 #include "bindings/core/v8/ScriptPromiseResolver.h"
9 #include "core/dom/DOMDataView.h" 9 #include "core/dom/DOMDataView.h"
10 #include "core/dom/DOMException.h" 10 #include "core/dom/DOMException.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void BluetoothRemoteGATTCharacteristic::setValue(DOMDataView* domDataView) { 66 void BluetoothRemoteGATTCharacteristic::setValue(DOMDataView* domDataView) {
67 m_value = domDataView; 67 m_value = domDataView;
68 } 68 }
69 69
70 void BluetoothRemoteGATTCharacteristic::dispatchCharacteristicValueChanged( 70 void BluetoothRemoteGATTCharacteristic::dispatchCharacteristicValueChanged(
71 const Vector<uint8_t>& value) { 71 const Vector<uint8_t>& value) {
72 this->setValue(ConvertWTFVectorToDataView(value)); 72 this->setValue(ConvertWTFVectorToDataView(value));
73 dispatchEvent(Event::create(EventTypeNames::characteristicvaluechanged)); 73 dispatchEvent(Event::create(EventTypeNames::characteristicvaluechanged));
74 } 74 }
75 75
76 void BluetoothRemoteGATTCharacteristic::contextDestroyed() { 76 void BluetoothRemoteGATTCharacteristic::contextDestroyed(ExecutionContext*) {
77 notifyCharacteristicObjectRemoved(); 77 notifyCharacteristicObjectRemoved();
78 } 78 }
79 79
80 void BluetoothRemoteGATTCharacteristic::dispose() { 80 void BluetoothRemoteGATTCharacteristic::dispose() {
81 notifyCharacteristicObjectRemoved(); 81 notifyCharacteristicObjectRemoved();
82 } 82 }
83 83
84 void BluetoothRemoteGATTCharacteristic::notifyCharacteristicObjectRemoved() { 84 void BluetoothRemoteGATTCharacteristic::notifyCharacteristicObjectRemoved() {
85 if (!m_stopped) { 85 if (!m_stopped) {
86 m_stopped = true; 86 m_stopped = true;
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 DEFINE_TRACE(BluetoothRemoteGATTCharacteristic) { 318 DEFINE_TRACE(BluetoothRemoteGATTCharacteristic) {
319 visitor->trace(m_service); 319 visitor->trace(m_service);
320 visitor->trace(m_properties); 320 visitor->trace(m_properties);
321 visitor->trace(m_value); 321 visitor->trace(m_value);
322 visitor->trace(m_device); 322 visitor->trace(m_device);
323 EventTargetWithInlineData::trace(visitor); 323 EventTargetWithInlineData::trace(visitor);
324 ContextLifecycleObserver::trace(visitor); 324 ContextLifecycleObserver::trace(visitor);
325 } 325 }
326 326
327 } // namespace blink 327 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698