| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/browser/web_contents/web_contents_view_guest.h" | 5 #include "content/browser/web_contents/web_contents_view_guest.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "content/browser/renderer_host/render_view_host_factory.h" | 8 #include "content/browser/renderer_host/render_view_host_factory.h" |
| 9 #include "content/browser/renderer_host/render_view_host_impl.h" | 9 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 10 #include "content/browser/renderer_host/render_widget_host_view_guest.h" | 10 #include "content/browser/renderer_host/render_widget_host_view_guest.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 return render_widget_host->GetView(); | 49 return render_widget_host->GetView(); |
| 50 } | 50 } |
| 51 | 51 |
| 52 RenderWidgetHostView* view = new RenderWidgetHostViewGuest( | 52 RenderWidgetHostView* view = new RenderWidgetHostViewGuest( |
| 53 render_widget_host, | 53 render_widget_host, |
| 54 guest_); | 54 guest_); |
| 55 | 55 |
| 56 return view; | 56 return view; |
| 57 } | 57 } |
| 58 | 58 |
| 59 RenderWidgetHostView* WebContentsViewGuest::CreateViewForPopupWidget( |
| 60 RenderWidgetHost* render_widget_host) { |
| 61 return RenderWidgetHostViewPort::CreateViewForWidget(render_widget_host); |
| 62 } |
| 63 |
| 59 gfx::NativeView WebContentsViewGuest::GetNativeView() const { | 64 gfx::NativeView WebContentsViewGuest::GetNativeView() const { |
| 60 return NULL; | 65 return NULL; |
| 61 } | 66 } |
| 62 | 67 |
| 63 gfx::NativeView WebContentsViewGuest::GetContentNativeView() const { | 68 gfx::NativeView WebContentsViewGuest::GetContentNativeView() const { |
| 64 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView(); | 69 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView(); |
| 65 if (!rwhv) | 70 if (!rwhv) |
| 66 return NULL; | 71 return NULL; |
| 67 return rwhv->GetNativeView(); | 72 return rwhv->GetNativeView(); |
| 68 } | 73 } |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 void WebContentsViewGuest::StartDragging( | 178 void WebContentsViewGuest::StartDragging( |
| 174 const WebDropData& drop_data, | 179 const WebDropData& drop_data, |
| 175 WebDragOperationsMask ops, | 180 WebDragOperationsMask ops, |
| 176 const gfx::ImageSkia& image, | 181 const gfx::ImageSkia& image, |
| 177 const gfx::Vector2d& image_offset, | 182 const gfx::Vector2d& image_offset, |
| 178 const DragEventSourceInfo& event_info) { | 183 const DragEventSourceInfo& event_info) { |
| 179 NOTIMPLEMENTED(); | 184 NOTIMPLEMENTED(); |
| 180 } | 185 } |
| 181 | 186 |
| 182 } // namespace content | 187 } // namespace content |
| OLD | NEW |