| 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/browser_plugin/browser_plugin_embedder.h" | 8 #include "content/browser/browser_plugin/browser_plugin_embedder.h" |
| 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
| 10 #include "content/browser/frame_host/interstitial_page_impl.h" | 10 #include "content/browser/frame_host/interstitial_page_impl.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 platform_widget); | 135 platform_widget); |
| 136 | 136 |
| 137 return view; | 137 return view; |
| 138 } | 138 } |
| 139 | 139 |
| 140 RenderWidgetHostView* WebContentsViewGuest::CreateViewForPopupWidget( | 140 RenderWidgetHostView* WebContentsViewGuest::CreateViewForPopupWidget( |
| 141 RenderWidgetHost* render_widget_host) { | 141 RenderWidgetHost* render_widget_host) { |
| 142 return RenderWidgetHostViewPort::CreateViewForWidget(render_widget_host); | 142 return RenderWidgetHostViewPort::CreateViewForWidget(render_widget_host); |
| 143 } | 143 } |
| 144 | 144 |
| 145 void WebContentsViewGuest::SetPageTitle(const string16& title) { | 145 void WebContentsViewGuest::SetPageTitle(const base::string16& title) { |
| 146 } | 146 } |
| 147 | 147 |
| 148 void WebContentsViewGuest::RenderViewCreated(RenderViewHost* host) { | 148 void WebContentsViewGuest::RenderViewCreated(RenderViewHost* host) { |
| 149 platform_view_->RenderViewCreated(host); | 149 platform_view_->RenderViewCreated(host); |
| 150 } | 150 } |
| 151 | 151 |
| 152 void WebContentsViewGuest::RenderViewSwappedIn(RenderViewHost* host) { | 152 void WebContentsViewGuest::RenderViewSwappedIn(RenderViewHost* host) { |
| 153 platform_view_->RenderViewSwappedIn(host); | 153 platform_view_->RenderViewSwappedIn(host); |
| 154 } | 154 } |
| 155 | 155 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 CHECK(embedder_render_view_host); | 256 CHECK(embedder_render_view_host); |
| 257 RenderViewHostDelegateView* view = | 257 RenderViewHostDelegateView* view = |
| 258 embedder_render_view_host->GetDelegate()->GetDelegateView(); | 258 embedder_render_view_host->GetDelegate()->GetDelegateView(); |
| 259 if (view) | 259 if (view) |
| 260 view->StartDragging(drop_data, ops, image, image_offset, event_info); | 260 view->StartDragging(drop_data, ops, image, image_offset, event_info); |
| 261 else | 261 else |
| 262 embedder_web_contents->SystemDragEnded(); | 262 embedder_web_contents->SystemDragEnded(); |
| 263 } | 263 } |
| 264 | 264 |
| 265 } // namespace content | 265 } // namespace content |
| OLD | NEW |