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

Issue 1890313002: MediaStream Image Capture (1): idl and wireframe .h/.cpp/LayoutTest (Closed)

Created:
4 years, 8 months ago by mcasas
Modified:
4 years, 8 months ago
Reviewers:
haraken, whywhat
CC:
chromium-reviews, blink-reviews, haraken, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MediaStream Image Capture (1): idl and wireframe .h/.cpp/LayoutTest This CL adds a minimalistic ImageCapture.idl, with one member and one method, grabFrame(). A LayoutTest is added exercising some Exceptions and the said method, which returns a rejected Promise if the Video Track associated to the ImageCapture is in an inappropriate state (i.e. not live, or disabled). See https://crrev.com/1846753003 for a more complete example of how it all fits together. BUG=518807 Committed: https://crrev.com/06765494ed8bdfc335628c409450c23aa79ad2a7 Cr-Commit-Position: refs/heads/master@{#388799}

Patch Set 1 #

Total comments: 2

Patch Set 2 : haraken@ comment: make ImageCapture a ContextLifecycleObserver iso an ActiveDOMObject #

Total comments: 4

Patch Set 3 : haraken@ comments #

Total comments: 1

Patch Set 4 : Added TODO for the mentioned LayoutTests #

Messages

Total messages: 24 (13 generated)
mcasas
whywhat@ PTAL
4 years, 8 months ago (2016-04-19 23:38:15 UTC) #8
haraken
https://codereview.chromium.org/1890313002/diff/60001/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp File third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp (right): https://codereview.chromium.org/1890313002/diff/60001/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp#newcode38 third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp:38: if (!getExecutionContext() || getExecutionContext()->activeDOMObjectsAreStopped()) A better way to do ...
4 years, 8 months ago (2016-04-19 23:50:56 UTC) #10
mcasas
PTAL https://codereview.chromium.org/1890313002/diff/60001/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp File third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp (right): https://codereview.chromium.org/1890313002/diff/60001/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp#newcode38 third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp:38: if (!getExecutionContext() || getExecutionContext()->activeDOMObjectsAreStopped()) On 2016/04/19 23:50:56, haraken ...
4 years, 8 months ago (2016-04-20 00:31:51 UTC) #11
haraken
https://codereview.chromium.org/1890313002/diff/80001/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp File third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp (right): https://codereview.chromium.org/1890313002/diff/80001/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp#newcode19 third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp:19: exceptionState.throwDOMException(NotSupportedError, "Cannot create an ImageCapturer from a non-video Track."); ...
4 years, 8 months ago (2016-04-20 00:41:04 UTC) #12
mcasas
PTAL https://codereview.chromium.org/1890313002/diff/80001/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp File third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp (right): https://codereview.chromium.org/1890313002/diff/80001/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp#newcode19 third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp:19: exceptionState.throwDOMException(NotSupportedError, "Cannot create an ImageCapturer from a non-video ...
4 years, 8 months ago (2016-04-20 00:53:42 UTC) #13
haraken
In terms of implementation, LGTM. https://codereview.chromium.org/1890313002/diff/100001/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp File third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp (right): https://codereview.chromium.org/1890313002/diff/100001/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp#newcode41 third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp:41: bool ImageCapture::hasPendingActivity() const I ...
4 years, 8 months ago (2016-04-20 01:01:41 UTC) #14
mcasas
On 2016/04/20 01:01:41, haraken wrote: > In terms of implementation, LGTM. > > https://codereview.chromium.org/1890313002/diff/100001/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp > ...
4 years, 8 months ago (2016-04-21 00:35:22 UTC) #16
whywhat
On 2016/04/21 at 00:35:22, mcasas wrote: > On 2016/04/20 01:01:41, haraken wrote: > > In ...
4 years, 8 months ago (2016-04-21 14:46:22 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1890313002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1890313002/120001
4 years, 8 months ago (2016-04-21 15:49:36 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:120001)
4 years, 8 months ago (2016-04-21 17:18:46 UTC) #22
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:35:39 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/06765494ed8bdfc335628c409450c23aa79ad2a7
Cr-Commit-Position: refs/heads/master@{#388799}

Powered by Google App Engine
This is Rietveld 408576698