org.chromium.chrome.browser.compositor.layouts.ChromeAnimation.Animation Java Examples
The following examples show how to use
org.chromium.chrome.browser.compositor.layouts.ChromeAnimation.Animation.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StripLayoutTab.java From AndroidChromium with Apache License 2.0 | 5 votes |
private void startAnimation(Animation<Animatable<?>> animation, boolean finishPrevious) { if (finishPrevious) finishAnimation(); if (mContentAnimations == null) { mContentAnimations = new ChromeAnimation<Animatable<?>>(); } mContentAnimations.add(animation); }
Example #2
Source File: OverlayPanelAnimation.java From 365browser with Apache License 2.0 | 5 votes |
/** * Appends an Animation to the current animation set and starts it immediately. If the set is * already finished or doesn't exist, the animation set is also started. */ protected void addToAnimation(ChromeAnimation.Animation<Animatable<?>> component) { if (mLayoutAnimations == null || mLayoutAnimations.finished()) { onAnimationStarted(); mLayoutAnimations = new ChromeAnimation<Animatable<?>>(); mLayoutAnimations.start(); } component.start(); mLayoutAnimations.add(component); requestUpdate(); }
Example #3
Source File: Layout.java From 365browser with Apache License 2.0 | 5 votes |
/** * Appends an Animation to the current animation set and starts it immediately. If the set is * already finished or doesn't exist, the animation set is also started. */ protected void addToAnimation(ChromeAnimation.Animation<Animatable<?>> component) { if (mLayoutAnimations == null || mLayoutAnimations.finished()) { onAnimationStarted(); mLayoutAnimations = new ChromeAnimation<Animatable<?>>(); mLayoutAnimations.start(); } component.start(); mLayoutAnimations.add(component); requestUpdate(); }
Example #4
Source File: StripLayoutTab.java From 365browser with Apache License 2.0 | 5 votes |
private void startAnimation(Animation<Animatable<?>> animation, boolean finishPrevious) { if (finishPrevious) finishAnimation(); if (mContentAnimations == null) { mContentAnimations = new ChromeAnimation<Animatable<?>>(); } mContentAnimations.add(animation); }
Example #5
Source File: StripLayoutHelper.java From 365browser with Apache License 2.0 | 5 votes |
private void startAnimation(Animation<Animatable<?>> animation, boolean finishPrevious) { if (finishPrevious) finishAnimation(); if (mLayoutAnimations == null) { mLayoutAnimations = new ChromeAnimation<ChromeAnimation.Animatable<?>>(); } mLayoutAnimations.add(animation); mUpdateHost.requestUpdate(); }
Example #6
Source File: OverlayPanelAnimation.java From AndroidChromium with Apache License 2.0 | 5 votes |
/** * Appends an Animation to the current animation set and starts it immediately. If the set is * already finished or doesn't exist, the animation set is also started. */ protected void addToAnimation(ChromeAnimation.Animation<Animatable<?>> component) { if (mLayoutAnimations == null || mLayoutAnimations.finished()) { onAnimationStarted(); mLayoutAnimations = new ChromeAnimation<Animatable<?>>(); mLayoutAnimations.start(); } component.start(); mLayoutAnimations.add(component); requestUpdate(); }
Example #7
Source File: Layout.java From AndroidChromium with Apache License 2.0 | 5 votes |
/** * Appends an Animation to the current animation set and starts it immediately. If the set is * already finished or doesn't exist, the animation set is also started. */ protected void addToAnimation(ChromeAnimation.Animation<Animatable<?>> component) { if (mLayoutAnimations == null || mLayoutAnimations.finished()) { onAnimationStarted(); mLayoutAnimations = new ChromeAnimation<Animatable<?>>(); mLayoutAnimations.start(); } component.start(); mLayoutAnimations.add(component); requestUpdate(); }
Example #8
Source File: StripLayoutHelper.java From delion with Apache License 2.0 | 5 votes |
private void startAnimation(Animation<Animatable<?>> animation, boolean finishPrevious) { if (finishPrevious) finishAnimation(); if (mLayoutAnimations == null) { mLayoutAnimations = new ChromeAnimation<ChromeAnimation.Animatable<?>>(); } mLayoutAnimations.add(animation); mUpdateHost.requestUpdate(); }
Example #9
Source File: StripLayoutHelper.java From AndroidChromium with Apache License 2.0 | 5 votes |
private void startAnimation(Animation<Animatable<?>> animation, boolean finishPrevious) { if (finishPrevious) finishAnimation(); if (mLayoutAnimations == null) { mLayoutAnimations = new ChromeAnimation<ChromeAnimation.Animatable<?>>(); } mLayoutAnimations.add(animation); mUpdateHost.requestUpdate(); }
Example #10
Source File: OverlayPanelAnimation.java From delion with Apache License 2.0 | 5 votes |
/** * Appends an Animation to the current animation set and starts it immediately. If the set is * already finished or doesn't exist, the animation set is also started. */ protected void addToAnimation(ChromeAnimation.Animation<Animatable<?>> component) { if (mLayoutAnimations == null || mLayoutAnimations.finished()) { onAnimationStarted(); mLayoutAnimations = new ChromeAnimation<Animatable<?>>(); mLayoutAnimations.start(); } component.start(); mLayoutAnimations.add(component); requestUpdate(); }
Example #11
Source File: Layout.java From delion with Apache License 2.0 | 5 votes |
/** * Appends an Animation to the current animation set and starts it immediately. If the set is * already finished or doesn't exist, the animation set is also started. */ protected void addToAnimation(ChromeAnimation.Animation<Animatable<?>> component) { if (mLayoutAnimations == null || mLayoutAnimations.finished()) { onAnimationStarted(); mLayoutAnimations = new ChromeAnimation<Animatable<?>>(); mLayoutAnimations.start(); } component.start(); mLayoutAnimations.add(component); requestUpdate(); }
Example #12
Source File: StripLayoutTab.java From delion with Apache License 2.0 | 5 votes |
private void startAnimation(Animation<Animatable<?>> animation, boolean finishPrevious) { if (finishPrevious) finishAnimation(); if (mContentAnimations == null) { mContentAnimations = new ChromeAnimation<Animatable<?>>(); } mContentAnimations.add(animation); }
Example #13
Source File: StripLayoutHelper.java From delion with Apache License 2.0 | 4 votes |
private static Animation<Animatable<?>> buildTabMoveAnimation( StripLayoutTab tab, float startX) { return createAnimation(tab, StripLayoutTab.Property.X_OFFSET, startX, 0.f, ANIM_TAB_MOVE_MS, 0, false, ChromeAnimation.getLinearInterpolator()); }
Example #14
Source File: StripLayoutHelper.java From delion with Apache License 2.0 | 4 votes |
private static Animation<Animatable<?>> buildTabCreatedAnimation(StripLayoutTab tab) { return createAnimation(tab, StripLayoutTab.Property.Y_OFFSET, tab.getHeight(), 0.f, ANIM_TAB_CREATED_MS, 0, false, ChromeAnimation.getLinearInterpolator()); }
Example #15
Source File: StripLayoutHelper.java From delion with Apache License 2.0 | 4 votes |
private static Animation<Animatable<?>> buildTabClosedAnimation(StripLayoutTab tab) { return createAnimation(tab, StripLayoutTab.Property.Y_OFFSET, tab.getOffsetY(), tab.getHeight(), ANIM_TAB_CLOSED_MS, 0, false, ChromeAnimation.getLinearInterpolator()); }
Example #16
Source File: StripLayoutTab.java From 365browser with Apache License 2.0 | 4 votes |
private Animation<Animatable<?>> buildCloseButtonOpacityAnimation(float finalOpacity) { return createAnimation(mCloseButton, CompositorButton.Property.OPACITY, mCloseButton.getOpacity(), finalOpacity, ANIM_TAB_CLOSE_BUTTON_FADE_MS, 0, false, ChromeAnimation.getLinearInterpolator()); }
Example #17
Source File: StripLayoutHelper.java From delion with Apache License 2.0 | 4 votes |
private static Animation<Animatable<?>> buildTabResizeAnimation( StripLayoutTab tab, float width) { return createAnimation(tab, StripLayoutTab.Property.WIDTH, tab.getWidth(), width, ANIM_TAB_RESIZE_MS, 0, false, ChromeAnimation.getLinearInterpolator()); }
Example #18
Source File: StripLayoutHelper.java From 365browser with Apache License 2.0 | 4 votes |
private static Animation<Animatable<?>> buildTabMoveAnimation( StripLayoutTab tab, float startX) { return createAnimation(tab, StripLayoutTab.Property.X_OFFSET, startX, 0.f, ANIM_TAB_MOVE_MS, 0, false, ChromeAnimation.getLinearInterpolator()); }
Example #19
Source File: StripLayoutHelper.java From 365browser with Apache License 2.0 | 4 votes |
private static Animation<Animatable<?>> buildTabResizeAnimation( StripLayoutTab tab, float width) { return createAnimation(tab, StripLayoutTab.Property.WIDTH, tab.getWidth(), width, ANIM_TAB_RESIZE_MS, 0, false, ChromeAnimation.getLinearInterpolator()); }
Example #20
Source File: StripLayoutHelper.java From 365browser with Apache License 2.0 | 4 votes |
private static Animation<Animatable<?>> buildTabClosedAnimation(StripLayoutTab tab) { return createAnimation(tab, StripLayoutTab.Property.Y_OFFSET, tab.getOffsetY(), tab.getHeight(), ANIM_TAB_CLOSED_MS, 0, false, ChromeAnimation.getLinearInterpolator()); }
Example #21
Source File: StripLayoutHelper.java From 365browser with Apache License 2.0 | 4 votes |
private static Animation<Animatable<?>> buildTabCreatedAnimation(StripLayoutTab tab) { return createAnimation(tab, StripLayoutTab.Property.Y_OFFSET, tab.getHeight(), 0.f, ANIM_TAB_CREATED_MS, 0, false, ChromeAnimation.getLinearInterpolator()); }
Example #22
Source File: StripLayoutHelper.java From AndroidChromium with Apache License 2.0 | 4 votes |
private static Animation<Animatable<?>> buildTabCreatedAnimation(StripLayoutTab tab) { return createAnimation(tab, StripLayoutTab.Property.Y_OFFSET, tab.getHeight(), 0.f, ANIM_TAB_CREATED_MS, 0, false, ChromeAnimation.getLinearInterpolator()); }
Example #23
Source File: StripLayoutTab.java From delion with Apache License 2.0 | 4 votes |
private Animation<Animatable<?>> buildCloseButtonOpacityAnimation(float finalOpacity) { return createAnimation(mCloseButton, CompositorButton.Property.OPACITY, mCloseButton.getOpacity(), finalOpacity, ANIM_TAB_CLOSE_BUTTON_FADE_MS, 0, false, ChromeAnimation.getLinearInterpolator()); }
Example #24
Source File: StripLayoutTab.java From AndroidChromium with Apache License 2.0 | 4 votes |
private Animation<Animatable<?>> buildCloseButtonOpacityAnimation(float finalOpacity) { return createAnimation(mCloseButton, CompositorButton.Property.OPACITY, mCloseButton.getOpacity(), finalOpacity, ANIM_TAB_CLOSE_BUTTON_FADE_MS, 0, false, ChromeAnimation.getLinearInterpolator()); }
Example #25
Source File: StripLayoutHelper.java From AndroidChromium with Apache License 2.0 | 4 votes |
private static Animation<Animatable<?>> buildTabMoveAnimation( StripLayoutTab tab, float startX) { return createAnimation(tab, StripLayoutTab.Property.X_OFFSET, startX, 0.f, ANIM_TAB_MOVE_MS, 0, false, ChromeAnimation.getLinearInterpolator()); }
Example #26
Source File: StripLayoutHelper.java From AndroidChromium with Apache License 2.0 | 4 votes |
private static Animation<Animatable<?>> buildTabResizeAnimation( StripLayoutTab tab, float width) { return createAnimation(tab, StripLayoutTab.Property.WIDTH, tab.getWidth(), width, ANIM_TAB_RESIZE_MS, 0, false, ChromeAnimation.getLinearInterpolator()); }
Example #27
Source File: StripLayoutHelper.java From AndroidChromium with Apache License 2.0 | 4 votes |
private static Animation<Animatable<?>> buildTabClosedAnimation(StripLayoutTab tab) { return createAnimation(tab, StripLayoutTab.Property.Y_OFFSET, tab.getOffsetY(), tab.getHeight(), ANIM_TAB_CLOSED_MS, 0, false, ChromeAnimation.getLinearInterpolator()); }
Example #28
Source File: OverlayPanelAnimation.java From delion with Apache License 2.0 | 3 votes |
/** * Creates an {@link org.chromium.chrome.browser.compositor.layouts.ChromeAnimation.Animatable} * and adds it to the animation. * * @param <T> The Enum type of the Property being used * @param object The object being animated * @param prop The property being animated * @param start The starting value of the animation * @param end The ending value of the animation * @param duration The duration of the animation in ms * @param startTime The start time in ms * @param setStartValueAfterDelay See {@link Animation#setStartValueAfterStartDelay(boolean)} * @param interpolator The interpolator to use for the animation */ protected <T extends Enum<?>> void addToAnimation(Animatable<T> object, T prop, float start, float end, long duration, long startTime, boolean setStartValueAfterDelay, Interpolator interpolator) { ChromeAnimation.Animation<Animatable<?>> component = createAnimation(object, prop, start, end, duration, startTime, setStartValueAfterDelay, interpolator); addToAnimation(component); }
Example #29
Source File: OverlayPanelAnimation.java From AndroidChromium with Apache License 2.0 | 3 votes |
/** * Creates an {@link org.chromium.chrome.browser.compositor.layouts.ChromeAnimation.Animatable} * and adds it to the animation. * * @param <T> The Enum type of the Property being used * @param object The object being animated * @param prop The property being animated * @param start The starting value of the animation * @param end The ending value of the animation * @param duration The duration of the animation in ms * @param startTime The start time in ms * @param setStartValueAfterDelay See {@link Animation#setStartValueAfterStartDelay(boolean)} * @param interpolator The interpolator to use for the animation */ public <T extends Enum<?>> void addToAnimation(Animatable<T> object, T prop, float start, float end, long duration, long startTime, boolean setStartValueAfterDelay, Interpolator interpolator) { ChromeAnimation.Animation<Animatable<?>> component = createAnimation(object, prop, start, end, duration, startTime, setStartValueAfterDelay, interpolator); addToAnimation(component); }
Example #30
Source File: Layout.java From AndroidChromium with Apache License 2.0 | 3 votes |
/** * Creates an {@link org.chromium.chrome.browser.compositor.layouts.ChromeAnimation * .AnimatableAnimation} and * adds it to the animation. * * @param <T> The Enum type of the Property being used * @param object The object being animated * @param prop The property being animated * @param start The starting value of the animation * @param end The ending value of the animation * @param duration The duration of the animation in ms * @param startTime The start time in ms * @param setStartValueAfterDelay See {@link Animation#setStartValueAfterStartDelay(boolean)} * @param interpolator The interpolator to use for the animation */ protected <T extends Enum<?>> void addToAnimation(Animatable<T> object, T prop, float start, float end, long duration, long startTime, boolean setStartValueAfterDelay, Interpolator interpolator) { ChromeAnimation.Animation<Animatable<?>> component = createAnimation(object, prop, start, end, duration, startTime, setStartValueAfterDelay, interpolator); addToAnimation(component); }