| 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 ShouldCreateNewSurfaceId(uint32_t compositor_frame_sink_id, |
| 134 const cc::CompositorFrame& frame) override; |
| 133 | 135 |
| 134 private: | 136 private: |
| 137 void SendSurfaceInfoToEmbedderImpl( |
| 138 const cc::SurfaceInfo& surface_info, |
| 139 const cc::SurfaceSequence& sequence) override; |
| 140 |
| 135 RenderWidgetHostViewGuest( | 141 RenderWidgetHostViewGuest( |
| 136 RenderWidgetHost* widget, | 142 RenderWidgetHost* widget, |
| 137 BrowserPluginGuest* guest, | 143 BrowserPluginGuest* guest, |
| 138 base::WeakPtr<RenderWidgetHostViewBase> platform_view); | 144 base::WeakPtr<RenderWidgetHostViewBase> platform_view); |
| 139 | 145 |
| 140 // Since we now route GestureEvents directly to the guest renderer, we need | 146 // 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 | 147 // 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 | 148 // that keyboard input (which still travels via BrowserPlugin) is routed to |
| 143 // the plugin and thus onwards to the guest. | 149 // the plugin and thus onwards to the guest. |
| 144 // TODO(wjmaclean): When we remove BrowserPlugin, delete this code. | 150 // TODO(wjmaclean): When we remove BrowserPlugin, delete this code. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 158 // The platform view for this RenderWidgetHostView. | 164 // The platform view for this RenderWidgetHostView. |
| 159 // RenderWidgetHostViewGuest mostly only cares about stuff related to | 165 // RenderWidgetHostViewGuest mostly only cares about stuff related to |
| 160 // compositing, the rest are directly forwarded to this |platform_view_|. | 166 // compositing, the rest are directly forwarded to this |platform_view_|. |
| 161 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; | 167 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; |
| 162 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 168 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
| 163 }; | 169 }; |
| 164 | 170 |
| 165 } // namespace content | 171 } // namespace content |
| 166 | 172 |
| 167 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 173 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
| OLD | NEW |