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

Unified Diff: chrome/browser/ui/views/tabs/tab.h

Issue 16832003: Add UMA metrics to measure the effectiveness of views fuzzing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 7 years, 6 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/ui/views/tabs/tab.h
diff --git a/chrome/browser/ui/views/tabs/tab.h b/chrome/browser/ui/views/tabs/tab.h
index 91ddca874b64fb519930a6e1d501a9facc486f5d..534091fba50500a64b1d6f38d44551dee92c4e45 100644
--- a/chrome/browser/ui/views/tabs/tab.h
+++ b/chrome/browser/ui/views/tabs/tab.h
@@ -100,6 +100,14 @@ class Tab : public TabAudioIndicator::Delegate,
background_offset_ = offset;
}
+ // Returns true if this tab became the active tab selected in
+ // response to the last ui::ET_GESTURE_BEGIN gesture dispatched to
+ // this tab. Only used for collecting UMA metrics.
+ // See ash/touch/touch_uma.cc.
+ bool tab_activated_with_last_gesture_begin() const {
+ return tab_activated_with_last_gesture_begin_;
+ }
+
views::GlowHoverController* hover_controller() {
return &hover_controller_;
}
@@ -320,6 +328,8 @@ class Tab : public TabAudioIndicator::Delegate,
ui::ThemeProvider* theme_provider_;
+ bool tab_activated_with_last_gesture_begin_;
+
views::GlowHoverController hover_controller_;
// The bounds of various sections of the display.

Powered by Google App Engine
This is Rietveld 408576698