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

Side by Side Diff: content/browser/renderer_host/overscroll_controller_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_OVERSCROLL_CONTROLLER_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_OVERSCROLL_CONTROLLER_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_OVERSCROLL_CONTROLLER_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_OVERSCROLL_CONTROLLER_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.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 14 matching lines...) Expand all
25 virtual gfx::Rect GetVisibleBounds() const = 0; 25 virtual gfx::Rect GetVisibleBounds() const = 0;
26 26
27 // This is called for each update in the overscroll amount. Returns true if 27 // This is called for each update in the overscroll amount. Returns true if
28 // the delegate consumed the event. 28 // the delegate consumed the event.
29 virtual bool OnOverscrollUpdate(float delta_x, float delta_y) = 0; 29 virtual bool OnOverscrollUpdate(float delta_x, float delta_y) = 0;
30 30
31 // This is called when the overscroll completes. 31 // This is called when the overscroll completes.
32 virtual void OnOverscrollComplete(OverscrollMode overscroll_mode) = 0; 32 virtual void OnOverscrollComplete(OverscrollMode overscroll_mode) = 0;
33 33
34 // This is called when the direction of the overscroll changes. 34 // This is called when the direction of the overscroll changes.
35 // When a new overscroll is started (i.e. when |new_mode| is not
36 // equal to OVERSCROLL_NONE), |source| will be set to the device that
37 // triggered the overscroll gesture.
35 virtual void OnOverscrollModeChange(OverscrollMode old_mode, 38 virtual void OnOverscrollModeChange(OverscrollMode old_mode,
36 OverscrollMode new_mode) = 0; 39 OverscrollMode new_mode,
40 OverscrollSource source) = 0;
37 41
38 private: 42 private:
39 DISALLOW_COPY_AND_ASSIGN(OverscrollControllerDelegate); 43 DISALLOW_COPY_AND_ASSIGN(OverscrollControllerDelegate);
40 }; 44 };
41 45
42 } // namespace content 46 } // namespace content
43 47
44 #endif // CONTENT_BROWSER_RENDERER_HOST_OVERSCROLL_CONTROLLER_DELEGATE_H_ 48 #endif // CONTENT_BROWSER_RENDERER_HOST_OVERSCROLL_CONTROLLER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698