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

Side by Side Diff: Source/modules/webusb/USB.cpp

Issue 1262163003: Add WebUSB bindings and client interface [part 1] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "config.h"
6 #include "modules/webusb/USB.h"
7
8 #include "modules/webusb/USBDeviceEnumerationOptions.h"
9 #include "modules/webusb/USBDeviceFilter.h"
10 #include "public/platform/modules/webusb/WebUSBClient.h"
11 #include "public/platform/modules/webusb/WebUSBDeviceEnumerationOptions.h"
12 #include "public/platform/modules/webusb/WebUSBDeviceFilter.h"
haraken 2015/07/30 11:26:52 Some of the header files won't be necessary in thi
Ken Rockot(use gerrit already) 2015/07/30 18:06:54 Acknowledged.
13
14 namespace blink {
15
16 USB::USB(LocalFrame& frame)
17 : m_controller(USBController::from(frame))
18 {
19 }
20
21 ScriptPromise USB::getDevices(ScriptState* scriptState, const USBDeviceEnumerati onOptions& options)
22 {
23 ASSERT_NOT_REACHED();
24 }
25
26 DEFINE_TRACE(USB)
27 {
28 #if ENABLE(OILPAN)
haraken 2015/07/30 11:26:52 This wouldn't be necessary.
Ken Rockot(use gerrit already) 2015/07/30 18:06:54 Done.
29 visitor->trace(m_controller);
30 #endif
31 }
32
33 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698