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

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

Issue 1942723004: Change EventTarget callback APIs for add/RemoveEventListenerInternal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win32 signed/unsigned issue Created 4 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 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 #ifndef BluetoothRemoteGATTCharacteristic_h 5 #ifndef BluetoothRemoteGATTCharacteristic_h
6 #define BluetoothRemoteGATTCharacteristic_h 6 #define BluetoothRemoteGATTCharacteristic_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/dom/ActiveDOMObject.h" 9 #include "core/dom/ActiveDOMObject.h"
10 #include "core/dom/DOMArrayPiece.h" 10 #include "core/dom/DOMArrayPiece.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 DOMDataView* value() const { return m_value; } 78 DOMDataView* value() const { return m_value; }
79 ScriptPromise readValue(ScriptState*); 79 ScriptPromise readValue(ScriptState*);
80 ScriptPromise writeValue(ScriptState*, const DOMArrayPiece&); 80 ScriptPromise writeValue(ScriptState*, const DOMArrayPiece&);
81 ScriptPromise startNotifications(ScriptState*); 81 ScriptPromise startNotifications(ScriptState*);
82 ScriptPromise stopNotifications(ScriptState*); 82 ScriptPromise stopNotifications(ScriptState*);
83 83
84 DEFINE_ATTRIBUTE_EVENT_LISTENER(characteristicvaluechanged); 84 DEFINE_ATTRIBUTE_EVENT_LISTENER(characteristicvaluechanged);
85 85
86 protected: 86 protected:
87 // EventTarget overrides. 87 // EventTarget overrides.
88 bool addEventListenerInternal(const AtomicString& eventType, EventListener*, const EventListenerOptions&) override; 88 void addedEventListener(const AtomicString& eventType, RegisteredEventListen er&) override;
89 89
90 private: 90 private:
91 OwnPtr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic; 91 OwnPtr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic;
92 bool m_stopped; 92 bool m_stopped;
93 Member<BluetoothCharacteristicProperties> m_properties; 93 Member<BluetoothCharacteristicProperties> m_properties;
94 Member<DOMDataView> m_value; 94 Member<DOMDataView> m_value;
95 }; 95 };
96 96
97 } // namespace blink 97 } // namespace blink
98 98
99 #endif // BluetoothRemoteGATTCharacteristic_h 99 #endif // BluetoothRemoteGATTCharacteristic_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698