Skip to content

Commit

Permalink
Update resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmedley committed Mar 21, 2024
1 parent 531e726 commit eb7b1b9
Show file tree
Hide file tree
Showing 2,144 changed files with 75,668 additions and 3,075 deletions.
1 change: 1 addition & 0 deletions .update
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Wed Mar 20 2024 19:58:05 GMT-0700 (Pacific Daylight Time)
8 changes: 8 additions & 0 deletions idl/core/accessibility/aria_notification_options.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
enum AriaNotifyInterrupt { "none", "all", "pending" };
enum AriaNotifyPriority { "none", "important" };

dictionary AriaNotificationOptions {
AriaNotifyInterrupt interrupt = "none";
AriaNotifyPriority priority = "none";
DOMString notificationId = "";
};
42 changes: 42 additions & 0 deletions idl/core/animation/animatable.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

// https://w3.org/TR/web-animations-1/#the-animatable-interface-mixin
interface mixin Animatable {
[CallWith=ScriptState, Measure, RaisesException] Animation animate(object? keyframes, optional (unrestricted double or KeyframeAnimationOptions) options);
sequence<Animation> getAnimations(optional GetAnimationsOptions options = {});
};

// https://drafts.csswg.org/web-animations-1/#extensions-to-the-element-interface
Element includes Animatable;

// https://drafts.csswg.org/web-animations-1/#extensions-to-the-pseudoelement-interface
// TODO(smcgruer): Uncomment once CSSPseudoElement is implemented in Chromium.
// CSSPseudoElement includes Animatable;
66 changes: 66 additions & 0 deletions idl/core/animation/animation.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

// https://w3.org/TR/web-animations-1/#the-animation-interface

enum AnimationPlayState { "idle", "pending", "running", "paused", "finished" };

enum ReplaceState { "active", "removed", "persisted" };

[
Exposed=Window,
ActiveScriptWrappable
] interface Animation : EventTarget {
[CallWith=ExecutionContext, RaisesException] constructor(optional AnimationEffect? effect = null, optional AnimationTimeline? timeline);
[Measure] attribute AnimationEffect? effect;
attribute AnimationTimeline? timeline;
[Measure, RaisesException=Setter] attribute CSSNumberish? startTime;
[Measure, RaisesException=Setter] attribute CSSNumberish? currentTime;
[Measure, RaisesException=Setter] attribute double playbackRate;
[RuntimeEnabled=ScrollTimeline, Measure, RaisesException=Setter] attribute (TimelineRangeOffset or DOMString) rangeStart;
[RuntimeEnabled=ScrollTimeline, Measure, RaisesException=Setter] attribute (TimelineRangeOffset or DOMString) rangeEnd;
[Measure] readonly attribute AnimationPlayState playState;
[Measure] readonly attribute ReplaceState replaceState;
[Measure] readonly attribute boolean pending;
[Measure, RaisesException, CEReactions] void commitStyles();
[Measure, RaisesException] void finish();
[Measure, RaisesException] void play();
[Measure, RaisesException] void pause();
[Measure, RaisesException] void reverse();
[Measure, RaisesException] void updatePlaybackRate(double playback_rate);
[Measure] void persist();
[Measure] attribute DOMString id;
[Measure] void cancel();
[Measure] attribute EventHandler onfinish;
[Measure] attribute EventHandler oncancel;
[Measure] attribute EventHandler onremove;
[CallWith=ScriptState] readonly attribute Promise<Animation> finished;
[CallWith=ScriptState] readonly attribute Promise<Animation> ready;
};
38 changes: 38 additions & 0 deletions idl/core/animation/animation_effect.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

// https://w3.org/TR/web-animations-1/#the-animationeffect-interface

[Exposed=Window]
interface AnimationEffect {
EffectTiming getTiming();
ComputedEffectTiming getComputedTiming();
[RaisesException] void updateTiming(optional OptionalEffectTiming timing = {});
};
14 changes: 14 additions & 0 deletions idl/core/animation/animation_timeline.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://w3.org/TR/web-animations-1/#the-animationtimeline-interface

enum TimelinePhase { "inactive", "before", "active", "after" };
[
Exposed=Window
] interface AnimationTimeline {
readonly attribute CSSNumberish? currentTime;
[RuntimeEnabled=ScrollTimeline] readonly attribute CSSNumberish? duration;
[RuntimeEnabled=ScrollTimelineCurrentTime] CSSNumericValue? getCurrentTime(optional DOMString rangeName = "cover");
};
14 changes: 14 additions & 0 deletions idl/core/animation/base_keyframe.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://w3.org/TR/web-animations-1/#dictdef-basekeyframe

enum CompositeOperationOrAuto {"replace", "add", "accumulate", "auto"};

typedef (double or TimelineRangeOffset or DOMString) KeyframeOffset;
dictionary BaseKeyframe {
KeyframeOffset? offset = null;
DOMString easing = "linear";
CompositeOperationOrAuto composite = "auto";
};
11 changes: 11 additions & 0 deletions idl/core/animation/base_property_indexed_keyframe.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://w3.org/TR/web-animations-1/#dictdef-basepropertyindexedkeyframe

dictionary BasePropertyIndexedKeyframe {
(KeyframeOffset? or sequence<KeyframeOffset?>) offset = [];
(DOMString or sequence<DOMString>) easing = [];
(CompositeOperationOrAuto or sequence<CompositeOperationOrAuto>) composite = [];
};
13 changes: 13 additions & 0 deletions idl/core/animation/computed_effect_timing.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://w3.org/TR/web-animations-1/#the-computedeffecttiming-dictionary

dictionary ComputedEffectTiming : EffectTiming {
CSSNumberish endTime;
CSSNumberish activeDuration;
CSSNumberish? localTime;
double? progress;
unrestricted double? currentIteration;
};
10 changes: 10 additions & 0 deletions idl/core/animation/css/css_animation.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://drafts.csswg.org/css-animations-2/#the-CSSAnimation-interface

[Exposed=Window]
interface CSSAnimation : Animation {
readonly attribute CSSOMString animationName;
};
10 changes: 10 additions & 0 deletions idl/core/animation/css/css_transition.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://drafts.csswg.org/css-transitions-2/#the-CSSTransition-interface

[Exposed=Window]
interface CSSTransition : Animation {
readonly attribute CSSOMString transitionProperty;
};
11 changes: 11 additions & 0 deletions idl/core/animation/document_animation.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://w3.org/TR/web-animations-1/#extensions-to-the-document-interface

[
ImplementedAs=DocumentAnimation
] partial interface Document {
readonly attribute DocumentTimeline timeline;
};
11 changes: 11 additions & 0 deletions idl/core/animation/document_timeline.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://w3.org/TR/web-animations-1/#the-documenttimeline-interface

[
Exposed=Window
] interface DocumentTimeline : AnimationTimeline {
[CallWith=ExecutionContext] constructor(optional DocumentTimelineOptions options = {});
};
9 changes: 9 additions & 0 deletions idl/core/animation/document_timeline_options.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://w3.org/TR/web-animations-1/#dictdef-documenttimelineoptions

dictionary DocumentTimelineOptions {
DOMHighResTimeStamp originTime = 0;
};
19 changes: 19 additions & 0 deletions idl/core/animation/effect_timing.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://w3.org/TR/web-animations-1/#the-effecttiming-dictionaries

enum FillMode { "none", "forwards", "backwards", "both", "auto" };
enum PlaybackDirection { "normal", "reverse", "alternate", "alternate-reverse" };

dictionary EffectTiming {
(double or CSSNumericValue) delay = 0;
(double or CSSNumericValue) endDelay = 0;
FillMode fill = "auto";
double iterationStart = 0.0;
unrestricted double iterations = 1.0;
(unrestricted double or CSSNumericValue or DOMString) duration = "auto";
PlaybackDirection direction = "normal";
DOMString easing = "linear";
};
9 changes: 9 additions & 0 deletions idl/core/animation/get_animations_options.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://drafts.csswg.org/web-animations-1/#the-animatable-interface-mixin

dictionary GetAnimationsOptions {
boolean subtree = false;
};
29 changes: 29 additions & 0 deletions idl/core/animation/keyframe_animation_options.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://w3.org/TR/web-animations-1/#dictdef-keyframeanimationoptions

// TODO(kevers): Add scroll-animations-1 link once range(Start|End) are fully
// speced.

enum TimelineRange {
"none",
"cover",
"contain",
"entry",
"entry-crossing",
"exit",
"exit-crossing" };

dictionary TimelineRangeOffset {
TimelineRange rangeName;
CSSNumericValue offset;
};

dictionary KeyframeAnimationOptions : KeyframeEffectOptions {
DOMString id = "";
AnimationTimeline? timeline;
(DOMString or TimelineRangeOffset) rangeStart = "normal";
(DOMString or TimelineRangeOffset) rangeEnd = "normal";
};
45 changes: 45 additions & 0 deletions idl/core/animation/keyframe_effect.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

// https://w3.org/TR/web-animations-1/#the-keyframeeffect-interface

enum CompositeOperation { "replace", "add", "accumulate" };

[
Exposed=Window
] interface KeyframeEffect : AnimationEffect {
[CallWith=ScriptState, RaisesException, Measure] constructor(Element? target, object? keyframes, optional (unrestricted double or KeyframeEffectOptions) options);
[CallWith=ScriptState, RaisesException, Measure] constructor(KeyframeEffect source);
attribute Element? target;
[RaisesException=Setter] attribute CSSOMString? pseudoElement;
attribute CompositeOperation composite;
[CallWith=ScriptState] sequence<object> getKeyframes();
[CallWith=ScriptState, RaisesException] void setKeyframes(object? keyframes);
};
11 changes: 11 additions & 0 deletions idl/core/animation/keyframe_effect_options.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://w3.org/TR/web-animations-1/#the-keyframeeffectoptions-dictionary

dictionary KeyframeEffectOptions : EffectTiming {
// TODO(alancutter): Implement iterationComposite
CompositeOperation composite = "replace";
CSSOMString? pseudoElement = null;
};
Loading

0 comments on commit eb7b1b9

Please sign in to comment.