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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_INPUT_INPUT_ROUTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/port/browser/event_with_latency_info.h" 9 #include "content/port/browser/event_with_latency_info.h"
10 #include "content/port/common/input_event_ack_state.h" 10 #include "content/port/common/input_event_ack_state.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void SendTouchEvent( 47 virtual void SendTouchEvent(
48 const TouchEventWithLatencyInfo& touch_event) = 0; 48 const TouchEventWithLatencyInfo& touch_event) = 0;
49 49
50 // Returns the oldest queued or in-flight keyboard event sent to the router. 50 // Returns the oldest queued or in-flight keyboard event sent to the router.
51 virtual const NativeWebKeyboardEvent* GetLastKeyboardEvent() const = 0; 51 virtual const NativeWebKeyboardEvent* GetLastKeyboardEvent() const = 0;
52 52
53 // Returns |true| if the caller should immediately forward touch events to the 53 // Returns |true| if the caller should immediately forward touch events to the
54 // router. When |false|, the caller can forego sending touch events, and 54 // router. When |false|, the caller can forego sending touch events, and
55 // instead consume them directly. 55 // instead consume them directly.
56 virtual bool ShouldForwardTouchEvent() const = 0; 56 virtual bool ShouldForwardTouchEvent() const = 0;
57
58 // Allow the router to make more informed input handling decisions based on
59 // the current view.
60 enum ViewFlags {
61 VIEW_FLAGS_NONE = 0,
62 FIXED_PAGE_SCALE = 1 << 0,
63 MOBILE_VIEWPORT = 1 << 1
64 };
65 virtual void OnViewUpdated(int view_flags) = 0;
57 }; 66 };
58 67
59 } // namespace content 68 } // namespace content
60 69
61 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_ 70 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_
OLDNEW
« 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