blob: d8b125de03fde6f00f9d711cf8b1757d1d7c195d [file] [log] [blame]
// Copyright 2018 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 "third_party/blink/renderer/modules/serial/serial_port.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
namespace blink {
ScriptValue SerialPort::in(ScriptState* script_state) {
return ScriptValue::CreateNull(script_state);
}
ScriptValue SerialPort::out(ScriptState* script_state) {
return ScriptValue::CreateNull(script_state);
}
ScriptPromise SerialPort::open(ScriptState* script_state,
const SerialOptions* options) {
return ScriptPromise::RejectWithDOMException(
script_state, DOMException::Create(DOMExceptionCode::kNotSupportedError));
}
ScriptPromise SerialPort::close(ScriptState* script_state) {
return ScriptPromise::RejectWithDOMException(
script_state, DOMException::Create(DOMExceptionCode::kNotSupportedError));
}
} // namespace blink