OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <!-- | 3 <!-- |
4 Copyright (c) 2011 The Chromium Authors. All rights reserved. | 4 Copyright (c) 2011 The Chromium Authors. All rights reserved. |
5 Use of this source code is governed by a BSD-style license that can be | 5 Use of this source code is governed by a BSD-style license that can be |
6 found in the LICENSE file. | 6 found in the LICENSE file. |
7 --> | 7 --> |
8 <head> | 8 <head> |
9 <title>chrome://inspect test shell</title> | 9 <title>chrome://inspect test shell</title> |
10 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | 10 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
11 | 11 |
12 <link rel="import" href="/tracing/ui/base/base.html"> | 12 <link rel="import" href="/tracing/ui/base/base.html"> |
13 <link rel="import" href="/tracing/ui/extras/about_tracing/profiling_view.html"> | 13 <link rel="import" href="/tracing/ui/extras/about_tracing/profiling_view.html"> |
14 | 14 |
15 <style> | 15 <style> |
16 body { | 16 body { |
17 margin: 0; | 17 margin: 0; |
18 padding: 0; | 18 padding: 0; |
19 width: 100%; | 19 width: 100%; |
20 height: 100%; | 20 height: 100%; |
21 display: -webkit-flex; | 21 display: flex; |
22 -webkit-flex-direction: column; | 22 flex-direction: column; |
23 } | 23 } |
24 | 24 |
25 body > x-profiling-view { | 25 body > x-profiling-view { |
26 -webkit-flex: 1 1 auto; | 26 flex: 1 1 auto; |
27 overflow: hidden; | 27 overflow: hidden; |
28 position: absolute; | 28 position: absolute; |
29 top: 0px; | 29 top: 0px; |
30 bottom: 0; | 30 bottom: 0; |
31 left: 0; | 31 left: 0; |
32 right: 0; | 32 right: 0; |
33 } | 33 } |
34 | 34 |
35 </style> | 35 </style> |
36 </head> | 36 </head> |
37 <body> | 37 <body> |
38 <script> | 38 <script> |
39 'use strict'; | 39 'use strict'; |
40 | 40 |
41 var profilingViewEl; | 41 let profilingViewEl; |
42 | 42 |
43 function onLoad() { | 43 function onLoad() { |
44 if (window.DevToolsHost === undefined) { | 44 if (window.DevToolsHost === undefined) { |
45 tr.showPanic( | 45 tr.showPanic( |
46 'This page only works when launched from chrome://inspect', | 46 'This page only works when launched from chrome://inspect', |
47 'Try going to ' + | 47 'Try going to ' + |
48 'chrome://inspect/?browser-inspector=' + | 48 'chrome://inspect/?browser-inspector=' + |
49 'http://localhost:8003/examples/chrome_inspect_test_shell.html' + | 49 'http://localhost:8003/examples/chrome_inspect_test_shell.html' + |
50 '#devices ' + | 50 '#devices ' + |
51 'and then clicking the inspect link on a browser'); | 51 'and then clicking the inspect link on a browser'); |
52 | 52 |
53 return; | 53 return; |
54 } | 54 } |
55 | 55 |
56 var tracingControllerClient = new tr.ui.e.about_tracing.InspectorTracingCont
rollerClient(); // @suppress longLineCheck | 56 const tracingControllerClient = new tr.ui.e.about_tracing.InspectorTracingCo
ntrollerClient(); // @suppress longLineCheck |
57 profilingViewEl = new tr.ui.e.about_tracing.ProfilingView(tracingControllerC
lient); // @suppress longLineCheck | 57 profilingViewEl = new tr.ui.e.about_tracing.ProfilingView(tracingControllerC
lient); // @suppress longLineCheck |
58 document.body.appendChild(profilingViewEl); | 58 document.body.appendChild(profilingViewEl); |
59 } | 59 } |
60 window.addEventListener('load', onLoad); | 60 window.addEventListener('load', onLoad); |
61 </script> | 61 </script> |
62 </body> | 62 </body> |
63 </html> | 63 </html> |
OLD | NEW |