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 | |
558 webkit::ppapi::PluginDelegate::PlatformImage2D* | 552 webkit::ppapi::PluginDelegate::PlatformImage2D* |
559 PepperPluginDelegateImpl::CreateImage2D(int width, int height) { | 553 PepperPluginDelegateImpl::CreateImage2D(int width, int height) { |
560 return PepperPlatformImage2DImpl::Create(width, height); | 554 return PepperPlatformImage2DImpl::Create(width, height); |
561 } | 555 } |
562 | 556 |
563 webkit::ppapi::PluginDelegate::PlatformContext3D* | 557 webkit::ppapi::PluginDelegate::PlatformContext3D* |
564 PepperPluginDelegateImpl::CreateContext3D() { | 558 PepperPluginDelegateImpl::CreateContext3D() { |
565 #ifdef ENABLE_GPU | 559 #ifdef ENABLE_GPU |
566 // If accelerated compositing of plugins is disabled, fail to create a 3D | 560 // If accelerated compositing of plugins is disabled, fail to create a 3D |
567 // context, because it won't be visible. This allows graceful fallback in the | 561 // 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... |
1622 mouse_lock_instances_.erase(it); | 1616 mouse_lock_instances_.erase(it); |
1623 } | 1617 } |
1624 } | 1618 } |
1625 | 1619 |
1626 webkit_glue::ClipboardClient* | 1620 webkit_glue::ClipboardClient* |
1627 PepperPluginDelegateImpl::CreateClipboardClient() const { | 1621 PepperPluginDelegateImpl::CreateClipboardClient() const { |
1628 return new RendererClipboardClient; | 1622 return new RendererClipboardClient; |
1629 } | 1623 } |
1630 | 1624 |
1631 } // namespace content | 1625 } // namespace content |
OLD | NEW |