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/renderer_host/render_widget_host_view_android.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "content/browser/android/content_view_impl.h" | 10 #include "content/browser/android/content_view_impl.h" |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 void RenderWidgetHostViewAndroid::AcceleratedSurfaceSuspend() { | 268 void RenderWidgetHostViewAndroid::AcceleratedSurfaceSuspend() { |
269 NOTREACHED(); | 269 NOTREACHED(); |
270 } | 270 } |
271 | 271 |
272 bool RenderWidgetHostViewAndroid::HasAcceleratedSurface( | 272 bool RenderWidgetHostViewAndroid::HasAcceleratedSurface( |
273 const gfx::Size& desired_size) { | 273 const gfx::Size& desired_size) { |
274 NOTREACHED(); | 274 NOTREACHED(); |
275 return false; | 275 return false; |
276 } | 276 } |
277 | 277 |
| 278 void RenderWidgetHostViewAndroid::StartContentIntent( |
| 279 const GURL& content_url) { |
| 280 if (content_view_) |
| 281 content_view_->StartContentIntent(content_url); |
| 282 } |
| 283 |
278 gfx::GLSurfaceHandle RenderWidgetHostViewAndroid::GetCompositingSurface() { | 284 gfx::GLSurfaceHandle RenderWidgetHostViewAndroid::GetCompositingSurface() { |
279 // On Android, we cannot generate a window handle that can be passed to the | 285 // On Android, we cannot generate a window handle that can be passed to the |
280 // GPU process through the native side. Instead, we send the surface handle | 286 // GPU process through the native side. Instead, we send the surface handle |
281 // through Binder after the compositing context has been created. | 287 // through Binder after the compositing context has been created. |
282 return gfx::GLSurfaceHandle(gfx::kNullPluginWindow, true); | 288 return gfx::GLSurfaceHandle(gfx::kNullPluginWindow, true); |
283 } | 289 } |
284 | 290 |
285 void RenderWidgetHostViewAndroid::GetScreenInfo(WebKit::WebScreenInfo* result) { | 291 void RenderWidgetHostViewAndroid::GetScreenInfo(WebKit::WebScreenInfo* result) { |
286 // ScreenInfo isn't tied to the widget on Android. Always return the default. | 292 // ScreenInfo isn't tied to the widget on Android. Always return the default. |
287 RenderWidgetHostViewBase::GetDefaultScreenInfo(result); | 293 RenderWidgetHostViewBase::GetDefaultScreenInfo(result); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 // RenderWidgetHostView, public: | 358 // RenderWidgetHostView, public: |
353 | 359 |
354 // static | 360 // static |
355 RenderWidgetHostView* | 361 RenderWidgetHostView* |
356 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 362 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
357 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 363 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
358 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 364 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
359 } | 365 } |
360 | 366 |
361 } // namespace content | 367 } // namespace content |
OLD | NEW |