| 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
|
|
|