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

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

Issue 45623005: [NOT FOR REVIEW] Patch demonstrating the changes required for browser side fling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 2 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/input/gesture_event_filter_client.h
diff --git a/content/browser/renderer_host/input/gesture_event_filter_client.h b/content/browser/renderer_host/input/gesture_event_filter_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..d94be1a19de09d0a0c0ef8dceeeadd82547ec56e
--- /dev/null
+++ b/content/browser/renderer_host/input/gesture_event_filter_client.h
@@ -0,0 +1,30 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_GESTURE_EVENT_FILTER_CLIENT_H_
+#define CONTENT_BROWSER_RENDERER_HOST_INPUT_GESTURE_EVENT_FILTER_CLIENT_H_
+
+#include "content/common/content_export.h"
+#include "content/port/browser/event_with_latency_info.h"
+#include "content/port/common/input_event_ack_state.h"
+
+namespace content {
+
+// Interface with which the GestureEventFilter can forward gesture events, and
+// dispatch gesture event responses.
+class CONTENT_EXPORT GestureEventFilterClient {
+ public:
+ virtual ~GestureEventFilterClient() {}
+
+ virtual void SendGestureEventImmediately(
+ const GestureEventWithLatencyInfo& event) = 0;
+
+ virtual void OnGestureEventAck(
+ const GestureEventWithLatencyInfo& event,
+ InputEventAckState ack_result) = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_GESTURE_EVENT_FILTER_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698