| Index: third_party/WebKit/public/platform/modules/nfc/WebNFCPushOptions.h
|
| diff --git a/third_party/WebKit/public/platform/modules/nfc/WebNFCPushOptions.h b/third_party/WebKit/public/platform/modules/nfc/WebNFCPushOptions.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9ba6658bdbe3eed18ee8c73d8ad5ec021aac5e6c
|
| --- /dev/null
|
| +++ b/third_party/WebKit/public/platform/modules/nfc/WebNFCPushOptions.h
|
| @@ -0,0 +1,26 @@
|
| +// 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 WebNFCPushOptions_h
|
| +#define WebNFCPushOptions_h
|
| +
|
| +#include "public/platform/modules/nfc/WebNFCPushTarget.h"
|
| +
|
| +namespace blink {
|
| +
|
| +// Contains members of NFCPushOption dictionary as specified in the IDL.
|
| +struct WebNFCPushOptions {
|
| + WebNFCPushOptions(const WebNFCPushTarget& target = WebNFCPushTarget::Any, double timeout = std::numeric_limits<double>::infinity(), bool ignoreRead = true)
|
| + : target(target), timeout(timeout), ignoreRead(ignoreRead)
|
| + {
|
| + }
|
| +
|
| + WebNFCPushTarget target;
|
| + double timeout; // in milliseconds
|
| + bool ignoreRead;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // WebNFCPushOptions_h
|
|
|