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

Side by Side Diff: background.html

Issue 4123001: Modified chrome pageload extension (Closed) Base URL: http://src.chromium.org/svn/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/
Patch Set: '' Created 10 years, 1 month 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
« no previous file with comments | « README.txt ('k') | jquery/jquery-ui-1.8.4.custom.min.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 initialReadBytes_ = chrome.benchmarking.counter(kTCPReadBytes); 233 initialReadBytes_ = chrome.benchmarking.counter(kTCPReadBytes);
234 initialWriteBytes_ = chrome.benchmarking.counter(kTCPWriteBytes); 234 initialWriteBytes_ = chrome.benchmarking.counter(kTCPWriteBytes);
235 initialRequestCount_ = chrome.benchmarking.counter(kRequestCount); 235 initialRequestCount_ = chrome.benchmarking.counter(kRequestCount);
236 initialConnectCount_ = chrome.benchmarking.counter(kConnectCount); 236 initialConnectCount_ = chrome.benchmarking.counter(kConnectCount);
237 initialSpdySessionCount_ = chrome.benchmarking.counter(kSpdySessionCount); 237 initialSpdySessionCount_ = chrome.benchmarking.counter(kSpdySessionCount);
238 } 238 }
239 239
240 this.openNextPage = function() { 240 this.openNextPage = function() {
241 var benchmark = nextBenchmark(); 241 var benchmark = nextBenchmark();
242 benchmark.pageStart(); 242 benchmark.pageStart();
243 chrome.tabs.create({"url": benchmark.url(),"selected": false}, 243 chrome.tabs.create({"url": benchmark.url(),"selected": true},
244 function(tab) { 244 function(tab) {
245 benchmarkWindow = tab; 245 benchmarkWindow = tab;
246 // script.js only executes on tested pages 246 // script.js only executes on tested pages
247 // not the ones opened by the user. 247 // not the ones opened by the user.
248 chrome.tabs.executeScript(tab.id, {file: "script.js"}); 248 chrome.tabs.executeScript(tab.id, {file: "script.js"});
249 }); 249 });
250 } 250 }
251 251
252 this.prepareToOpenPage = function() { 252 this.prepareToOpenPage = function() {
253 // After the previous page is closed, this function will apply 253 // After the previous page is closed, this function will apply
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 return true; 495 return true;
496 } 496 }
497 return false; 497 return false;
498 } 498 }
499 499
500 // Run at startup 500 // Run at startup
501 chrome.windows.getCurrent(function(currentWindow) { 501 chrome.windows.getCurrent(function(currentWindow) {
502 window.windowId = currentWindow.id; 502 window.windowId = currentWindow.id;
503 }); 503 });
504 </script> 504 </script>
OLDNEW
« no previous file with comments | « README.txt ('k') | jquery/jquery-ui-1.8.4.custom.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698