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

Issue 2522143002: ShapeDetection: split mojom into face and barcode interfaces (Closed)

Created:
4 years ago by mcasas
Modified:
4 years ago
CC:
chromium-reviews, creis+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, nasko+codewatch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, dglazkov+blink, darin-cc_chromium.org, agrieve+watch_chromium.org, blink-reviews, darin (slow to review), blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ShapeDetection: split mojom into face and barcode interfaces Barcode detection for Android, currently in shapedetection.mojom, can only be implemented in Chrome due to it using Google Play Services (see https://crrev.com/2512123002). This CL splits the current interface in shapedetection.mojom, which has a method for detecting faces and another for detecting barcodes, into two .mojom files, one for each. Java class names get s/Shape/Face/. LayoutTests are updated to work with different mocks, one for each service implementation. BUG=665150 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/3868f3870f951921323c6715be6a165cb0bfc221 Cr-Commit-Position: refs/heads/master@{#434240}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : xianglu@ comments and homogenised |m_barcodeService| and |m_faceService| usage #

Patch Set 3 : Smart rebase to https://crrev.com/2527503003 (FaceDetectorOptions) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -625 lines) Patch
M content/browser/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/android/BUILD.gn View 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/InterfaceRegistrarImpl.java View 2 chunks +3 lines, -3 lines 0 comments Download
A + content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionFactory.java View 1 chunk +5 lines, -5 lines 0 comments Download
A + content/public/android/java/src/org/chromium/content/browser/shapedetection/FaceDetectionImpl.java View 3 chunks +7 lines, -17 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/browser/shapedetection/ShapeDetectionFactory.java View 1 chunk +0 lines, -22 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/browser/shapedetection/ShapeDetectionImpl.java View 1 chunk +0 lines, -126 lines 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 2 chunks +4 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/shapedetection/detection-HTMLImageElement.html View 1 2 chunks +19 lines, -7 lines 0 comments Download
A + third_party/WebKit/LayoutTests/shapedetection/detection-HTMLVideoElement.html View 1 4 chunks +20 lines, -8 lines 0 comments Download
A + third_party/WebKit/LayoutTests/shapedetection/detection-ImageBitmap.html View 1 5 chunks +20 lines, -8 lines 0 comments Download
A + third_party/WebKit/LayoutTests/shapedetection/detection-options.html View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/shapedetection/detectshape-HTMLImageElement.html View 1 chunk +0 lines, -60 lines 0 comments Download
D third_party/WebKit/LayoutTests/shapedetection/detectshape-HTMLVideoElement.html View 1 chunk +0 lines, -64 lines 0 comments Download
D third_party/WebKit/LayoutTests/shapedetection/detectshape-ImageBitmap.html View 1 chunk +0 lines, -68 lines 0 comments Download
A third_party/WebKit/LayoutTests/shapedetection/resources/mock-barcodedetection.js View 1 chunk +48 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js View 3 chunks +9 lines, -27 lines 0 comments Download
D third_party/WebKit/LayoutTests/shapedetection/resources/mock-shapedetection.js View 1 chunk +0 lines, -73 lines 0 comments Download
D third_party/WebKit/LayoutTests/shapedetection/shapedetection-options.html View 1 2 1 chunk +0 lines, -37 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/FaceDetector.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/ShapeDetector.h View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp View 1 2 4 chunks +39 lines, -32 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 chunk +2 lines, -1 line 0 comments Download
A third_party/WebKit/public/platform/modules/shapedetection/barcodedetection.mojom View 1 chunk +24 lines, -0 lines 0 comments Download
A + third_party/WebKit/public/platform/modules/shapedetection/facedetection.mojom View 1 2 1 chunk +3 lines, -13 lines 0 comments Download
D third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom View 1 2 1 chunk +0 lines, -40 lines 0 comments Download

Messages

Total messages: 38 (26 generated)
mcasas
xianglu@ PTAL
4 years ago (2016-11-23 01:03:02 UTC) #7
mcasas
haraken@: plz RS small changes in Source/modules/shapedetection tsepez@: RS plz content_browser_manifest.json and the mojom changes
4 years ago (2016-11-23 02:29:53 UTC) #10
haraken
modules/ LGTM
4 years ago (2016-11-23 02:32:27 UTC) #11
xianglu
https://codereview.chromium.org/2522143002/diff/60001/third_party/WebKit/LayoutTests/shapedetection/detection-HTMLImageElement.html File third_party/WebKit/LayoutTests/shapedetection/detection-HTMLImageElement.html (right): https://codereview.chromium.org/2522143002/diff/60001/third_party/WebKit/LayoutTests/shapedetection/detection-HTMLImageElement.html#newcode38 third_party/WebKit/LayoutTests/shapedetection/detection-HTMLImageElement.html:38: }, 'Detector detect(HTMLImageElement)'); nit: Double quotes to be consistent. ...
4 years ago (2016-11-23 02:53:37 UTC) #12
xianglu
LGTM
4 years ago (2016-11-23 05:11:20 UTC) #13
mcasas
avi@ RS please changes in content/ https://codereview.chromium.org/2522143002/diff/60001/third_party/WebKit/LayoutTests/shapedetection/detection-HTMLImageElement.html File third_party/WebKit/LayoutTests/shapedetection/detection-HTMLImageElement.html (right): https://codereview.chromium.org/2522143002/diff/60001/third_party/WebKit/LayoutTests/shapedetection/detection-HTMLImageElement.html#newcode38 third_party/WebKit/LayoutTests/shapedetection/detection-HTMLImageElement.html:38: }, 'Detector detect(HTMLImageElement)'); ...
4 years ago (2016-11-23 14:49:38 UTC) #15
Avi (use Gerrit)
lgtm stamp
4 years ago (2016-11-23 16:00:36 UTC) #16
Tom Sepez
RS LGTM on spitting existing mojom
4 years ago (2016-11-23 16:43:15 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2522143002/80001
4 years ago (2016-11-23 16:51:04 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2522143002/140001
4 years ago (2016-11-23 20:16:16 UTC) #33
commit-bot: I haz the power
Committed patchset #3 (id:140001)
4 years ago (2016-11-23 20:34:54 UTC) #36
commit-bot: I haz the power
4 years ago (2016-11-23 20:36:41 UTC) #38
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3868f3870f951921323c6715be6a165cb0bfc221
Cr-Commit-Position: refs/heads/master@{#434240}

Powered by Google App Engine
This is Rietveld 408576698