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

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

Issue 2848243004: Clean up bindings/core/v8 (Part 2) (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 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 BluetoothUUID_h 5 #ifndef BluetoothUUID_h
6 #define BluetoothUUID_h 6 #define BluetoothUUID_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "bindings/modules/v8/StringOrUnsignedLong.h" 8 #include "bindings/modules/v8/StringOrUnsignedLong.h"
9 #include "platform/bindings/ScriptWrappable.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ExceptionState; 14 class ExceptionState;
15 15
16 // This class provides a way for script to look up UUIDs by name so they don't 16 // This class provides a way for script to look up UUIDs by name so they don't
17 // need to be replicated in each application. 17 // need to be replicated in each application.
18 class BluetoothUUID final : public GarbageCollected<BluetoothUUID>, 18 class BluetoothUUID final : public GarbageCollected<BluetoothUUID>,
19 public ScriptWrappable { 19 public ScriptWrappable {
20 DEFINE_WRAPPERTYPEINFO(); 20 DEFINE_WRAPPERTYPEINFO();
21 21
22 public: 22 public:
23 // IDL exposed interface: 23 // IDL exposed interface:
24 static String getService(StringOrUnsignedLong name, ExceptionState&); 24 static String getService(StringOrUnsignedLong name, ExceptionState&);
25 static String getCharacteristic(StringOrUnsignedLong name, ExceptionState&); 25 static String getCharacteristic(StringOrUnsignedLong name, ExceptionState&);
26 static String getDescriptor(StringOrUnsignedLong name, ExceptionState&); 26 static String getDescriptor(StringOrUnsignedLong name, ExceptionState&);
27 static String canonicalUUID(unsigned alias); 27 static String canonicalUUID(unsigned alias);
28 28
29 // Interface required by garbage collection. 29 // Interface required by garbage collection.
30 DEFINE_INLINE_TRACE() {} 30 DEFINE_INLINE_TRACE() {}
31 }; 31 };
32 32
33 } // namespace blink 33 } // namespace blink
34 34
35 #endif // BluetoothUUID_h 35 #endif // BluetoothUUID_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698