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

Side by Side Diff: third_party/WebKit/Source/modules/nfc/NFC.h

Issue 2498543003: Mojo C++ bindings: switch device/nfc mojom target to use STL/WTF types. (Closed)
Patch Set: Created 4 years, 1 month 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 NFC_h 5 #ifndef NFC_h
6 #define NFC_h 6 #define NFC_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "bindings/modules/v8/StringOrArrayBufferOrNFCMessage.h" 10 #include "bindings/modules/v8/StringOrArrayBufferOrNFCMessage.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // Interface required by garbage collection. 63 // Interface required by garbage collection.
64 DECLARE_VIRTUAL_TRACE(); 64 DECLARE_VIRTUAL_TRACE();
65 65
66 private: 66 private:
67 void OnRequestCompleted(ScriptPromiseResolver*, 67 void OnRequestCompleted(ScriptPromiseResolver*,
68 device::nfc::mojom::blink::NFCErrorPtr); 68 device::nfc::mojom::blink::NFCErrorPtr);
69 void OnConnectionError(); 69 void OnConnectionError();
70 70
71 // device::nfc::mojom::blink::NFCClient implementation. 71 // device::nfc::mojom::blink::NFCClient implementation.
72 void OnWatch(mojo::WTFArray<uint32_t> ids, 72 void OnWatch(const WTF::Vector<uint32_t>& ids,
73 device::nfc::mojom::blink::NFCMessagePtr) override; 73 device::nfc::mojom::blink::NFCMessagePtr) override;
74 74
75 private: 75 private:
76 explicit NFC(LocalFrame*); 76 explicit NFC(LocalFrame*);
77 device::nfc::mojom::blink::NFCPtr m_nfc; 77 device::nfc::mojom::blink::NFCPtr m_nfc;
78 mojo::Binding<device::nfc::mojom::blink::NFCClient> m_client; 78 mojo::Binding<device::nfc::mojom::blink::NFCClient> m_client;
79 HeapHashSet<Member<ScriptPromiseResolver>> m_requests; 79 HeapHashSet<Member<ScriptPromiseResolver>> m_requests;
80 }; 80 };
81 81
82 } // namespace blink 82 } // namespace blink
83 83
84 #endif // NFC_h 84 #endif // NFC_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698