[Webkit-unassigned] [Bug 96023] Expose ability to create WebUserMediaRequest from chromium side

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 6 16:31:17 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=96023


Adam Barth <abarth at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #162607|review?                     |review-
               Flag|                            |




--- Comment #6 from Adam Barth <abarth at webkit.org>  2012-09-06 16:31:31 PST ---
(From update of attachment 162607)
View in context: https://bugs.webkit.org/attachment.cgi?id=162607&action=review

> Source/WebKit/chromium/public/WebFrame.h:327
> +    virtual WebUserMediaRequest *createWebUserMediaRequest(v8::Isolate*,

WebUserMediaRequest *  ->    WebUserMediaRequest*

Do we need to pass in the isolate here?

Also, we should take v8::Handle as a parameter rather than v8::Local

> Source/WebKit/chromium/src/WebFrameImpl.cpp:1002
> +WebKit::WebUserMediaRequest *WebFrameImpl::createWebUserMediaRequest(v8::Isolate *isolate,

In WebKit style, the * goes on the other side.

> Source/WebKit/chromium/src/WebFrameImpl.cpp:1006
> +    UserMediaController* userMedia = UserMediaController::from(m_frame ? m_frame->page() : 0);

We should just return early if there's no m_frame.  There's not much point in continuing.

> Source/WebKit/chromium/src/WebFrameImpl.cpp:1008
> +      return 0;

Four-space indent.

> Source/WebKit/chromium/src/WebFrameImpl.cpp:1013
> +      requestErrorCallback = V8NavigatorUserMediaErrorCallback::create(errorCallback, getScriptExecutionContext());

Four-space indent.

> Source/WebKit/chromium/src/WebFrameImpl.cpp:1015
> +    Dictionary requestOptions = Dictionary(options, isolate);

You can just use v8::Isolate::current() here rather than taking the isolate as a parameter.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list