OLD | NEW |
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 "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
10 #include "modules/shapedetection/DetectedObject.h" | |
11 | 10 |
12 namespace blink { | 11 namespace blink { |
13 | 12 |
14 class MODULES_EXPORT DetectedFace final : public DetectedObject { | 13 class DOMRect; |
| 14 |
| 15 class MODULES_EXPORT DetectedFace final |
| 16 : public GarbageCollected<DetectedFace> |
| 17 , public ScriptWrappable { |
15 DEFINE_WRAPPERTYPEINFO(); | 18 DEFINE_WRAPPERTYPEINFO(); |
16 | 19 |
17 public: | 20 public: |
18 static DetectedFace* create(); | 21 static DetectedFace* create(); |
| 22 DOMRect* boundingBox() const; |
| 23 DECLARE_TRACE(); |
| 24 |
| 25 private: |
| 26 Member<DOMRect> m_boundingBox; |
19 }; | 27 }; |
20 | 28 |
21 } // namespace blink | 29 } // namespace blink |
22 | 30 |
23 #endif // DetectedFace_h | 31 #endif // DetectedFace_h |
OLD | NEW |