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

Side by Side Diff: content/renderer/mus/render_widget_mus_connection.h

Issue 2663283002: scheduler: Detect single event gestures correctly (Closed)
Patch Set: Fix test build failure Created 3 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_ 5 #ifndef CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_
6 #define CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_ 6 #define CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
10 #include "cc/output/compositor_frame_sink.h" 10 #include "cc/output/compositor_frame_sink.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // RenderWidgetInputHandlerDelegate implementation: 48 // RenderWidgetInputHandlerDelegate implementation:
49 void FocusChangeComplete() override; 49 void FocusChangeComplete() override;
50 bool HasTouchEventHandlersAt(const gfx::Point& point) const override; 50 bool HasTouchEventHandlersAt(const gfx::Point& point) const override;
51 void ObserveGestureEventAndResult(const blink::WebGestureEvent& gesture_event, 51 void ObserveGestureEventAndResult(const blink::WebGestureEvent& gesture_event,
52 const gfx::Vector2dF& gesture_unused_delta, 52 const gfx::Vector2dF& gesture_unused_delta,
53 bool event_processed) override; 53 bool event_processed) override;
54 void OnDidHandleKeyEvent() override; 54 void OnDidHandleKeyEvent() override;
55 void OnDidOverscroll(const ui::DidOverscrollParams& params) override; 55 void OnDidOverscroll(const ui::DidOverscrollParams& params) override;
56 void OnInputEventAck(std::unique_ptr<InputEventAck> input_event_ack) override; 56 void OnInputEventAck(std::unique_ptr<InputEventAck> input_event_ack) override;
57 void NotifyInputEventHandled(blink::WebInputEvent::Type handled_type, 57 void NotifyInputEventHandled(blink::WebInputEvent::Type handled_type,
58 blink::WebInputEventResult result,
58 InputEventAckState ack_result) override; 59 InputEventAckState ack_result) override;
59 void SetInputHandler(RenderWidgetInputHandler* input_handler) override; 60 void SetInputHandler(RenderWidgetInputHandler* input_handler) override;
60 void ShowVirtualKeyboard() override; 61 void ShowVirtualKeyboard() override;
61 void UpdateTextInputState() override; 62 void UpdateTextInputState() override;
62 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; 63 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override;
63 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; 64 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override;
64 65
65 void OnConnectionLost(); 66 void OnConnectionLost();
66 void OnWindowInputEvent( 67 void OnWindowInputEvent(
67 blink::WebScopedInputEvent input_event, 68 blink::WebScopedInputEvent input_event,
68 const base::Callback<void(ui::mojom::EventResult)>& ack); 69 const base::Callback<void(ui::mojom::EventResult)>& ack);
69 70
70 const int routing_id_; 71 const int routing_id_;
71 RenderWidgetInputHandler* input_handler_; 72 RenderWidgetInputHandler* input_handler_;
72 std::unique_ptr<ui::WindowCompositorFrameSinkBinding> 73 std::unique_ptr<ui::WindowCompositorFrameSinkBinding>
73 window_compositor_frame_sink_binding_; 74 window_compositor_frame_sink_binding_;
74 scoped_refptr<CompositorMusConnection> compositor_mus_connection_; 75 scoped_refptr<CompositorMusConnection> compositor_mus_connection_;
75 76
76 base::Callback<void(ui::mojom::EventResult)> pending_ack_; 77 base::Callback<void(ui::mojom::EventResult)> pending_ack_;
77 78
78 // Used to verify single threaded access. 79 // Used to verify single threaded access.
79 base::ThreadChecker thread_checker_; 80 base::ThreadChecker thread_checker_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(RenderWidgetMusConnection); 82 DISALLOW_COPY_AND_ASSIGN(RenderWidgetMusConnection);
82 }; 83 };
83 84
84 } // namespace content 85 } // namespace content
85 86
86 #endif // CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_ 87 #endif // CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_
OLDNEW
« no previous file with comments | « content/renderer/mus/compositor_mus_connection_unittest.cc ('k') | content/renderer/mus/render_widget_mus_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698