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

Unified Diff: third_party/WebKit/Source/modules/shapedetection/FaceDetector.h

Issue 2629523008: Shape Detection: Remove ConstructorCallWith=Document (Closed)
Patch Set: Add layout test for worker Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
diff --git a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
index a503ae1149b7e1e708dcb7896ff97911ed486c66..84f6b9fba86d9e6b30153d9e4f432262099652b2 100644
--- a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
+++ b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
@@ -16,19 +16,18 @@
namespace blink {
class FaceDetectorOptions;
-class LocalFrame;
class MODULES_EXPORT FaceDetector final : public ShapeDetector,
public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static FaceDetector* create(Document&, const FaceDetectorOptions&);
+ static FaceDetector* create(const FaceDetectorOptions&);
DECLARE_VIRTUAL_TRACE();
private:
- FaceDetector(LocalFrame&, const FaceDetectorOptions&);
+ explicit FaceDetector(const FaceDetectorOptions&);
~FaceDetector() override = default;
ScriptPromise doDetect(ScriptPromiseResolver*,

Powered by Google App Engine
This is Rietveld 408576698