| 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 #include "base/bind_helpers.h" | 5 #include "base/bind_helpers.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.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/render_widget_host_view_guest.h" | 10 #include "content/browser/frame_host/render_widget_host_view_guest.h" |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 const SkBitmap& zoomed_bitmap) { | 456 const SkBitmap& zoomed_bitmap) { |
| 457 } | 457 } |
| 458 | 458 |
| 459 void RenderWidgetHostViewGuest::LockCompositingSurface() { | 459 void RenderWidgetHostViewGuest::LockCompositingSurface() { |
| 460 } | 460 } |
| 461 | 461 |
| 462 void RenderWidgetHostViewGuest::UnlockCompositingSurface() { | 462 void RenderWidgetHostViewGuest::UnlockCompositingSurface() { |
| 463 } | 463 } |
| 464 #endif // defined(OS_ANDROID) | 464 #endif // defined(OS_ANDROID) |
| 465 | 465 |
| 466 #if defined(OS_WIN) | |
| 467 void RenderWidgetHostViewGuest::SetParentNativeViewAccessible( | |
| 468 gfx::NativeViewAccessible accessible_parent) { | |
| 469 } | |
| 470 | |
| 471 gfx::NativeViewId RenderWidgetHostViewGuest::GetParentForWindowlessPlugin() | |
| 472 const { | |
| 473 return NULL; | |
| 474 } | |
| 475 #endif | |
| 476 | |
| 477 void RenderWidgetHostViewGuest::DestroyGuestView() { | 466 void RenderWidgetHostViewGuest::DestroyGuestView() { |
| 478 host_->SetView(NULL); | 467 host_->SetView(NULL); |
| 479 host_ = NULL; | 468 host_ = NULL; |
| 480 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 469 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
| 481 } | 470 } |
| 482 | 471 |
| 483 bool RenderWidgetHostViewGuest::CanDispatchToConsumer( | 472 bool RenderWidgetHostViewGuest::CanDispatchToConsumer( |
| 484 ui::GestureConsumer* consumer) { | 473 ui::GestureConsumer* consumer) { |
| 485 CHECK_EQ(static_cast<RenderWidgetHostViewGuest*>(consumer), this); | 474 CHECK_EQ(static_cast<RenderWidgetHostViewGuest*>(consumer), this); |
| 486 return true; | 475 return true; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 return SkBitmap::kARGB_8888_Config; | 545 return SkBitmap::kARGB_8888_Config; |
| 557 } | 546 } |
| 558 | 547 |
| 559 RenderWidgetHostViewBase* | 548 RenderWidgetHostViewBase* |
| 560 RenderWidgetHostViewGuest::GetGuestRenderWidgetHostView() const { | 549 RenderWidgetHostViewGuest::GetGuestRenderWidgetHostView() const { |
| 561 return static_cast<RenderWidgetHostViewBase*>( | 550 return static_cast<RenderWidgetHostViewBase*>( |
| 562 guest_->GetEmbedderRenderWidgetHostView()); | 551 guest_->GetEmbedderRenderWidgetHostView()); |
| 563 } | 552 } |
| 564 | 553 |
| 565 } // namespace content | 554 } // namespace content |
| OLD | NEW |