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

Unified Diff: ash/wm/workspace/workspace_event_handler.cc

Issue 2223553003: Adds WmShell::RecordGestureAction() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gyp Created 4 years, 4 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/touch/touch_uma.cc ('k') | chrome/browser/ui/views/touch_uma/touch_uma_ash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_event_handler.cc
diff --git a/ash/wm/workspace/workspace_event_handler.cc b/ash/wm/workspace/workspace_event_handler.cc
index 33d33022d8054e36376530d1a5b96e1cb3503ddc..c9828674acf2f4c1ea02b3ad759701b1df955b4e 100644
--- a/ash/wm/workspace/workspace_event_handler.cc
+++ b/ash/wm/workspace/workspace_event_handler.cc
@@ -9,11 +9,11 @@
#include "ash/common/wm/wm_event.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
-#include "ash/touch/touch_uma.h"
#include "ash/wm/window_state_aura.h"
#include "ui/aura/window.h"
#include "ui/aura/window_delegate.h"
#include "ui/base/hit_test.h"
+#include "ui/events/event.h"
namespace ash {
@@ -87,16 +87,14 @@ void WorkspaceEventHandler::OnGestureEvent(ui::GestureEvent* event) {
return;
if (event->details().tap_count() != 2) {
- TouchUMA::GetInstance()->RecordGestureAction(
- TouchUMA::GESTURE_FRAMEVIEW_TAP);
+ WmShell::Get()->RecordGestureAction(GESTURE_FRAMEVIEW_TAP);
return;
}
if (click_component_ == previous_target_component) {
WmShell::Get()->RecordUserMetricsAction(
UMA_TOGGLE_MAXIMIZE_CAPTION_GESTURE);
- TouchUMA::GetInstance()->RecordGestureAction(
- TouchUMA::GESTURE_MAXIMIZE_DOUBLETAP);
+ WmShell::Get()->RecordGestureAction(GESTURE_MAXIMIZE_DOUBLETAP);
const wm::WMEvent wm_event(wm::WM_EVENT_TOGGLE_MAXIMIZE_CAPTION);
wm::GetWindowState(target)->OnWMEvent(&wm_event);
event->StopPropagation();
« no previous file with comments | « ash/touch/touch_uma.cc ('k') | chrome/browser/ui/views/touch_uma/touch_uma_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698