| 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 <android/bitmap.h> | 7 #include <android/bitmap.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 } | 358 } |
| 359 | 359 |
| 360 void RenderWidgetHostViewAndroid::CopyFromCompositingSurface( | 360 void RenderWidgetHostViewAndroid::CopyFromCompositingSurface( |
| 361 const gfx::Rect& src_subrect, | 361 const gfx::Rect& src_subrect, |
| 362 const gfx::Size& dst_size, | 362 const gfx::Size& dst_size, |
| 363 const base::Callback<void(bool, const SkBitmap&)>& callback) { | 363 const base::Callback<void(bool, const SkBitmap&)>& callback) { |
| 364 NOTIMPLEMENTED(); | 364 NOTIMPLEMENTED(); |
| 365 callback.Run(false, SkBitmap()); | 365 callback.Run(false, SkBitmap()); |
| 366 } | 366 } |
| 367 | 367 |
| 368 void RenderWidgetHostViewAndroid::CopyFromCompositingSurfaceToVideoFrame( |
| 369 const gfx::Rect& src_subrect, |
| 370 const scoped_refptr<media::VideoFrame>& target, |
| 371 const base::Callback<void(bool)>& callback) { |
| 372 NOTIMPLEMENTED(); |
| 373 callback.Run(false); |
| 374 } |
| 375 |
| 376 bool RenderWidgetHostViewAndroid::CanCopyToVideoFrame() const { |
| 377 return false; |
| 378 } |
| 379 |
| 368 void RenderWidgetHostViewAndroid::ShowDisambiguationPopup( | 380 void RenderWidgetHostViewAndroid::ShowDisambiguationPopup( |
| 369 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap) { | 381 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap) { |
| 370 if (!content_view_core_) | 382 if (!content_view_core_) |
| 371 return; | 383 return; |
| 372 | 384 |
| 373 content_view_core_->ShowDisambiguationPopup(target_rect, zoomed_bitmap); | 385 content_view_core_->ShowDisambiguationPopup(target_rect, zoomed_bitmap); |
| 374 } | 386 } |
| 375 | 387 |
| 376 void RenderWidgetHostViewAndroid::OnAcceleratedCompositingStateChange() { | 388 void RenderWidgetHostViewAndroid::OnAcceleratedCompositingStateChange() { |
| 377 } | 389 } |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 // RenderWidgetHostView, public: | 642 // RenderWidgetHostView, public: |
| 631 | 643 |
| 632 // static | 644 // static |
| 633 RenderWidgetHostView* | 645 RenderWidgetHostView* |
| 634 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 646 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
| 635 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 647 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
| 636 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 648 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
| 637 } | 649 } |
| 638 | 650 |
| 639 } // namespace content | 651 } // namespace content |
| OLD | NEW |