Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(822)

Side by Side Diff: third_party/WebKit/Source/modules/shapedetection/DetectedFace.h

Issue 2859413002: Shape Detection: add idl and mojom for face landmarks and wire for Mac (Closed)
Patch Set: service-worker's global-interface-listing-expected.txt updated Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DetectedFace_h 5 #ifndef DetectedFace_h
6 #define DetectedFace_h 6 #define DetectedFace_h
7 7
8 #include "modules/ModulesExport.h" 8 #include "modules/ModulesExport.h"
9 #include "platform/bindings/ScriptWrappable.h" 9 #include "platform/bindings/ScriptWrappable.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class DOMRect; 13 class DOMRect;
14 class Landmark;
14 15
15 class MODULES_EXPORT DetectedFace final : public GarbageCollected<DetectedFace>, 16 class MODULES_EXPORT DetectedFace final : public GarbageCollected<DetectedFace>,
16 public ScriptWrappable { 17 public ScriptWrappable {
17 DEFINE_WRAPPERTYPEINFO(); 18 DEFINE_WRAPPERTYPEINFO();
18 19
19 public: 20 public:
20 static DetectedFace* Create(); 21 static DetectedFace* Create();
21 static DetectedFace* Create(DOMRect*); 22 static DetectedFace* Create(DOMRect*);
23 static DetectedFace* Create(DOMRect*, const HeapVector<Landmark>&);
22 24
23 DOMRect* boundingBox() const; 25 DOMRect* boundingBox() const;
26 const HeapVector<Landmark>& landmarks() const;
27
24 DECLARE_TRACE(); 28 DECLARE_TRACE();
25 29
26 private: 30 private:
27 explicit DetectedFace(DOMRect*); 31 explicit DetectedFace(DOMRect*);
32 DetectedFace(DOMRect*, const HeapVector<Landmark>&);
28 33
29 Member<DOMRect> bounding_box_; 34 Member<DOMRect> bounding_box_;
35 HeapVector<Landmark> landmarks_;
30 }; 36 };
31 37
32 } // namespace blink 38 } // namespace blink
33 39
34 #endif // DetectedFace_h 40 #endif // DetectedFace_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698