Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7019)

Unified Diff: chrome/browser/resources/vr_shell/vr_shell_ui_api.js

Issue 2696293002: Adds in-out easing type. (Closed)
Patch Set: Rebased to ToT Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/vr_shell/vr_shell_ui.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/vr_shell/vr_shell_ui_api.js
diff --git a/chrome/browser/resources/vr_shell/vr_shell_ui_api.js b/chrome/browser/resources/vr_shell/vr_shell_ui_api.js
index b3306be198b90fba7dc3cc3b2f3c51c050c7b0d7..48d2f26cba93a84bfa47e0c88664d8208c036dee 100644
--- a/chrome/browser/resources/vr_shell/vr_shell_ui_api.js
+++ b/chrome/browser/resources/vr_shell/vr_shell_ui_api.js
@@ -366,7 +366,8 @@ api.EasingType = {
'LINEAR': 0,
'CUBICBEZIER': 1,
'EASEIN': 2,
- 'EASEOUT': 3
+ 'EASEOUT': 3,
+ 'EASEINOUT': 4
};
/** @const */ var DEFAULT_EASING_POW = 2;
@@ -419,6 +420,13 @@ api.OutEasing = class extends api.Easing {
}
}
+api.InOutEasing = class extends api.Easing {
+ constructor(pow = DEFAULT_EASING_POW) {
+ super(api.EasingType.EASEINOUT);
+ this.pow = pow;
+ }
+}
+
/**
* Base animation class. An animation can vary only one object property.
* @struct
« no previous file with comments | « chrome/browser/resources/vr_shell/vr_shell_ui.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698