diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-09-29 16:16:15 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-11-09 10:04:06 +0000 |
commit | a95a7417ad456115a1ef2da4bb8320531c0821f1 (patch) | |
tree | edcd59279e486d2fd4a8f88a7ed025bcf925c6e6 /chromium/ui/views/controls/animated_image_view.h | |
parent | 33fc33aa94d4add0878ec30dc818e34e1dd3cc2a (diff) | |
download | qtwebengine-chromium-a95a7417ad456115a1ef2da4bb8320531c0821f1.tar.gz |
BASELINE: Update Chromium to 106.0.5249.126
Change-Id: Ib0bb21c437a7d1686e21c33f2d329f2ac425b7ab
Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/438936
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/ui/views/controls/animated_image_view.h')
-rw-r--r-- | chromium/ui/views/controls/animated_image_view.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/chromium/ui/views/controls/animated_image_view.h b/chromium/ui/views/controls/animated_image_view.h index 04d6dea759c..4c880b7b0d2 100644 --- a/chromium/ui/views/controls/animated_image_view.h +++ b/chromium/ui/views/controls/animated_image_view.h @@ -10,6 +10,7 @@ #include "base/memory/raw_ptr.h" #include "base/time/time.h" +#include "third_party/abseil-cpp/absl/types/optional.h" #include "ui/base/metadata/metadata_header_macros.h" #include "ui/compositor/compositor_animation_observer.h" #include "ui/gfx/geometry/vector2d.h" @@ -22,10 +23,6 @@ namespace gfx { class Canvas; } -namespace lottie { -class Animation; -} - namespace ui { class Compositor; } @@ -61,13 +58,12 @@ class VIEWS_EXPORT AnimatedImageView : public ImageViewBase, // will result in stopping the current animation. void SetAnimatedImage(std::unique_ptr<lottie::Animation> animated_image); - // Plays the animation in loop and must only be called when this view has + // Plays the animation and must only be called when this view has // access to a widget. - void Play(lottie::Animation::Style style = lottie::Animation::Style::kLoop); - // Version of the above that mirrors lottie::Animation::StartSubsection(). - void Play(base::TimeDelta start_offset, - base::TimeDelta duration, - lottie::Animation::Style style = lottie::Animation::Style::kLoop); + // + // If a null |playback_config| is provided, the default one is used. + void Play(absl::optional<lottie::Animation::PlaybackConfig> playback_config = + absl::nullopt); // Stops any animation and resets it to the start frame. void Stop(); |