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

Side by Side Diff: content/browser/web_contents/aura/overscroll_window_delegate.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_OVERSCROLL_WINDOW_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_AURA_OVERSCROLL_WINDOW_DELEGATE_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_AURA_OVERSCROLL_WINDOW_DELEGATE_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_AURA_OVERSCROLL_WINDOW_DELEGATE_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "content/browser/renderer_host/overscroll_controller.h" 10 #include "content/browser/renderer_host/overscroll_controller.h"
(...skipping 11 matching lines...) Expand all
22 public: 22 public:
23 OverscrollWindowDelegate(OverscrollControllerDelegate* delegate, 23 OverscrollWindowDelegate(OverscrollControllerDelegate* delegate,
24 const gfx::Image& image); 24 const gfx::Image& image);
25 25
26 private: 26 private:
27 FRIEND_TEST_ALL_PREFIXES(OverscrollWindowDelegateTest, BasicOverscrollModes); 27 FRIEND_TEST_ALL_PREFIXES(OverscrollWindowDelegateTest, BasicOverscrollModes);
28 28
29 ~OverscrollWindowDelegate() override; 29 ~OverscrollWindowDelegate() override;
30 30
31 // Starts the overscroll gesture. 31 // Starts the overscroll gesture.
32 void StartOverscroll(); 32 void StartOverscroll(OverscrollSource source);
33 33
34 // Resets the overscroll state. 34 // Resets the overscroll state.
35 void ResetOverscroll(); 35 void ResetOverscroll();
36 36
37 // Completes or resets the overscroll from the current state. 37 // Completes or resets the overscroll from the current state.
38 void CompleteOrResetOverscroll(); 38 void CompleteOrResetOverscroll();
39 39
40 // Updates the current horizontal overscroll. 40 // Updates the current horizontal overscroll.
41 void UpdateOverscroll(float delta_x); 41 void UpdateOverscroll(float delta_x, OverscrollSource source);
42 42
43 // Overridden from ui::EventHandler. 43 // Overridden from ui::EventHandler.
44 void OnKeyEvent(ui::KeyEvent* event) override; 44 void OnKeyEvent(ui::KeyEvent* event) override;
45 void OnMouseEvent(ui::MouseEvent* event) override; 45 void OnMouseEvent(ui::MouseEvent* event) override;
46 void OnScrollEvent(ui::ScrollEvent* event) override; 46 void OnScrollEvent(ui::ScrollEvent* event) override;
47 void OnGestureEvent(ui::GestureEvent* event) override; 47 void OnGestureEvent(ui::GestureEvent* event) override;
48 48
49 // Delegate to which we forward overscroll events. 49 // Delegate to which we forward overscroll events.
50 OverscrollControllerDelegate* delegate_; 50 OverscrollControllerDelegate* delegate_;
51 51
(...skipping 14 matching lines...) Expand all
66 // The threshold for starting the overscroll gesture for the current touch 66 // The threshold for starting the overscroll gesture for the current touch
67 // input. 67 // input.
68 float active_start_threshold_; 68 float active_start_threshold_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(OverscrollWindowDelegate); 70 DISALLOW_COPY_AND_ASSIGN(OverscrollWindowDelegate);
71 }; 71 };
72 72
73 } // namespace content 73 } // namespace content
74 74
75 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_OVERSCROLL_WINDOW_DELEGATE_H_ 75 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_OVERSCROLL_WINDOW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698