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

Side by Side Diff: Source/core/xml/DocumentXMLTreeViewer.js

Issue 757963002: [Blink-in-JS] 'Import' function to load sub-modules and other resources for private scripts (Part-3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698