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/compositor_frame_sink.h" | 10 #include "cc/output/compositor_frame_sink.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "content/renderer/input/render_widget_input_handler_delegate.h" | 12 #include "content/renderer/input/render_widget_input_handler_delegate.h" |
13 #include "content/renderer/mus/compositor_mus_connection.h" | 13 #include "content/renderer/mus/compositor_mus_connection.h" |
14 #include "services/ui/public/cpp/window_surface.h" | |
15 | 14 |
16 namespace gpu { | 15 namespace gpu { |
17 class GpuChannelHost; | 16 class GpuChannelHost; |
18 } | 17 } |
19 | 18 |
20 namespace content { | 19 namespace content { |
21 | 20 |
22 class InputHandlerManager; | 21 class InputHandlerManager; |
23 | 22 |
24 // Use on main thread. | 23 // Use on main thread. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; | 61 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; |
63 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; | 62 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; |
64 | 63 |
65 void OnConnectionLost(); | 64 void OnConnectionLost(); |
66 void OnWindowInputEvent( | 65 void OnWindowInputEvent( |
67 ui::ScopedWebInputEvent input_event, | 66 ui::ScopedWebInputEvent input_event, |
68 const base::Callback<void(ui::mojom::EventResult)>& ack); | 67 const base::Callback<void(ui::mojom::EventResult)>& ack); |
69 | 68 |
70 const int routing_id_; | 69 const int routing_id_; |
71 RenderWidgetInputHandler* input_handler_; | 70 RenderWidgetInputHandler* input_handler_; |
72 std::unique_ptr<ui::WindowSurfaceBinding> window_surface_binding_; | 71 std::unique_ptr<ui::WindowCompositorFrameSinkBinding> |
| 72 window_compositor_frame_sink_binding_; |
73 scoped_refptr<CompositorMusConnection> compositor_mus_connection_; | 73 scoped_refptr<CompositorMusConnection> compositor_mus_connection_; |
74 | 74 |
75 base::Callback<void(ui::mojom::EventResult)> pending_ack_; | 75 base::Callback<void(ui::mojom::EventResult)> pending_ack_; |
76 | 76 |
77 // Used to verify single threaded access. | 77 // Used to verify single threaded access. |
78 base::ThreadChecker thread_checker_; | 78 base::ThreadChecker thread_checker_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(RenderWidgetMusConnection); | 80 DISALLOW_COPY_AND_ASSIGN(RenderWidgetMusConnection); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace content | 83 } // namespace content |
84 | 84 |
85 #endif // CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_ | 85 #endif // CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_ |
OLD | NEW |