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

Side by Side Diff: content/browser/web_contents/aura/gesture_nav_simple.h

Issue 2698673006: Add User Actions and adding more details to UMA metrics for overscroll navigation (Closed)
Patch Set: Trailing period Created 3 years, 9 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_AURA_GESTURE_NAV_SIMPLE_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_AURA_GESTURE_NAV_SIMPLE_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_AURA_GESTURE_NAV_SIMPLE_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_AURA_GESTURE_NAV_SIMPLE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 14 matching lines...) Expand all
25 class Affordance; 25 class Affordance;
26 26
27 void AbortGestureAnimation(); 27 void AbortGestureAnimation();
28 void CompleteGestureAnimation(); 28 void CompleteGestureAnimation();
29 29
30 // OverscrollControllerDelegate: 30 // OverscrollControllerDelegate:
31 gfx::Rect GetVisibleBounds() const override; 31 gfx::Rect GetVisibleBounds() const override;
32 bool OnOverscrollUpdate(float delta_x, float delta_y) override; 32 bool OnOverscrollUpdate(float delta_x, float delta_y) override;
33 void OnOverscrollComplete(OverscrollMode overscroll_mode) override; 33 void OnOverscrollComplete(OverscrollMode overscroll_mode) override;
34 void OnOverscrollModeChange(OverscrollMode old_mode, 34 void OnOverscrollModeChange(OverscrollMode old_mode,
35 OverscrollMode new_mode) override; 35 OverscrollMode new_mode,
36 OverscrollSource source) override;
36 37
37 WebContentsImpl* web_contents_; 38 WebContentsImpl* web_contents_;
38 std::unique_ptr<Affordance> affordance_; 39 std::unique_ptr<Affordance> affordance_;
39 float completion_threshold_; 40 float completion_threshold_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(GestureNavSimple); 42 DISALLOW_COPY_AND_ASSIGN(GestureNavSimple);
42 }; 43 };
43 44
44 } // namespace content 45 } // namespace content
45 46
46 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_GESTURE_NAV_SIMPLE_H_ 47 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_GESTURE_NAV_SIMPLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698