blob: b5694afd63bafc39619bbe80b392887865859c7a [file] [log] [blame]
// 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 DetectedFace_h
#define DetectedFace_h
#include "modules/ModulesExport.h"
#include "platform/bindings/ScriptWrappable.h"
namespace blink {
class DOMRect;
class Landmark;
class MODULES_EXPORT DetectedFace final : public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
static DetectedFace* Create();
static DetectedFace* Create(DOMRect*);
static DetectedFace* Create(DOMRect*, const HeapVector<Landmark>&);
DOMRect* boundingBox() const;
const HeapVector<Landmark>& landmarks() const;
void Trace(blink::Visitor*);
private:
explicit DetectedFace(DOMRect*);
DetectedFace(DOMRect*, const HeapVector<Landmark>&);
const Member<DOMRect> bounding_box_;
const HeapVector<Landmark> landmarks_;
};
} // namespace blink
#endif // DetectedFace_h