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

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

Issue 1780953003: Change the non-blocking event queue to the main thread event queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_regression_5
Patch Set: Force ack in renderer to be solely based on the DispatchEventType Created 4 years, 9 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/output_surface.h" 10 #include "cc/output/output_surface.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 bool HasTouchEventHandlersAt(const gfx::Point& point) const override; 44 bool HasTouchEventHandlersAt(const gfx::Point& point) const override;
45 void ObserveWheelEventAndResult(const blink::WebMouseWheelEvent& wheel_event, 45 void ObserveWheelEventAndResult(const blink::WebMouseWheelEvent& wheel_event,
46 const gfx::Vector2dF& wheel_unused_delta, 46 const gfx::Vector2dF& wheel_unused_delta,
47 bool event_processed) override; 47 bool event_processed) override;
48 void ObserveGestureEventAndResult(const blink::WebGestureEvent& gesture_event, 48 void ObserveGestureEventAndResult(const blink::WebGestureEvent& gesture_event,
49 const gfx::Vector2dF& gesture_unused_delta, 49 const gfx::Vector2dF& gesture_unused_delta,
50 bool event_processed) override; 50 bool event_processed) override;
51 void OnDidHandleKeyEvent() override; 51 void OnDidHandleKeyEvent() override;
52 void OnDidOverscroll(const DidOverscrollParams& params) override; 52 void OnDidOverscroll(const DidOverscrollParams& params) override;
53 void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) override; 53 void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) override;
54 void NonBlockingInputEventHandled( 54 void NotifyInputEventHandled(
55 blink::WebInputEvent::Type handled_type) override; 55 blink::WebInputEvent::Type handled_type) override;
56 void SetInputHandler(RenderWidgetInputHandler* input_handler) override; 56 void SetInputHandler(RenderWidgetInputHandler* input_handler) override;
57 void UpdateTextInputState(ShowIme show_ime, 57 void UpdateTextInputState(ShowIme show_ime,
58 ChangeSource change_source) override; 58 ChangeSource change_source) override;
59 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; 59 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override;
60 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; 60 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override;
61 61
62 void OnConnectionLost(); 62 void OnConnectionLost();
63 void OnWindowInputEvent(scoped_ptr<blink::WebInputEvent> input_event, 63 void OnWindowInputEvent(scoped_ptr<blink::WebInputEvent> input_event,
64 const base::Closure& ack); 64 const base::Closure& ack);
65 65
66 const int routing_id_; 66 const int routing_id_;
67 RenderWidgetInputHandler* input_handler_; 67 RenderWidgetInputHandler* input_handler_;
68 scoped_ptr<mus::WindowSurfaceBinding> window_surface_binding_; 68 scoped_ptr<mus::WindowSurfaceBinding> window_surface_binding_;
69 scoped_refptr<CompositorMusConnection> compositor_mus_connection_; 69 scoped_refptr<CompositorMusConnection> compositor_mus_connection_;
70 70
71 base::Closure pending_ack_; 71 base::Closure pending_ack_;
72 72
73 // Used to verify single threaded access. 73 // Used to verify single threaded access.
74 base::ThreadChecker thread_checker_; 74 base::ThreadChecker thread_checker_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(RenderWidgetMusConnection); 76 DISALLOW_COPY_AND_ASSIGN(RenderWidgetMusConnection);
77 }; 77 };
78 78
79 } // namespace content 79 } // namespace content
80 80
81 #endif // CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_ 81 #endif // CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698