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

Side by Side Diff: chrome/renderer/resources/plugin_poster.html

Issue 977653002: Plugin Power Saver: Accept SPACE or ENTER to unthrottle plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: take suggestions. Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <meta name="viewport" content="width=device-width, user-scalable=no">
6 <script> 6 <script>
7 function notifyDidFinishLoading() { 7 function notifyDidFinishLoading() {
8 if (plugin.didFinishLoading) 8 if (plugin.didFinishLoading)
9 plugin.didFinishLoading(); 9 plugin.didFinishLoading();
10 } 10 }
11
12 document.onkeydown = function(e) {
13 if (e.keyIdentifier == 'Enter' || e.keyIdentifier == 'U+0020') {
14 plugin.load();
15 e.preventDefault();
16 }
17 };
11 </script> 18 </script>
12 <link rel="stylesheet" href="plugin_placeholders.css"></link> 19 <link rel="stylesheet" href="plugin_placeholders.css"></link>
13 <style> 20 <style>
14 #outer { 21 #outer {
15 border: none; 22 border: none;
16 cursor: pointer; 23 cursor: pointer;
17 background-position: center; 24 background-position: center;
18 background-repeat: no-repeat; 25 background-repeat: no-repeat;
19 background-size: contain; 26 background-size: contain;
20 } 27 }
(...skipping 23 matching lines...) Expand all
44 <div i18n-values="title:name;.style.background-image:background" id="outer" 51 <div i18n-values="title:name;.style.background-image:background" id="outer"
45 onclick="plugin.load()"> 52 onclick="plugin.load()">
46 <div id="shielding"> 53 <div id="shielding">
47 <div id="inner"> 54 <div id="inner">
48 <div><img id="plugin_icon" src="plugin_power_saver_play.png" /></div> 55 <div><img id="plugin_icon" src="plugin_power_saver_play.png" /></div>
49 </div> 56 </div>
50 </div> 57 </div>
51 </div> 58 </div>
52 </body> 59 </body>
53 </html> 60 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698