Changeset 251616 in webkit


Ignore:
Timestamp:
Oct 25, 2019 5:37:31 PM (4 years ago)
Author:
ddkilzer@apple.com
Message:

Unused arguments in MESSAGE_CHECK_CONTEXTID() macros
<https://webkit.org/b/203389>
<rdar://problem/55935374>

Reviewed by Alex Christensen.

  • UIProcess/Cocoa/PlaybackSessionManagerProxy.mm:

(#define MESSAGE_CHECK_CONTEXTID):

  • Rename macro argument from contextID to identifier and change contextIdto identifier in the body of the macro so that the argument is always used.

(WebKit::PlaybackSessionManagerProxy::setUpPlaybackControlsManagerWithID):
(WebKit::PlaybackSessionManagerProxy::currentTimeChanged):
(WebKit::PlaybackSessionManagerProxy::bufferedTimeChanged):
(WebKit::PlaybackSessionManagerProxy::seekableRangesVectorChanged):
(WebKit::PlaybackSessionManagerProxy::canPlayFastReverseChanged):
(WebKit::PlaybackSessionManagerProxy::audioMediaSelectionOptionsChanged):
(WebKit::PlaybackSessionManagerProxy::legibleMediaSelectionOptionsChanged):
(WebKit::PlaybackSessionManagerProxy::audioMediaSelectionIndexChanged):
(WebKit::PlaybackSessionManagerProxy::legibleMediaSelectionIndexChanged):
(WebKit::PlaybackSessionManagerProxy::externalPlaybackPropertiesChanged):
(WebKit::PlaybackSessionManagerProxy::wirelessVideoPlaybackDisabledChanged):
(WebKit::PlaybackSessionManagerProxy::mutedChanged):
(WebKit::PlaybackSessionManagerProxy::volumeChanged):
(WebKit::PlaybackSessionManagerProxy::durationChanged):
(WebKit::PlaybackSessionManagerProxy::playbackStartedTimeChanged):
(WebKit::PlaybackSessionManagerProxy::rateChanged):
(WebKit::PlaybackSessionManagerProxy::pictureInPictureSupportedChanged):
(WebKit::PlaybackSessionManagerProxy::pictureInPictureActiveChanged):
(WebKit::PlaybackSessionManagerProxy::handleControlledElementIDResponse const):

  • Change contextID to contextId to match local variable name now that MESSAGE_CHECK_CONTEXTID() doesn't paper over this typo for us.
  • UIProcess/Cocoa/VideoFullscreenManagerProxy.mm:

(#define MESSAGE_CHECK_CONTEXTID):

  • Rename macro argument from contextID to identifier and change contextIdto identifier in the body of the macro so that the argument is always used.
  • UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp:

(#define MESSAGE_CHECK_CONTEXTID):

  • Rename macro argument and variable in the body of the macro from id to identifier for consistency.
Location:
trunk/Source/WebKit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r251612 r251616  
     12019-10-25  David Kilzer  <ddkilzer@apple.com>
     2
     3        Unused arguments in MESSAGE_CHECK_CONTEXTID() macros
     4        <https://webkit.org/b/203389>
     5        <rdar://problem/55935374>
     6
     7        Reviewed by Alex Christensen.
     8
     9        * UIProcess/Cocoa/PlaybackSessionManagerProxy.mm:
     10        (#define MESSAGE_CHECK_CONTEXTID):
     11        - Rename macro argument from `contextID` to `identifier`
     12          and change `contextId`to `identifier` in the body of
     13          the macro so that the argument is always used.
     14        (WebKit::PlaybackSessionManagerProxy::setUpPlaybackControlsManagerWithID):
     15        (WebKit::PlaybackSessionManagerProxy::currentTimeChanged):
     16        (WebKit::PlaybackSessionManagerProxy::bufferedTimeChanged):
     17        (WebKit::PlaybackSessionManagerProxy::seekableRangesVectorChanged):
     18        (WebKit::PlaybackSessionManagerProxy::canPlayFastReverseChanged):
     19        (WebKit::PlaybackSessionManagerProxy::audioMediaSelectionOptionsChanged):
     20        (WebKit::PlaybackSessionManagerProxy::legibleMediaSelectionOptionsChanged):
     21        (WebKit::PlaybackSessionManagerProxy::audioMediaSelectionIndexChanged):
     22        (WebKit::PlaybackSessionManagerProxy::legibleMediaSelectionIndexChanged):
     23        (WebKit::PlaybackSessionManagerProxy::externalPlaybackPropertiesChanged):
     24        (WebKit::PlaybackSessionManagerProxy::wirelessVideoPlaybackDisabledChanged):
     25        (WebKit::PlaybackSessionManagerProxy::mutedChanged):
     26        (WebKit::PlaybackSessionManagerProxy::volumeChanged):
     27        (WebKit::PlaybackSessionManagerProxy::durationChanged):
     28        (WebKit::PlaybackSessionManagerProxy::playbackStartedTimeChanged):
     29        (WebKit::PlaybackSessionManagerProxy::rateChanged):
     30        (WebKit::PlaybackSessionManagerProxy::pictureInPictureSupportedChanged):
     31        (WebKit::PlaybackSessionManagerProxy::pictureInPictureActiveChanged):
     32        (WebKit::PlaybackSessionManagerProxy::handleControlledElementIDResponse const):
     33        - Change `contextID` to `contextId` to match local variable name
     34          now that MESSAGE_CHECK_CONTEXTID() doesn't paper over this
     35          typo for us.
     36
     37        * UIProcess/Cocoa/VideoFullscreenManagerProxy.mm:
     38        (#define MESSAGE_CHECK_CONTEXTID):
     39        - Rename macro argument from `contextID` to `identifier`
     40          and change `contextId`to `identifier` in the body of
     41          the macro so that the argument is always used.
     42
     43        * UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp:
     44        (#define MESSAGE_CHECK_CONTEXTID):
     45        - Rename macro argument and variable in the body of the
     46          macro from `id` to `identifier` for consistency.
     47
    1482019-10-25  Per Arne Vollan  <pvollan@apple.com>
    249
  • trunk/Source/WebKit/UIProcess/Cocoa/PlaybackSessionManagerProxy.mm

    r249275 r251616  
    3434#import "WebProcessProxy.h"
    3535
    36 #define MESSAGE_CHECK_CONTEXTID(contextID) MESSAGE_CHECK_BASE(m_contextMap.isValidKey(contextId), m_page->process().connection())
     36#define MESSAGE_CHECK_CONTEXTID(identifier) MESSAGE_CHECK_BASE(m_contextMap.isValidKey(identifier), m_page->process().connection())
    3737
    3838namespace WebKit {
     
    369369void PlaybackSessionManagerProxy::setUpPlaybackControlsManagerWithID(uint64_t contextId)
    370370{
    371     MESSAGE_CHECK_CONTEXTID(contextID);
     371    MESSAGE_CHECK_CONTEXTID(contextId);
    372372    if (m_controlsManagerContextId == contextId)
    373373        return;
     
    395395void PlaybackSessionManagerProxy::currentTimeChanged(uint64_t contextId, double currentTime, double hostTime)
    396396{
    397     MESSAGE_CHECK_CONTEXTID(contextID);
     397    MESSAGE_CHECK_CONTEXTID(contextId);
    398398    ensureModel(contextId).currentTimeChanged(currentTime);
    399399}
     
    401401void PlaybackSessionManagerProxy::bufferedTimeChanged(uint64_t contextId, double bufferedTime)
    402402{
    403     MESSAGE_CHECK_CONTEXTID(contextID);
     403    MESSAGE_CHECK_CONTEXTID(contextId);
    404404    ensureModel(contextId).bufferedTimeChanged(bufferedTime);
    405405}
     
    407407void PlaybackSessionManagerProxy::seekableRangesVectorChanged(uint64_t contextId, Vector<std::pair<double, double>> ranges, double lastModifiedTime, double liveUpdateInterval)
    408408{
    409     MESSAGE_CHECK_CONTEXTID(contextID);
     409    MESSAGE_CHECK_CONTEXTID(contextId);
    410410    Ref<TimeRanges> timeRanges = TimeRanges::create();
    411411    for (const auto& range : ranges) {
     
    421421void PlaybackSessionManagerProxy::canPlayFastReverseChanged(uint64_t contextId, bool value)
    422422{
    423     MESSAGE_CHECK_CONTEXTID(contextID);
     423    MESSAGE_CHECK_CONTEXTID(contextId);
    424424    ensureModel(contextId).canPlayFastReverseChanged(value);
    425425}
     
    427427void PlaybackSessionManagerProxy::audioMediaSelectionOptionsChanged(uint64_t contextId, Vector<MediaSelectionOption> options, uint64_t selectedIndex)
    428428{
    429     MESSAGE_CHECK_CONTEXTID(contextID);
     429    MESSAGE_CHECK_CONTEXTID(contextId);
    430430    ensureModel(contextId).audioMediaSelectionOptionsChanged(options, selectedIndex);
    431431}
     
    433433void PlaybackSessionManagerProxy::legibleMediaSelectionOptionsChanged(uint64_t contextId, Vector<MediaSelectionOption> options, uint64_t selectedIndex)
    434434{
    435     MESSAGE_CHECK_CONTEXTID(contextID);
     435    MESSAGE_CHECK_CONTEXTID(contextId);
    436436    ensureModel(contextId).legibleMediaSelectionOptionsChanged(options, selectedIndex);
    437437}
     
    439439void PlaybackSessionManagerProxy::audioMediaSelectionIndexChanged(uint64_t contextId, uint64_t selectedIndex)
    440440{
    441     MESSAGE_CHECK_CONTEXTID(contextID);
     441    MESSAGE_CHECK_CONTEXTID(contextId);
    442442    ensureModel(contextId).audioMediaSelectionIndexChanged(selectedIndex);
    443443}
     
    445445void PlaybackSessionManagerProxy::legibleMediaSelectionIndexChanged(uint64_t contextId, uint64_t selectedIndex)
    446446{
    447     MESSAGE_CHECK_CONTEXTID(contextID);
     447    MESSAGE_CHECK_CONTEXTID(contextId);
    448448    ensureModel(contextId).legibleMediaSelectionIndexChanged(selectedIndex);
    449449}
     
    451451void PlaybackSessionManagerProxy::externalPlaybackPropertiesChanged(uint64_t contextId, bool enabled, uint32_t targetType, String localizedDeviceName)
    452452{
    453     MESSAGE_CHECK_CONTEXTID(contextID);
     453    MESSAGE_CHECK_CONTEXTID(contextId);
    454454    PlaybackSessionModel::ExternalPlaybackTargetType type = static_cast<PlaybackSessionModel::ExternalPlaybackTargetType>(targetType);
    455455    ASSERT(type == PlaybackSessionModel::TargetTypeAirPlay || type == PlaybackSessionModel::TargetTypeTVOut || type == PlaybackSessionModel::TargetTypeNone);
     
    460460void PlaybackSessionManagerProxy::wirelessVideoPlaybackDisabledChanged(uint64_t contextId, bool disabled)
    461461{
    462     MESSAGE_CHECK_CONTEXTID(contextID);
     462    MESSAGE_CHECK_CONTEXTID(contextId);
    463463    ensureModel(contextId).wirelessVideoPlaybackDisabledChanged(disabled);
    464464}
     
    466466void PlaybackSessionManagerProxy::mutedChanged(uint64_t contextId, bool muted)
    467467{
    468     MESSAGE_CHECK_CONTEXTID(contextID);
     468    MESSAGE_CHECK_CONTEXTID(contextId);
    469469    ensureModel(contextId).mutedChanged(muted);
    470470}
     
    472472void PlaybackSessionManagerProxy::volumeChanged(uint64_t contextId, double volume)
    473473{
    474     MESSAGE_CHECK_CONTEXTID(contextID);
     474    MESSAGE_CHECK_CONTEXTID(contextId);
    475475    ensureModel(contextId).volumeChanged(volume);
    476476}
     
    478478void PlaybackSessionManagerProxy::durationChanged(uint64_t contextId, double duration)
    479479{
    480     MESSAGE_CHECK_CONTEXTID(contextID);
     480    MESSAGE_CHECK_CONTEXTID(contextId);
    481481    ensureModel(contextId).durationChanged(duration);
    482482}
     
    484484void PlaybackSessionManagerProxy::playbackStartedTimeChanged(uint64_t contextId, double playbackStartedTime)
    485485{
    486     MESSAGE_CHECK_CONTEXTID(contextID);
     486    MESSAGE_CHECK_CONTEXTID(contextId);
    487487    ensureModel(contextId).playbackStartedTimeChanged(playbackStartedTime);
    488488}
     
    490490void PlaybackSessionManagerProxy::rateChanged(uint64_t contextId, bool isPlaying, double rate)
    491491{
    492     MESSAGE_CHECK_CONTEXTID(contextID);
     492    MESSAGE_CHECK_CONTEXTID(contextId);
    493493    ensureModel(contextId).rateChanged(isPlaying, rate);
    494494}
     
    496496void PlaybackSessionManagerProxy::pictureInPictureSupportedChanged(uint64_t contextId, bool supported)
    497497{
    498     MESSAGE_CHECK_CONTEXTID(contextID);
     498    MESSAGE_CHECK_CONTEXTID(contextId);
    499499    ensureModel(contextId).pictureInPictureSupportedChanged(supported);
    500500}
     
    502502void PlaybackSessionManagerProxy::pictureInPictureActiveChanged(uint64_t contextId, bool active)
    503503{
    504     MESSAGE_CHECK_CONTEXTID(contextID);
     504    MESSAGE_CHECK_CONTEXTID(contextId);
    505505    ensureModel(contextId).pictureInPictureActiveChanged(active);
    506506}
     
    508508void PlaybackSessionManagerProxy::handleControlledElementIDResponse(uint64_t contextId, String identifier) const
    509509{
    510     MESSAGE_CHECK_CONTEXTID(contextID);
     510    MESSAGE_CHECK_CONTEXTID(contextId);
    511511#if PLATFORM(MAC)
    512512    if (contextId == m_controlsManagerContextId)
  • trunk/Source/WebKit/UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp

    r251445 r251616  
    4141#include <wtf/UniqueRef.h>
    4242
    43 #define MESSAGE_CHECK_CONTEXTID(id) MESSAGE_CHECK_BASE(m_proxies.isValidKey(id), m_process.connection())
     43#define MESSAGE_CHECK_CONTEXTID(identifier) MESSAGE_CHECK_BASE(m_proxies.isValidKey(identifier), m_process.connection())
    4444
    4545namespace WebKit {
  • trunk/Source/WebKit/UIProcess/Cocoa/VideoFullscreenManagerProxy.mm

    r249275 r251616  
    122122#endif
    123123
    124 #define MESSAGE_CHECK_CONTEXTID(contextID) MESSAGE_CHECK_BASE(m_contextMap.isValidKey(contextId), m_page->process().connection())
     124#define MESSAGE_CHECK_CONTEXTID(identifier) MESSAGE_CHECK_BASE(m_contextMap.isValidKey(identifier), m_page->process().connection())
    125125
    126126namespace WebKit {
Note: See TracChangeset for help on using the changeset viewer.