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

Side by Side Diff: content/browser/renderer_host/input/synthetic_gesture_target_base.h

Issue 2856423002: input: Change how synthesized events are dispatched in telemetry tests. (Closed)
Patch Set: . Created 3 years, 7 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 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_SYNTHETIC_GESTURE_TARGET_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" 10 #include "content/browser/renderer_host/input/synthetic_gesture_target.h"
(...skipping 25 matching lines...) Expand all
36 const blink::WebMouseWheelEvent& web_wheel, 36 const blink::WebMouseWheelEvent& web_wheel,
37 const ui::LatencyInfo& latency_info); 37 const ui::LatencyInfo& latency_info);
38 38
39 virtual void DispatchWebMouseEventToPlatform( 39 virtual void DispatchWebMouseEventToPlatform(
40 const blink::WebMouseEvent& web_mouse, 40 const blink::WebMouseEvent& web_mouse,
41 const ui::LatencyInfo& latency_info); 41 const ui::LatencyInfo& latency_info);
42 42
43 // SyntheticGestureTarget: 43 // SyntheticGestureTarget:
44 void DispatchInputEventToPlatform(const blink::WebInputEvent& event) override; 44 void DispatchInputEventToPlatform(const blink::WebInputEvent& event) override;
45 45
46 void SetNeedsFlush() override;
47
48 SyntheticGestureParams::GestureSourceType 46 SyntheticGestureParams::GestureSourceType
49 GetDefaultSyntheticGestureSourceType() const override; 47 GetDefaultSyntheticGestureSourceType() const override;
50 48
51 base::TimeDelta PointerAssumedStoppedTime() const override; 49 base::TimeDelta PointerAssumedStoppedTime() const override;
52 50
53 float GetTouchSlopInDips() const override; 51 float GetTouchSlopInDips() const override;
54 52
55 float GetMinScalingSpanInDips() const override; 53 float GetMinScalingSpanInDips() const override;
56 54
57 protected: 55 protected:
58 RenderWidgetHostImpl* render_widget_host() const { return host_; } 56 RenderWidgetHostImpl* render_widget_host() const { return host_; }
59 57
60 private: 58 private:
61 bool PointIsWithinContents(int x, int y) const; 59 bool PointIsWithinContents(int x, int y) const;
62 60
63 RenderWidgetHostImpl* host_; 61 RenderWidgetHostImpl* host_;
64 62
65 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetBase); 63 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetBase);
66 }; 64 };
67 65
68 } // namespace content 66 } // namespace content
69 67
70 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ 68 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698