| Index: webkit/plugins/ppapi/ppb_pdf_impl.cc
|
| ===================================================================
|
| --- webkit/plugins/ppapi/ppb_pdf_impl.cc (revision 71882)
|
| +++ webkit/plugins/ppapi/ppb_pdf_impl.cc (working copy)
|
| @@ -268,6 +268,18 @@
|
| webkit_glue::UserMetricsRecordAction(action_str->value());
|
| }
|
|
|
| +void HasUnsupportedFeature(PP_Instance instance_id) {
|
| + PluginInstance* instance = ResourceTracker::Get()->GetInstance(instance_id);
|
| + if (!instance)
|
| + return;
|
| +
|
| + // Only want to show an info bar if the pdf is the whole tab.
|
| + if (!instance->IsFullPagePlugin())
|
| + return;
|
| +
|
| + instance->delegate()->HasUnsupportedFeature();
|
| +}
|
| +
|
| const PPB_PDF ppb_pdf = {
|
| &GetLocalizedString,
|
| &GetResourceImage,
|
| @@ -278,7 +290,8 @@
|
| &DidStopLoading,
|
| &SetContentRestriction,
|
| &HistogramPDFPageCount,
|
| - &UserMetricsRecordAction
|
| + &UserMetricsRecordAction,
|
| + &HasUnsupportedFeature
|
| };
|
|
|
| } // namespace
|
|
|