| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 <include src="gpu_internals/browser_bridge.js"/> | 5 <include src="browser_bridge.js"/> |
| 6 <include src="gpu_internals/info_view.js"/> | 6 <include src="info_view.js"/> |
| 7 | 7 |
| 8 var browserBridge; | 8 var browserBridge; |
| 9 | 9 |
| 10 /** | 10 /** |
| 11 * Main entry point. called once the page has loaded. | 11 * Main entry point. called once the page has loaded. |
| 12 */ | 12 */ |
| 13 function onLoad() { | 13 function onLoad() { |
| 14 browserBridge = new gpu.BrowserBridge(); | 14 browserBridge = new gpu.BrowserBridge(); |
| 15 | 15 |
| 16 // Create the views. | 16 // Create the views. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 33 } else { | 33 } else { |
| 34 var tab = $(window.location.hash.substr(1)); | 34 var tab = $(window.location.hash.substr(1)); |
| 35 if (tab) | 35 if (tab) |
| 36 tabs.selectedTab = tab; | 36 tabs.selectedTab = tab; |
| 37 } | 37 } |
| 38 }; | 38 }; |
| 39 window.onhashchange(); | 39 window.onhashchange(); |
| 40 } | 40 } |
| 41 | 41 |
| 42 document.addEventListener('DOMContentLoaded', onLoad); | 42 document.addEventListener('DOMContentLoaded', onLoad); |
| OLD | NEW |