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

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

Issue 26664002: SyntheticGestureTarget implementation for injecting synthetic input events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase_wip 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/synthetic_gesture_target_aura.h
diff --git a/content/browser/renderer_host/input/synthetic_gesture_target.h b/content/browser/renderer_host/input/synthetic_gesture_target_aura.h
similarity index 63%
copy from content/browser/renderer_host/input/synthetic_gesture_target.h
copy to content/browser/renderer_host/input/synthetic_gesture_target_aura.h
index 59ca6c1d57c9f2cfbf3e506919fe229e4526b5b2..d6b47ecdd76d3121624d43e247132095d28e792a 100644
--- a/content/browser/renderer_host/input/synthetic_gesture_target.h
+++ b/content/browser/renderer_host/input/synthetic_gesture_target_aura.h
@@ -2,34 +2,41 @@
// 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_SYNTHETIC_GESTURE_TARGET_H_
-#define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_
+#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_
+#define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_
#include "base/time/time.h"
-#include "content/browser/renderer_host/input/synthetic_gesture_new.h"
-#include "content/common/content_export.h"
+#include "content/browser/renderer_host/input/synthetic_gesture_target.h"
#include "content/common/input/synthetic_gesture_params.h"
namespace content {
class InputEvent;
+class RenderWidgetHostViewAura;
-// Interface between the synthetic gesture controller and the RWHV.
-class CONTENT_EXPORT SyntheticGestureTarget {
+// SyntheticGestureTarget implementation for aura
+// FIXME: update this to use SyntheticGestureTargetBase
+class SyntheticGestureTargetAura : public SyntheticGestureTarget {
public:
- virtual void QueueInputEventToPlatform(const InputEvent& event) = 0;
+ SyntheticGestureTargetAura(RenderWidgetHostViewAura* render_view);
+
+ virtual void QueueInputEventToPlatform(const InputEvent& event) OVERRIDE;
virtual void OnSyntheticGestureCompleted(
- SyntheticGestureNew::Result result) = 0;
+ SyntheticGestureNew::Result result) OVERRIDE;
- virtual base::TimeDelta GetSyntheticGestureUpdateRate() const = 0;
+ virtual base::TimeDelta GetSyntheticGestureUpdateRate() const OVERRIDE;
virtual SyntheticGestureParams::GestureSourceType
- GetDefaultSyntheticGestureSourceType() const = 0;
+ GetDefaultSyntheticGestureSourceType() const OVERRIDE;
virtual bool SupportsSyntheticGestureSourceType(
- SyntheticGestureParams::GestureSourceType gesture_source_type) const = 0;
+ SyntheticGestureParams::GestureSourceType gesture_source_type) const
+ OVERRIDE;
+
+ private:
+ RenderWidgetHostViewAura* render_view_;
};
} // namespace content
-#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_
+#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_

Powered by Google App Engine
This is Rietveld 408576698