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

Side by Side Diff: chrome/renderer/resources/plugins/pdf_plugin.html

Issue 2972123002: Click to Open PDF: Open PDF once View PDF is clicked. (Closed)
Patch Set: remove id since it's not used Created 3 years, 5 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
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, user-scalable=no">
5 </head> 6 </head>
6 <body> 7 <body>
7 <!-- TODO(amberwon): Add html with the finalized UI. --> 8 <!-- TODO(amberwon): Add html with the finalized UI. -->
9 <div i18n-values="title:name">
10 <p id="fileName">$i18n{fileName}</p>
11 <a href="#" onclick="plugin.downloadPDF()">View PDF</a>
Lei Zhang 2017/07/07 17:45:45 Since this uses JS, does that mean if the user has
Lei Zhang 2017/07/07 17:45:45 I'm still curious what happens if the href is siml
amberwon 2017/07/07 20:44:22 It still seems to work, though not entirely sure w
amberwon 2017/07/07 20:44:22 Links don't seem to open within the placeholder.
12 </div>
8 </body> 13 </body>
9 </html> 14 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698