| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |