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

Side by Side Diff: chrome/browser/resources/pdf/background.js

Issue 96233002: Add a PDF component extension (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
OLDNEW
(Empty)
1 chrome.streamsPrivate.onExecuteMimeTypeHandler.addListener(
2 function(mime_type, original_url, content_url, tab_id) {
3 // TODO(raymes): Currently this doesn't work with embedded PDFs (it
4 // causes the entire frame to navigate). Also work out how we can
5 // mask the URL with the URL of the PDF.
6 chrome.tabs.update(tab_id, { url: 'pdf.html?' + content_url });
7 }
8 );
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698