Changeset 185136 in webkit


Ignore:
Timestamp:
Jun 2, 2015 5:45:00 PM (9 years ago)
Author:
commit-queue@webkit.org
Message:

MediaSessions should keep track of their current state.
https://bugs.webkit.org/show_bug.cgi?id=145575

Patch by Matt Rajca <mrajca@apple.com> on 2015-06-02
Reviewed by Alex Christensen.

  • Modules/mediasession/MediaSession.h: Per the Media Session spec, the state can be 'Idle', 'Active', or 'Interrupted'. Sessions are created in an 'Idle' state.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r185133 r185136  
     12015-06-02  Matt Rajca  <mrajca@apple.com>
     2
     3        MediaSessions should keep track of their current state.
     4        https://bugs.webkit.org/show_bug.cgi?id=145575
     5
     6        Reviewed by Alex Christensen.
     7
     8        * Modules/mediasession/MediaSession.h: Per the Media Session spec, the state can be 'Idle', 'Active', or
     9          'Interrupted'. Sessions are created in an 'Idle' state.
     10
    1112015-06-02  Jon Lee  <jonlee@apple.com>
    212
  • trunk/Source/WebCore/Modules/mediasession/MediaSession.h

    r185126 r185136  
    4949
    5050private:
     51    enum class State {
     52        Idle,
     53        Active,
     54        Interrupted
     55    };
     56
     57    State m_currentState { State::Idle };
     58
    5159    const String m_kind;
    5260    RefPtr<MediaRemoteControls> m_controls;
Note: See TracChangeset for help on using the changeset viewer.