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

Unified Diff: chrome/browser/android/vr_shell/ui_scene.h

Issue 2801073002: [vr] Use base's time classes (Closed)
Patch Set: updated tests Created 3 years, 8 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
Index: chrome/browser/android/vr_shell/ui_scene.h
diff --git a/chrome/browser/android/vr_shell/ui_scene.h b/chrome/browser/android/vr_shell/ui_scene.h
index 4bcb6d88d29a490db659f71ee6a5720adfad48f4..9d3348049c8ec4fbc2cde26ca13e0b72e5ae637e 100644
--- a/chrome/browser/android/vr_shell/ui_scene.h
+++ b/chrome/browser/android/vr_shell/ui_scene.h
@@ -14,6 +14,7 @@
namespace base {
class DictionaryValue;
class ListValue;
+class TimeTicks;
}
namespace vr_shell {
@@ -50,7 +51,7 @@ class UiScene {
// Add an animation according to a dictionary passed from the UI HTML.
void AddAnimationFromDict(const base::DictionaryValue& dict,
- int64_t time_in_micro);
+ const base::TimeTicks& current_time);
// Remove |animation_id| from element |element_id|.
void RemoveAnimation(int element_id, int animation_id);
@@ -58,11 +59,11 @@ class UiScene {
// Update the positions of all elements in the scene, according to active
// animations and time. The units of time are arbitrary, but must match the
// unit used in animations.
- void UpdateTransforms(int64_t time_in_micro);
+ void UpdateTransforms(const base::TimeTicks& current_time);
// Handle a batch of commands passed from the UI HTML.
void HandleCommands(std::unique_ptr<base::ListValue> commands,
- int64_t time_in_micro);
+ const base::TimeTicks& current_time);
const std::vector<std::unique_ptr<ContentRectangle>>& GetUiElements() const;
« no previous file with comments | « chrome/browser/android/vr_shell/ui_elements_unittest.cc ('k') | chrome/browser/android/vr_shell/ui_scene.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698