Chromium Code Reviews| Index: third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.h |
| diff --git a/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.h b/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..148d542b8dbb620b45946699b18e48a0d0d8a337 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.h |
| @@ -0,0 +1,38 @@ |
| +// Copyright 2016 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 DetectedBarcode_h |
| +#define DetectedBarcode_h |
| + |
| +#include "bindings/core/v8/ScriptWrappable.h" |
| +#include "modules/ModulesExport.h" |
| +#include "wtf/text/WTFString.h" |
| + |
| +namespace blink { |
| + |
| +class DOMRect; |
| + |
| +class MODULES_EXPORT DetectedBarcode final |
| + : public GarbageCollectedFinalized<DetectedBarcode>, |
| + public ScriptWrappable { |
| + DEFINE_WRAPPERTYPEINFO(); |
| + |
| + public: |
| + static DetectedBarcode* create(); |
| + static DetectedBarcode* create(String rawValue, DOMRect* boundingBox); |
|
xianglu
2016/11/15 19:19:29
I think variable names are not necessary in .h fil
mcasas
2016/11/15 20:22:56
On Blink style they're not. Removed.
|
| + |
| + const String& rawValue() const; |
| + DOMRect* boundingBox() const; |
| + DECLARE_TRACE(); |
| + |
| + private: |
| + DetectedBarcode(String rawValue, DOMRect* boundingBox); |
| + |
| + const String m_rawValue; |
| + const Member<DOMRect> m_boundingBox; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // DetectedBarcode_h |