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

Side by Side Diff: content/browser/web_contents/aura/types.cc

Issue 2986483002: Adding metrics logging for Simplified Gesture Navigation. (Closed)
Patch Set: Rebase Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/browser/web_contents/aura/types.h"
6
7 namespace content {
8
9 UmaNavigationType GetUmaNavigationType(NavigationDirection direction,
10 OverscrollSource source) {
11 if (direction == NavigationDirection::NONE ||
12 source == OverscrollSource::NONE) {
13 return NAVIGATION_TYPE_NONE;
14 }
15 if (direction == NavigationDirection::BACK) {
16 return source == OverscrollSource::TOUCHPAD
17 ? UmaNavigationType::BACK_TOUCHPAD
18 : UmaNavigationType::BACK_TOUCHSCREEN;
19 }
20 DCHECK_EQ(direction, NavigationDirection::FORWARD);
21 return source == OverscrollSource::TOUCHPAD
22 ? UmaNavigationType::FORWARD_TOUCHPAD
23 : UmaNavigationType::FORWARD_TOUCHSCREEN;
24 }
25
26 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/aura/types.h ('k') | content/browser/web_contents/aura/uma_navigation_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698