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

Unified Diff: Source/modules/webusb/USBDevice.h

Issue 1262163003: Add WebUSB bindings and client interface [part 1] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Handle null navigator.frame() without ASSERT Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/webusb/USBController.cpp ('k') | Source/modules/webusb/USBDevice.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webusb/USBDevice.h
diff --git a/Source/modules/webusb/USBDevice.h b/Source/modules/webusb/USBDevice.h
new file mode 100644
index 0000000000000000000000000000000000000000..ad94231ad9316e9f20bf98a129a31b5cb88f3331
--- /dev/null
+++ b/Source/modules/webusb/USBDevice.h
@@ -0,0 +1,40 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef USBDevice_h
+#define USBDevice_h
+
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class USBControlTransferParameters;
+
+class USBDevice
+ : public GarbageCollectedFinalized<USBDevice>
+ , public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ static USBDevice* create()
+ {
+ return new USBDevice;
+ }
+
+ USBDevice() { }
+
+ virtual ~USBDevice() { }
+
+ String guid() const
+ {
+ ASSERT_NOT_REACHED();
+ return "";
+ }
+
+ DEFINE_INLINE_TRACE() { }
+};
+
+} // namespace blink
+
+#endif // USBDevice_h
« no previous file with comments | « Source/modules/webusb/USBController.cpp ('k') | Source/modules/webusb/USBDevice.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698