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

Side by Side Diff: chrome/test/data/extensions/samples/benchmark/toolstrip.html

Issue 179027: Make a bunch of backlogged breaking changes to the extensions (Closed)
Patch Set: Put chrome.self back Created 11 years, 3 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 <style> 1 <style>
2 #options { 2 #options {
3 position: absolute; 3 position: absolute;
4 background-color: #FFFFCC; 4 background-color: #FFFFCC;
5 display: none; 5 display: none;
6 font-family: "Courier New"; 6 font-family: "Courier New";
7 font-size: 9pt; 7 font-size: 9pt;
8 padding: 5px; 8 padding: 5px;
9 border: 1px solid #CCCC88; 9 border: 1px solid #CCCC88;
10 z-index: 3; 10 z-index: 3;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 me_.finish(); 165 me_.finish();
166 } 166 }
167 167
168 // Update the UI 168 // Update the UI
169 me_.displayResults(); 169 me_.displayResults();
170 } 170 }
171 } 171 }
172 172
173 var benchmarks = new Array(); 173 var benchmarks = new Array();
174 174
175 chrome.self.onConnect.addListener(function(port) { 175 chrome.extension.onConnect.addListener(function(port) {
176 port.onMessage.addListener(function(data) { 176 port.onMessage.addListener(function(data) {
177 if (data.message == "load") { 177 if (data.message == "load") {
178 var benchmark = benchmarks[data.url]; 178 var benchmark = benchmarks[data.url];
179 if (benchmark != undefined && benchmark.isRunning()) { 179 if (benchmark != undefined && benchmark.isRunning()) {
180 benchmark.pageFinished(data.values); 180 benchmark.pageFinished(data.values);
181 } 181 }
182 } 182 }
183 }); 183 });
184 }); 184 });
185 185
(...skipping 18 matching lines...) Expand all
204 color: green; 204 color: green;
205 text-align: center; 205 text-align: center;
206 vertical-align: center; 206 vertical-align: center;
207 } 207 }
208 </style> 208 </style>
209 209
210 <div id="bench"> 210 <div id="bench">
211 <img src="stopwatch.jpg" height="25" width="25" align=top onclick="show_options( )"> 211 <img src="stopwatch.jpg" height="25" width="25" align=top onclick="show_options( )">
212 <span id="result"></span> 212 <span id="result"></span>
213 </div> 213 </div>
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_resources.grd ('k') | chrome/test/data/extensions/samples/getviews/common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698