| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 119 |
| 120 void LockCompositingSurface() override; | 120 void LockCompositingSurface() override; |
| 121 void UnlockCompositingSurface() override; | 121 void UnlockCompositingSurface() override; |
| 122 | 122 |
| 123 void WheelEventAck(const blink::WebMouseWheelEvent& event, | 123 void WheelEventAck(const blink::WebMouseWheelEvent& event, |
| 124 InputEventAckState ack_result) override; | 124 InputEventAckState ack_result) override; |
| 125 | 125 |
| 126 void GestureEventAck(const blink::WebGestureEvent& event, | 126 void GestureEventAck(const blink::WebGestureEvent& event, |
| 127 InputEventAckState ack_result) override; | 127 InputEventAckState ack_result) override; |
| 128 | 128 |
| 129 bool IsRenderWidgetHostViewGuest() override; |
| 130 |
| 129 protected: | 131 protected: |
| 130 friend class RenderWidgetHostView; | 132 friend class RenderWidgetHostView; |
| 131 | 133 |
| 132 private: | 134 private: |
| 133 RenderWidgetHostViewBase* GetOwnerRenderWidgetHostView() const; | 135 RenderWidgetHostViewBase* GetOwnerRenderWidgetHostView() const; |
| 134 | 136 |
| 135 // Since we now route GestureEvents directly to the guest renderer, we need | 137 // Since we now route GestureEvents directly to the guest renderer, we need |
| 136 // a way to make sure that the BrowserPlugin in the embedder gets focused so | 138 // a way to make sure that the BrowserPlugin in the embedder gets focused so |
| 137 // that keyboard input (which still travels via BrowserPlugin) is routed to | 139 // that keyboard input (which still travels via BrowserPlugin) is routed to |
| 138 // the plugin and thus onwards to the guest. | 140 // the plugin and thus onwards to the guest. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 153 // The platform view for this RenderWidgetHostView. | 155 // The platform view for this RenderWidgetHostView. |
| 154 // RenderWidgetHostViewGuest mostly only cares about stuff related to | 156 // RenderWidgetHostViewGuest mostly only cares about stuff related to |
| 155 // compositing, the rest are directly forwarded to this |platform_view_|. | 157 // compositing, the rest are directly forwarded to this |platform_view_|. |
| 156 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; | 158 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; |
| 157 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 159 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
| 158 }; | 160 }; |
| 159 | 161 |
| 160 } // namespace content | 162 } // namespace content |
| 161 | 163 |
| 162 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 164 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
| OLD | NEW |