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

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

Issue 2986483002: Adding metrics logging for Simplified Gesture Navigation. (Closed)
Patch Set: Addressing feedback Created 3 years, 5 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 25 matching lines...) Expand all
36 bool OnOverscrollUpdate(float delta_x, float delta_y) override; 36 bool OnOverscrollUpdate(float delta_x, float delta_y) override;
37 void OnOverscrollComplete(OverscrollMode overscroll_mode) override; 37 void OnOverscrollComplete(OverscrollMode overscroll_mode) override;
38 void OnOverscrollModeChange(OverscrollMode old_mode, 38 void OnOverscrollModeChange(OverscrollMode old_mode,
39 OverscrollMode new_mode, 39 OverscrollMode new_mode,
40 OverscrollSource source) override; 40 OverscrollSource source) override;
41 base::Optional<float> GetMaxOverscrollDelta() const override; 41 base::Optional<float> GetMaxOverscrollDelta() const override;
42 42
43 WebContentsImpl* web_contents_; 43 WebContentsImpl* web_contents_;
44 std::unique_ptr<Affordance> affordance_; 44 std::unique_ptr<Affordance> affordance_;
45 float completion_threshold_; 45 float completion_threshold_;
46 OverscrollSource source_ = OverscrollSource::NONE;
46 47
47 DISALLOW_COPY_AND_ASSIGN(GestureNavSimple); 48 DISALLOW_COPY_AND_ASSIGN(GestureNavSimple);
48 }; 49 };
49 50
50 } // namespace content 51 } // namespace content
51 52
52 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_GESTURE_NAV_SIMPLE_H_ 53 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_GESTURE_NAV_SIMPLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698