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/renderer/pepper/pepper_plugin_delegate_impl.h" | 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <cstddef> | 8 #include <cstddef> |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 if (last_mouse_event_target_ == instance) | 542 if (last_mouse_event_target_ == instance) |
543 last_mouse_event_target_ = NULL; | 543 last_mouse_event_target_ = NULL; |
544 if (focused_plugin_ == instance) | 544 if (focused_plugin_ == instance) |
545 PluginFocusChanged(instance, false); | 545 PluginFocusChanged(instance, false); |
546 } | 546 } |
547 | 547 |
548 SkBitmap* PepperPluginDelegateImpl::GetSadPluginBitmap() { | 548 SkBitmap* PepperPluginDelegateImpl::GetSadPluginBitmap() { |
549 return GetContentClient()->renderer()->GetSadPluginBitmap(); | 549 return GetContentClient()->renderer()->GetSadPluginBitmap(); |
550 } | 550 } |
551 | 551 |
| 552 WebKit::WebPlugin* PepperPluginDelegateImpl::CreatePluginReplacement( |
| 553 const FilePath& file_path) { |
| 554 return GetContentClient()->renderer()->CreatePluginReplacement( |
| 555 render_view_, file_path); |
| 556 } |
| 557 |
552 webkit::ppapi::PluginDelegate::PlatformImage2D* | 558 webkit::ppapi::PluginDelegate::PlatformImage2D* |
553 PepperPluginDelegateImpl::CreateImage2D(int width, int height) { | 559 PepperPluginDelegateImpl::CreateImage2D(int width, int height) { |
554 return PepperPlatformImage2DImpl::Create(width, height); | 560 return PepperPlatformImage2DImpl::Create(width, height); |
555 } | 561 } |
556 | 562 |
557 webkit::ppapi::PluginDelegate::PlatformContext3D* | 563 webkit::ppapi::PluginDelegate::PlatformContext3D* |
558 PepperPluginDelegateImpl::CreateContext3D() { | 564 PepperPluginDelegateImpl::CreateContext3D() { |
559 #ifdef ENABLE_GPU | 565 #ifdef ENABLE_GPU |
560 // If accelerated compositing of plugins is disabled, fail to create a 3D | 566 // If accelerated compositing of plugins is disabled, fail to create a 3D |
561 // context, because it won't be visible. This allows graceful fallback in the | 567 // context, because it won't be visible. This allows graceful fallback in the |
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1616 mouse_lock_instances_.erase(it); | 1622 mouse_lock_instances_.erase(it); |
1617 } | 1623 } |
1618 } | 1624 } |
1619 | 1625 |
1620 webkit_glue::ClipboardClient* | 1626 webkit_glue::ClipboardClient* |
1621 PepperPluginDelegateImpl::CreateClipboardClient() const { | 1627 PepperPluginDelegateImpl::CreateClipboardClient() const { |
1622 return new RendererClipboardClient; | 1628 return new RendererClipboardClient; |
1623 } | 1629 } |
1624 | 1630 |
1625 } // namespace content | 1631 } // namespace content |
OLD | NEW |