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

Unified Diff: content/browser/renderer_host/input/input_router.h

Issue 48973005: Move TouchEvent timeout code to the TouchEventQueue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years 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/input/input_router.h
diff --git a/content/browser/renderer_host/input/input_router.h b/content/browser/renderer_host/input/input_router.h
index a346a00f884de2b884a98c906b3ff6d954a43418..2dbb4ed00a6a6050e7f08fa06dac9a716dc67efb 100644
--- a/content/browser/renderer_host/input/input_router.h
+++ b/content/browser/renderer_host/input/input_router.h
@@ -54,6 +54,15 @@ class InputRouter : public IPC::Listener {
// router. When |false|, the caller can forego sending touch events, and
// instead consume them directly.
virtual bool ShouldForwardTouchEvent() const = 0;
+
+ // Allow the router to make more informed input handling decisions based on
+ // the current view.
+ enum ViewFlags {
+ VIEW_FLAGS_NONE = 0,
+ FIXED_PAGE_SCALE = 1 << 0,
+ MOBILE_VIEWPORT = 1 << 1
+ };
+ virtual void OnViewUpdated(int view_flags) = 0;
};
} // namespace content
« no previous file with comments | « content/browser/android/content_startup_flags.cc ('k') | content/browser/renderer_host/input/input_router_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698