Changeset 207828 in webkit


Ignore:
Timestamp:
Oct 25, 2016, 11:00:59 AM (9 years ago)
Author:
eric.carlson@apple.com
Message:

[MediaStream] Add "has capture device" bit to media state flags
https://bugs.webkit.org/show_bug.cgi?id=163952

Reviewed by Sam Weinig.

  • UIProcess/API/C/WKPage.cpp:

(WKPageGetMediaState): Support MediaProducer::HasMediaCaptureDevice.

  • UIProcess/API/C/WKPagePrivate.h: Define kWKMediaHasCaptureDevice.
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r207823 r207828  
     12016-10-25  Eric Carlson  <eric.carlson@apple.com>
     2
     3        [MediaStream] Add "has capture device" bit to media state flags
     4        https://bugs.webkit.org/show_bug.cgi?id=163952
     5
     6        Reviewed by Sam Weinig.
     7
     8        * UIProcess/API/C/WKPage.cpp:
     9        (WKPageGetMediaState): Support MediaProducer::HasMediaCaptureDevice.
     10        * UIProcess/API/C/WKPagePrivate.h: Define kWKMediaHasCaptureDevice.
     11
    1122016-10-25  Chris Dumez  <cdumez@apple.com>
    213
  • trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp

    r207764 r207828  
    27492749    if (coreState & WebCore::MediaProducer::IsPlayingVideo)
    27502750        state |= kWKMediaIsPlayingVideo;
     2751    if (coreState & WebCore::MediaProducer::HasMediaCaptureDevice)
     2752        state |= kWKMediaHasCaptureDevice;
    27512753    if (coreState & WebCore::MediaProducer::HasActiveMediaCaptureDevice)
    27522754        state |= kWKMediaHasActiveCaptureDevice;
  • trunk/Source/WebKit2/UIProcess/API/C/WKPagePrivate.h

    r207764 r207828  
    135135    kWKMediaIsPlayingVideo = 1 << 1,
    136136    kWKMediaHasActiveCaptureDevice = 1 << 2,
     137    kWKMediaHasCaptureDevice = 1 << 3,
    137138};
    138139typedef uint32_t WKMediaState;
Note: See TracChangeset for help on using the changeset viewer.