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

Unified Diff: ash/wm/overview/scoped_overview_animation_settings_aura.cc

Issue 2869263002: Add UMA for CrossFadeAnimation. (Closed)
Patch Set: Fix nits. Created 3 years, 7 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 | « ash/rotator/screen_rotation_animator.cc ('k') | ash/wm/window_animations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/overview/scoped_overview_animation_settings_aura.cc
diff --git a/ash/wm/overview/scoped_overview_animation_settings_aura.cc b/ash/wm/overview/scoped_overview_animation_settings_aura.cc
index 56e7a19e8a933e8c5354279471d405a384021d07..f7f76fcdcd55a6bbab63a35745b7964b00d3420d 100644
--- a/ash/wm/overview/scoped_overview_animation_settings_aura.cc
+++ b/ash/wm/overview/scoped_overview_animation_settings_aura.cc
@@ -54,24 +54,45 @@ base::TimeDelta GetAnimationDuration(OverviewAnimationType animation_type) {
}
class OverviewEnterMetricsReporter : public ui::AnimationMetricsReporter {
+ public:
+ OverviewEnterMetricsReporter() = default;
+ ~OverviewEnterMetricsReporter() override = default;
+
void Report(int value) override {
UMA_HISTOGRAM_PERCENTAGE("Ash.WindowSelector.AnimationSmoothness.Enter",
value);
}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(OverviewEnterMetricsReporter);
};
class OverviewExitMetricsReporter : public ui::AnimationMetricsReporter {
+ public:
+ OverviewExitMetricsReporter() = default;
+ ~OverviewExitMetricsReporter() override = default;
+
void Report(int value) override {
UMA_HISTOGRAM_PERCENTAGE("Ash.WindowSelector.AnimationSmoothness.Exit",
value);
}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(OverviewExitMetricsReporter);
};
class OverviewCloseMetricsReporter : public ui::AnimationMetricsReporter {
+ public:
+ OverviewCloseMetricsReporter() = default;
+ ~OverviewCloseMetricsReporter() override = default;
+
void Report(int value) override {
UMA_HISTOGRAM_PERCENTAGE("Ash.WindowSelector.AnimationSmoothness.Close",
value);
}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(OverviewCloseMetricsReporter);
};
base::LazyInstance<OverviewEnterMetricsReporter>::Leaky g_reporter_enter =
« no previous file with comments | « ash/rotator/screen_rotation_animator.cc ('k') | ash/wm/window_animations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698