OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 InputEventAckState ack_result) override; | 123 InputEventAckState ack_result) override; |
124 | 124 |
125 void GestureEventAck(const blink::WebGestureEvent& event, | 125 void GestureEventAck(const blink::WebGestureEvent& event, |
126 InputEventAckState ack_result) override; | 126 InputEventAckState ack_result) override; |
127 | 127 |
128 bool IsRenderWidgetHostViewGuest() override; | 128 bool IsRenderWidgetHostViewGuest() override; |
129 RenderWidgetHostViewBase* GetOwnerRenderWidgetHostView() const; | 129 RenderWidgetHostViewBase* GetOwnerRenderWidgetHostView() const; |
130 | 130 |
131 protected: | 131 protected: |
132 friend class RenderWidgetHostView; | 132 friend class RenderWidgetHostView; |
| 133 bool ShouldRecreateSurface(uint32_t compositor_frame_sink_id, |
| 134 const cc::CompositorFrame& frame) override; |
133 | 135 |
134 private: | 136 private: |
| 137 void SendSurfaceInfoToChild(const cc::SurfaceSequence& sequence) override; |
| 138 |
135 RenderWidgetHostViewGuest( | 139 RenderWidgetHostViewGuest( |
136 RenderWidgetHost* widget, | 140 RenderWidgetHost* widget, |
137 BrowserPluginGuest* guest, | 141 BrowserPluginGuest* guest, |
138 base::WeakPtr<RenderWidgetHostViewBase> platform_view); | 142 base::WeakPtr<RenderWidgetHostViewBase> platform_view); |
139 | 143 |
140 // Since we now route GestureEvents directly to the guest renderer, we need | 144 // Since we now route GestureEvents directly to the guest renderer, we need |
141 // a way to make sure that the BrowserPlugin in the embedder gets focused so | 145 // a way to make sure that the BrowserPlugin in the embedder gets focused so |
142 // that keyboard input (which still travels via BrowserPlugin) is routed to | 146 // that keyboard input (which still travels via BrowserPlugin) is routed to |
143 // the plugin and thus onwards to the guest. | 147 // the plugin and thus onwards to the guest. |
144 // TODO(wjmaclean): When we remove BrowserPlugin, delete this code. | 148 // TODO(wjmaclean): When we remove BrowserPlugin, delete this code. |
(...skipping 13 matching lines...) Expand all Loading... |
158 // The platform view for this RenderWidgetHostView. | 162 // The platform view for this RenderWidgetHostView. |
159 // RenderWidgetHostViewGuest mostly only cares about stuff related to | 163 // RenderWidgetHostViewGuest mostly only cares about stuff related to |
160 // compositing, the rest are directly forwarded to this |platform_view_|. | 164 // compositing, the rest are directly forwarded to this |platform_view_|. |
161 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; | 165 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; |
162 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 166 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
163 }; | 167 }; |
164 | 168 |
165 } // namespace content | 169 } // namespace content |
166 | 170 |
167 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 171 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
OLD | NEW |