| 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 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class DOMRect; | 13 class DOMRect; |
| 14 | 14 |
| 15 class MODULES_EXPORT DetectedFace final : public GarbageCollected<DetectedFace>, | 15 class MODULES_EXPORT DetectedFace final : public GarbageCollected<DetectedFace>, |
| 16 public ScriptWrappable { | 16 public ScriptWrappable { |
| 17 DEFINE_WRAPPERTYPEINFO(); | 17 DEFINE_WRAPPERTYPEINFO(); |
| 18 | 18 |
| 19 public: | 19 public: |
| 20 static DetectedFace* create(); | 20 static DetectedFace* create(); |
| 21 static DetectedFace* create(DOMRect*); |
| 22 |
| 21 DOMRect* boundingBox() const; | 23 DOMRect* boundingBox() const; |
| 22 DECLARE_TRACE(); | 24 DECLARE_TRACE(); |
| 23 | 25 |
| 24 private: | 26 private: |
| 27 explicit DetectedFace(DOMRect*); |
| 28 |
| 25 Member<DOMRect> m_boundingBox; | 29 Member<DOMRect> m_boundingBox; |
| 26 }; | 30 }; |
| 27 | 31 |
| 28 } // namespace blink | 32 } // namespace blink |
| 29 | 33 |
| 30 #endif // DetectedFace_h | 34 #endif // DetectedFace_h |
| OLD | NEW |