OLD | NEW |
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 bool HasTouchEventHandlersAt(const gfx::Point& point) const override; | 42 bool HasTouchEventHandlersAt(const gfx::Point& point) const override; |
43 void ObserveWheelEventAndResult(const blink::WebMouseWheelEvent& wheel_event, | 43 void ObserveWheelEventAndResult(const blink::WebMouseWheelEvent& wheel_event, |
44 const gfx::Vector2dF& wheel_unused_delta, | 44 const gfx::Vector2dF& wheel_unused_delta, |
45 bool event_processed) override; | 45 bool event_processed) override; |
46 void ObserveGestureEventAndResult(const blink::WebGestureEvent& gesture_event, | 46 void ObserveGestureEventAndResult(const blink::WebGestureEvent& gesture_event, |
47 const gfx::Vector2dF& gesture_unused_delta, | 47 const gfx::Vector2dF& gesture_unused_delta, |
48 bool event_processed) override; | 48 bool event_processed) override; |
49 void OnDidHandleKeyEvent() override; | 49 void OnDidHandleKeyEvent() override; |
50 void OnDidOverscroll(const DidOverscrollParams& params) override; | 50 void OnDidOverscroll(const DidOverscrollParams& params) override; |
51 void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) override; | 51 void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) override; |
52 void NonBlockingInputEventHandled( | 52 void NotifyInputEventHandled( |
53 blink::WebInputEvent::Type handled_type) override; | 53 blink::WebInputEvent::Type handled_type) override; |
54 void SetInputHandler(RenderWidgetInputHandler* input_handler) override; | 54 void SetInputHandler(RenderWidgetInputHandler* input_handler) override; |
55 void UpdateTextInputState(ShowIme show_ime, | 55 void UpdateTextInputState(ShowIme show_ime, |
56 ChangeSource change_source) override; | 56 ChangeSource change_source) override; |
57 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; | 57 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; |
58 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; | 58 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; |
59 | 59 |
60 void OnConnectionLost(); | 60 void OnConnectionLost(); |
61 void OnWindowInputEvent(scoped_ptr<blink::WebInputEvent> input_event, | 61 void OnWindowInputEvent(scoped_ptr<blink::WebInputEvent> input_event, |
62 const base::Closure& ack); | 62 const base::Closure& ack); |
63 | 63 |
64 const int routing_id_; | 64 const int routing_id_; |
65 RenderWidgetInputHandler* input_handler_; | 65 RenderWidgetInputHandler* input_handler_; |
66 scoped_ptr<mus::WindowSurfaceBinding> window_surface_binding_; | 66 scoped_ptr<mus::WindowSurfaceBinding> window_surface_binding_; |
67 scoped_refptr<CompositorMusConnection> compositor_mus_connection_; | 67 scoped_refptr<CompositorMusConnection> compositor_mus_connection_; |
68 | 68 |
69 base::Closure pending_ack_; | 69 base::Closure pending_ack_; |
70 | 70 |
71 // Used to verify single threaded access. | 71 // Used to verify single threaded access. |
72 base::ThreadChecker thread_checker_; | 72 base::ThreadChecker thread_checker_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(RenderWidgetMusConnection); | 74 DISALLOW_COPY_AND_ASSIGN(RenderWidgetMusConnection); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace content | 77 } // namespace content |
78 | 78 |
79 #endif // CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_ | 79 #endif // CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_ |
OLD | NEW |