Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: chrome/renderer/pepper_plugin_delegate_impl.cc

Issue 6259008: When we detect a PDF with an unsupported feature, ask the user if they want t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/pepper_plugin_delegate_impl.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/renderer/pepper_plugin_delegate_impl.h" 5 #include "chrome/renderer/pepper_plugin_delegate_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/surface/transport_dib.h" 10 #include "app/surface/transport_dib.h"
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 } 884 }
885 885
886 void PepperPluginDelegateImpl::DidStopLoading() { 886 void PepperPluginDelegateImpl::DidStopLoading() {
887 render_view_->DidStopLoadingForPlugin(); 887 render_view_->DidStopLoadingForPlugin();
888 } 888 }
889 889
890 void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) { 890 void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) {
891 render_view_->Send(new ViewHostMsg_UpdateContentRestrictions( 891 render_view_->Send(new ViewHostMsg_UpdateContentRestrictions(
892 render_view_->routing_id(), restrictions)); 892 render_view_->routing_id(), restrictions));
893 } 893 }
894
895 void PepperPluginDelegateImpl::HasUnsupportedFeature() {
896 render_view_->Send(new ViewHostMsg_PDFHasUnsupportedFeature(
897 render_view_->routing_id()));
898 }
OLDNEW
« no previous file with comments | « chrome/renderer/pepper_plugin_delegate_impl.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698