Reviewers: mcasas
CL:
https://codereview.chromium.org/2369693002/Message:
ptal.
Description:
Shapedetection module: Blink side implementation
This CL implements mojom client on blink side.
- FaceDetector::detect() sends an image to the browser through shared_buffer;
- FaceDetector::onDetectFace() receives a list of boundingBoxes from Chrome.
A mock mojom server is added to test the connection.
This CL also reduces the API surface by removing Detector and DetectedObject
interface, so that the hierarchy is simpler and cleaner.
BUG=646083
TEST=Pass LayoutTest detectface.html
Affected files (+279, -131 lines):
M content/public/app/mojo/content_browser_manifest.json
A third_party/WebKit/LayoutTests/fast/shapedetection/shapedetection-creation-expected.txt
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt
A third_party/WebKit/LayoutTests/shapedetection/detectface.html
A third_party/WebKit/LayoutTests/shapedetection/resources/mock-shapedetection.js
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt
M third_party/WebKit/Source/modules/modules_idl_files.gni
M third_party/WebKit/Source/modules/shapedetection/BUILD.gn
M third_party/WebKit/Source/modules/shapedetection/DEPS
M third_party/WebKit/Source/modules/shapedetection/DetectedFace.h
M third_party/WebKit/Source/modules/shapedetection/DetectedFace.cpp
M third_party/WebKit/Source/modules/shapedetection/DetectedFace.idl
D third_party/WebKit/Source/modules/shapedetection/DetectedObject.h
D third_party/WebKit/Source/modules/shapedetection/DetectedObject.idl
M third_party/WebKit/Source/modules/shapedetection/Detector.h
D third_party/WebKit/Source/modules/shapedetection/Detector.idl
M third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
M third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp
M third_party/WebKit/Source/modules/shapedetection/FaceDetector.idl
M third_party/WebKit/public/BUILD.gn
A third_party/WebKit/public/platform/modules/shapedetection/OWNERS
A third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom