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

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

Issue 756053002: [Blink-in-JS] Migrate the PrivateScript specific methods/attributes to ScriptController (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: ScriptController => PrivateScriptController 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
« no previous file with comments | « Source/core/testing/PrivateScriptTest.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 installClass("Document", function(DocumentPrototype) { 7 privateScriptController.installClass("Document", function(DocumentPrototype) {
8 // FIXME: The stylesheet should be defined in a separate css file 8 // FIXME: The stylesheet should be defined in a separate css file
9 var styleSheet = [ 9 var styleSheet = [
10 "div.header {", 10 "div.header {",
11 " border-bottom: 2px solid black;", 11 " border-bottom: 2px solid black;",
12 " padding-bottom: 5px;", 12 " padding-bottom: 5px;",
13 " margin: 10px;", 13 " margin: 10px;",
14 "}", 14 "}",
15 "", 15 "",
16 "div.collapsible > div.hidden {", 16 "div.collapsible > div.hidden {",
17 " display:none;", 17 " display:none;",
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 { 457 {
458 // To prevent selection on double click 458 // To prevent selection on double click
459 e.preventDefault(); 459 e.preventDefault();
460 } 460 }
461 461
462 DocumentPrototype.transformDocumentToTreeView = function(noStyleMessage) { 462 DocumentPrototype.transformDocumentToTreeView = function(noStyleMessage) {
463 prepareWebKitXMLViewer(noStyleMessage); 463 prepareWebKitXMLViewer(noStyleMessage);
464 } 464 }
465 }); 465 });
466 466
OLDNEW
« no previous file with comments | « Source/core/testing/PrivateScriptTest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698