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_CHILD_FRAME_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
184 } | 184 } |
185 | 185 |
186 // Returns the current surface scale factor. | 186 // Returns the current surface scale factor. |
187 float current_surface_scale_factor() { return current_surface_scale_factor_; } | 187 float current_surface_scale_factor() { return current_surface_scale_factor_; } |
188 | 188 |
189 // Returns the view into which this view is directly embedded. This can | 189 // Returns the view into which this view is directly embedded. This can |
190 // return nullptr when this view's associated child frame is not connected | 190 // return nullptr when this view's associated child frame is not connected |
191 // to the frame tree. | 191 // to the frame tree. |
192 RenderWidgetHostViewBase* GetParentView(); | 192 RenderWidgetHostViewBase* GetParentView(); |
193 | 193 |
194 // TODO(ekaramad): This is used for input event routing when the target of | |
195 // events is a RenderWidgetHostViewGuest which is embeded in an OOPIF (the | |
Charlie Reis
2016/11/02 20:47:06
nit: embedded
EhsanK
2016/11/08 23:10:16
Done.
| |
196 // only example right now is MimeHandlerViewGuest). Same as above, this | |
197 // method should be removed when either direct routing is supported for RWHVG | |
198 // (and made a private member of RWHVG again) or RWHVG is removed entirely | |
199 // (https://crbug.com/533069). | |
200 virtual RenderWidgetHostViewBase* GetOwnerRenderWidgetHostView() const; | |
Charlie Reis
2016/11/02 20:47:06
Why does this need to be here, if it's implemented
EhsanK
2016/11/08 23:10:16
Yes, it would definitely be easier (lfg@ also sugg
| |
201 | |
194 void RegisterFrameSinkId(); | 202 void RegisterFrameSinkId(); |
195 void UnregisterFrameSinkId(); | 203 void UnregisterFrameSinkId(); |
196 | 204 |
197 protected: | 205 protected: |
198 friend class RenderWidgetHostView; | 206 friend class RenderWidgetHostView; |
199 friend class RenderWidgetHostViewChildFrameTest; | 207 friend class RenderWidgetHostViewChildFrameTest; |
200 friend class RenderWidgetHostViewGuestSurfaceTest; | 208 friend class RenderWidgetHostViewGuestSurfaceTest; |
201 | 209 |
202 explicit RenderWidgetHostViewChildFrame(RenderWidgetHost* widget); | 210 explicit RenderWidgetHostViewChildFrame(RenderWidgetHost* widget); |
203 void Init(); | 211 void Init(); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
254 // The surface client ID of the parent RenderWidgetHostView. 0 if none. | 262 // The surface client ID of the parent RenderWidgetHostView. 0 if none. |
255 cc::FrameSinkId parent_frame_sink_id_; | 263 cc::FrameSinkId parent_frame_sink_id_; |
256 | 264 |
257 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; | 265 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; |
258 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 266 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
259 }; | 267 }; |
260 | 268 |
261 } // namespace content | 269 } // namespace content |
262 | 270 |
263 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 271 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
OLD | NEW |