| Index: content/renderer/pepper_plugin_delegate_impl.cc
|
| diff --git a/content/renderer/pepper_plugin_delegate_impl.cc b/content/renderer/pepper_plugin_delegate_impl.cc
|
| index a88e9396bfad588793e9ec271c18a1ea9ebcb49e..28593dac513c4736997045f90ad73eb1210463d5 100644
|
| --- a/content/renderer/pepper_plugin_delegate_impl.cc
|
| +++ b/content/renderer/pepper_plugin_delegate_impl.cc
|
| @@ -559,7 +559,8 @@ PepperPluginDelegateImpl::PepperPluginDelegateImpl(RenderView* render_view)
|
| : render_view_(render_view),
|
| has_saved_context_menu_action_(false),
|
| saved_context_menu_action_(0),
|
| - id_generator_(0) {
|
| + id_generator_(0),
|
| + is_pepper_plugin_focused_(false) {
|
| }
|
|
|
| PepperPluginDelegateImpl::~PepperPluginDelegateImpl() {
|
| @@ -734,6 +735,12 @@ PepperPluginDelegateImpl::GetBitmapForOptimizedPluginPaint(
|
| return NULL;
|
| }
|
|
|
| +void PepperPluginDelegateImpl::PluginFocusChanged(bool focused) {
|
| + is_pepper_plugin_focused_ = focused;
|
| + if (render_view_)
|
| + render_view_->PpapiPluginFocusChanged();
|
| +}
|
| +
|
| void PepperPluginDelegateImpl::PluginCrashed(
|
| webkit::ppapi::PluginInstance* instance) {
|
| render_view_->PluginCrashed(instance->module()->path());
|
| @@ -905,6 +912,10 @@ void PepperPluginDelegateImpl::OnSetFocus(bool has_focus) {
|
| (*i)->SetContentAreaFocus(has_focus);
|
| }
|
|
|
| +bool PepperPluginDelegateImpl::IsPluginFocused() const {
|
| + return is_pepper_plugin_focused_;
|
| +}
|
| +
|
| bool PepperPluginDelegateImpl::OpenFileSystem(
|
| const GURL& url,
|
| fileapi::FileSystemType type,
|
|
|