| Index: third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp
|
| deleted file mode 100644
|
| index 699f9a64240b6dec753caf08cb6e77da150713cb..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.cpp
|
| +++ /dev/null
|
| @@ -1,52 +0,0 @@
|
| -// 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.
|
| -
|
| -#include "modules/bluetooth/BluetoothSupplement.h"
|
| -
|
| -#include "core/dom/Document.h"
|
| -
|
| -namespace blink {
|
| -
|
| -const char* BluetoothSupplement::supplementName() {
|
| - return "BluetoothSupplement";
|
| -}
|
| -
|
| -BluetoothSupplement::BluetoothSupplement(WebBluetooth* bluetooth)
|
| - : m_bluetooth(bluetooth) {}
|
| -
|
| -void BluetoothSupplement::provideTo(LocalFrame& frame,
|
| - WebBluetooth* bluetooth) {
|
| - BluetoothSupplement* bluetoothSupplement = new BluetoothSupplement(bluetooth);
|
| - Supplement<LocalFrame>::provideTo(frame, supplementName(),
|
| - bluetoothSupplement);
|
| -};
|
| -
|
| -WebBluetooth* BluetoothSupplement::from(LocalFrame* frame) {
|
| - BluetoothSupplement* supplement = static_cast<BluetoothSupplement*>(
|
| - Supplement<LocalFrame>::from(frame, supplementName()));
|
| -
|
| - ASSERT(supplement);
|
| - ASSERT(supplement->m_bluetooth);
|
| -
|
| - return supplement->m_bluetooth;
|
| -}
|
| -
|
| -WebBluetooth* BluetoothSupplement::fromScriptState(ScriptState* scriptState) {
|
| - return fromExecutionContext(scriptState->getExecutionContext());
|
| -}
|
| -
|
| -WebBluetooth* BluetoothSupplement::fromExecutionContext(
|
| - ExecutionContext* executionContext) {
|
| - if (!executionContext->isDocument()) {
|
| - return nullptr;
|
| - }
|
| - return BluetoothSupplement::from(
|
| - static_cast<Document*>(executionContext)->frame());
|
| -}
|
| -
|
| -DEFINE_TRACE(BluetoothSupplement) {
|
| - Supplement<LocalFrame>::trace(visitor);
|
| -}
|
| -
|
| -} // namespace blink
|
|
|