⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 286643 in webkit


Ignore:
Timestamp:
Dec 7, 2021, 10:34:20 PM (5 years ago)
Author:
graouts@webkit.org
Message:

[Model] Only expose APIs on the IDL interface when the feature is enabled
https://bugs.webkit.org/show_bug.cgi?id=233942

Reviewed by Dean Jackson.

  • Modules/model-element/HTMLModelElement.idl:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r286642 r286643  
     12021-12-07  Antoine Quint  <graouts@webkit.org>
     2
     3        [Model] Only expose APIs on the IDL interface when the feature is enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=233942
     5
     6        Reviewed by Dean Jackson.
     7
     8        * Modules/model-element/HTMLModelElement.idl:
     9
    1102021-12-07  Antoine Quint  <graouts@webkit.org>
    211
  • trunk/Source/WebCore/Modules/model-element/HTMLModelElement.idl

    r286317 r286643  
    3535    undefined enterFullscreen();
    3636
    37     Promise<HTMLModelElementCamera> getCamera();
    38     Promise<undefined> setCamera(HTMLModelElementCamera camera);
     37    [Conditional=ARKIT_INLINE_PREVIEW_CAMERA_TRANSFORM] Promise<HTMLModelElementCamera> getCamera();
     38    [Conditional=ARKIT_INLINE_PREVIEW_CAMERA_TRANSFORM] Promise<undefined> setCamera(HTMLModelElementCamera camera);
    3939
    40     Promise<boolean> isPlayingAnimation();
    41     Promise<undefined> playAnimation();
    42     Promise<undefined> pauseAnimation();
     40    [Conditional=ARKIT_INLINE_PREVIEW_ANIMATIONS_CONTROL] Promise<boolean> isPlayingAnimation();
     41    [Conditional=ARKIT_INLINE_PREVIEW_ANIMATIONS_CONTROL] Promise<undefined> playAnimation();
     42    [Conditional=ARKIT_INLINE_PREVIEW_ANIMATIONS_CONTROL] Promise<undefined> pauseAnimation();
    4343
    44     Promise<boolean> isLoopingAnimation();
    45     Promise<undefined> setIsLoopingAnimation(boolean looping);
     44    [Conditional=ARKIT_INLINE_PREVIEW_ANIMATIONS_CONTROL] Promise<boolean> isLoopingAnimation();
     45    [Conditional=ARKIT_INLINE_PREVIEW_ANIMATIONS_CONTROL] Promise<undefined> setIsLoopingAnimation(boolean looping);
    4646
    47     Promise<double> animationDuration();
    48     Promise<double> animationCurrentTime();
    49     Promise<undefined> setAnimationCurrentTime(double currentTime);
     47    [Conditional=ARKIT_INLINE_PREVIEW_ANIMATIONS_CONTROL] Promise<double> animationDuration();
     48    [Conditional=ARKIT_INLINE_PREVIEW_ANIMATIONS_CONTROL] Promise<double> animationCurrentTime();
     49    [Conditional=ARKIT_INLINE_PREVIEW_ANIMATIONS_CONTROL] Promise<undefined> setAnimationCurrentTime(double currentTime);
    5050
    51     Promise<boolean> hasAudio();
    52     Promise<boolean> isMuted();
    53     Promise<undefined> setIsMuted(boolean isMuted);
     51    [Conditional=ARKIT_INLINE_PREVIEW_AUDIO_CONTROL] Promise<boolean> hasAudio();
     52    [Conditional=ARKIT_INLINE_PREVIEW_AUDIO_CONTROL] Promise<boolean> isMuted();
     53    [Conditional=ARKIT_INLINE_PREVIEW_AUDIO_CONTROL] Promise<undefined> setIsMuted(boolean isMuted);
    5454};
Note: See TracChangeset for help on using the changeset viewer.