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

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

Issue 1902263004: Mojo: Change the blink variant from "wtf" to "blink". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 #include "modules/webusb/USB.h" 5 #include "modules/webusb/USB.h"
6 6
7 #include "bindings/core/v8/ScriptPromise.h" 7 #include "bindings/core/v8/ScriptPromise.h"
8 #include "bindings/core/v8/ScriptPromiseResolver.h" 8 #include "bindings/core/v8/ScriptPromiseResolver.h"
9 #include "core/dom/DOMException.h" 9 #include "core/dom/DOMException.h"
10 #include "core/dom/Document.h" 10 #include "core/dom/Document.h"
11 #include "core/dom/ExceptionCode.h" 11 #include "core/dom/ExceptionCode.h"
12 #include "device/usb/public/interfaces/device.mojom-wtf.h" 12 #include "device/usb/public/interfaces/device.mojom-blink.h"
13 #include "modules/EventTargetModules.h" 13 #include "modules/EventTargetModules.h"
14 #include "modules/webusb/USBConnectionEvent.h" 14 #include "modules/webusb/USBConnectionEvent.h"
15 #include "modules/webusb/USBDevice.h" 15 #include "modules/webusb/USBDevice.h"
16 #include "modules/webusb/USBDeviceFilter.h" 16 #include "modules/webusb/USBDeviceFilter.h"
17 #include "modules/webusb/USBDeviceRequestOptions.h" 17 #include "modules/webusb/USBDeviceRequestOptions.h"
18 #include "platform/UserGestureIndicator.h" 18 #include "platform/UserGestureIndicator.h"
19 #include "platform/mojo/MojoHelper.h" 19 #include "platform/mojo/MojoHelper.h"
20 #include "public/platform/ServiceRegistry.h" 20 #include "public/platform/ServiceRegistry.h"
21 #include "wtf/Functional.h" 21 #include "wtf/Functional.h"
22 22
23 namespace usb = device::usb::wtf; 23 namespace usb = device::usb::blink;
24 24
25 namespace blink { 25 namespace blink {
26 namespace { 26 namespace {
27 27
28 const char kNoServiceError[] = "USB service unavailable."; 28 const char kNoServiceError[] = "USB service unavailable.";
29 29
30 usb::DeviceFilterPtr convertDeviceFilter(const USBDeviceFilter& filter) 30 usb::DeviceFilterPtr convertDeviceFilter(const USBDeviceFilter& filter)
31 { 31 {
32 auto mojoFilter = usb::DeviceFilter::New(); 32 auto mojoFilter = usb::DeviceFilter::New();
33 mojoFilter->has_vendor_id = filter.hasVendorId(); 33 mojoFilter->has_vendor_id = filter.hasVendorId();
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 DEFINE_TRACE(USB) 208 DEFINE_TRACE(USB)
209 { 209 {
210 EventTargetWithInlineData::trace(visitor); 210 EventTargetWithInlineData::trace(visitor);
211 ContextLifecycleObserver::trace(visitor); 211 ContextLifecycleObserver::trace(visitor);
212 visitor->trace(m_deviceManagerRequests); 212 visitor->trace(m_deviceManagerRequests);
213 visitor->trace(m_chooserServiceRequests); 213 visitor->trace(m_chooserServiceRequests);
214 } 214 }
215 215
216 } // namespace blink 216 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USB.h ('k') | third_party/WebKit/Source/modules/webusb/USBAlternateInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698