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

Unified Diff: content/browser/renderer_host/overscroll_controller.h

Issue 23801003: input: Make the OverscrollController less intrusive, and some code cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/overscroll_controller.h
diff --git a/content/browser/renderer_host/overscroll_controller.h b/content/browser/renderer_host/overscroll_controller.h
index 9c8282ed60a1e55b3d8c897cfa174a36388d6f28..fab531947ee045165df45595c8f1c829fdc19cf0 100644
--- a/content/browser/renderer_host/overscroll_controller.h
+++ b/content/browser/renderer_host/overscroll_controller.h
@@ -89,8 +89,9 @@ class OverscrollController {
// overscroll gesture status.
bool DispatchEventResetsState(const WebKit::WebInputEvent& event) const;
- // Processes an event and updates internal state for overscroll.
- void ProcessEventForOverscroll(const WebKit::WebInputEvent& event);
+ // Processes an event to update the internal state for overscroll. Returns
+ // true if the state is updated, false otherwise.
+ bool ProcessEventForOverscroll(const WebKit::WebInputEvent& event);
// Processes horizontal overscroll. This can update both the overscroll mode
// and the over scroll amount (i.e. |overscroll_mode_|, |overscroll_delta_x_|
@@ -106,10 +107,6 @@ class OverscrollController {
// appropriate).
void SetOverscrollMode(OverscrollMode new_mode);
- // Returns whether the input event should be forwarded to the
- // RenderWidgetHost.
- bool ShouldForwardToHost(const WebKit::WebInputEvent& event) const;
-
// The RenderWidgetHost that owns this overscroll controller.
RenderWidgetHostImpl* render_widget_host_;
« no previous file with comments | « content/browser/renderer_host/input/input_router.h ('k') | content/browser/renderer_host/overscroll_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698