Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "use strict"; | 5 "use strict"; |
| 6 | 6 |
| 7 include("A.js"); | |
|
vivekg
2014/11/25 07:12:32
Legitimate include file which is present in the pa
| |
| 8 include("B.js"); | |
|
vivekg
2014/11/25 07:12:32
This is an example of invalid include 'B.js'. In t
| |
| 9 | |
| 7 installClass("Document", function(DocumentPrototype) { | 10 installClass("Document", function(DocumentPrototype) { |
| 8 // FIXME: The stylesheet should be defined in a separate css file | 11 // FIXME: The stylesheet should be defined in a separate css file |
| 12 aJSFunction("Calling aJSFunction"); | |
|
vivekg
2014/11/25 07:12:32
Example of calling the function defined in the A.j
vivekg
2014/11/25 07:12:32
Example of calling the function defined in the A.j
| |
| 9 var styleSheet = [ | 13 var styleSheet = [ |
| 10 "div.header {", | 14 "div.header {", |
| 11 " border-bottom: 2px solid black;", | 15 " border-bottom: 2px solid black;", |
| 12 " padding-bottom: 5px;", | 16 " padding-bottom: 5px;", |
| 13 " margin: 10px;", | 17 " margin: 10px;", |
| 14 "}", | 18 "}", |
| 15 "", | 19 "", |
| 16 "div.collapsible > div.hidden {", | 20 "div.collapsible > div.hidden {", |
| 17 " display:none;", | 21 " display:none;", |
| 18 "}", | 22 "}", |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 457 { | 461 { |
| 458 // To prevent selection on double click | 462 // To prevent selection on double click |
| 459 e.preventDefault(); | 463 e.preventDefault(); |
| 460 } | 464 } |
| 461 | 465 |
| 462 DocumentPrototype.transformDocumentToTreeView = function(noStyleMessage) { | 466 DocumentPrototype.transformDocumentToTreeView = function(noStyleMessage) { |
| 463 prepareWebKitXMLViewer(noStyleMessage); | 467 prepareWebKitXMLViewer(noStyleMessage); |
| 464 } | 468 } |
| 465 }); | 469 }); |
| 466 | 470 |
| OLD | NEW |