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

Side by Side Diff: Source/devtools/front_end/components/ObjectPropertiesSection.js

Issue 738733006: DevTools: Support harmony variable scopes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 function didGetDetails(response) 652 function didGetDetails(response)
653 { 653 {
654 if (!response) 654 if (!response)
655 return; 655 return;
656 this.removeChildren(); 656 this.removeChildren();
657 657
658 var scopeChain = response.scopeChain || []; 658 var scopeChain = response.scopeChain || [];
659 for (var i = 0; i < scopeChain.length; ++i) { 659 for (var i = 0; i < scopeChain.length; ++i) {
660 var scope = scopeChain[i]; 660 var scope = scopeChain[i];
661 var title = null; 661 var title = null;
662 var isTrueObject; 662 var isTrueObject = false;
663 663
664 switch (scope.type) { 664 switch (scope.type) {
665 case DebuggerAgent.ScopeType.Local: 665 case DebuggerAgent.ScopeType.Local:
666 // Not really expecting this scope type here. 666 // Not really expecting this scope type here.
667 title = WebInspector.UIString("Local"); 667 title = WebInspector.UIString("Local");
668 isTrueObject = false;
669 break; 668 break;
670 case DebuggerAgent.ScopeType.Closure: 669 case DebuggerAgent.ScopeType.Closure:
671 title = WebInspector.UIString("Closure"); 670 title = WebInspector.UIString("Closure");
672 isTrueObject = false;
673 break; 671 break;
674 case DebuggerAgent.ScopeType.Catch: 672 case DebuggerAgent.ScopeType.Catch:
675 title = WebInspector.UIString("Catch"); 673 title = WebInspector.UIString("Catch");
676 isTrueObject = false; 674 break;
675 case DebuggerAgent.ScopeType.Block:
676 title = WebInspector.UIString("Block");
677 break;
678 case DebuggerAgent.ScopeType.Script:
679 title = WebInspector.UIString("Script");
677 break; 680 break;
678 case DebuggerAgent.ScopeType.With: 681 case DebuggerAgent.ScopeType.With:
679 title = WebInspector.UIString("With Block"); 682 title = WebInspector.UIString("With Block");
680 isTrueObject = true; 683 isTrueObject = true;
681 break; 684 break;
682 case DebuggerAgent.ScopeType.Global: 685 case DebuggerAgent.ScopeType.Global:
683 title = WebInspector.UIString("Global"); 686 title = WebInspector.UIString("Global");
684 isTrueObject = true; 687 isTrueObject = true;
685 break; 688 break;
686 default: 689 default:
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 { 1086 {
1084 WebInspector.TextPrompt.call(this, WebInspector.ExecutionContextSelector.com pletionsForTextPromptInCurrentContext); 1087 WebInspector.TextPrompt.call(this, WebInspector.ExecutionContextSelector.com pletionsForTextPromptInCurrentContext);
1085 this.setSuggestBoxEnabled(true); 1088 this.setSuggestBoxEnabled(true);
1086 if (renderAsBlock) 1089 if (renderAsBlock)
1087 this.renderAsBlock(); 1090 this.renderAsBlock();
1088 } 1091 }
1089 1092
1090 WebInspector.ObjectPropertyPrompt.prototype = { 1093 WebInspector.ObjectPropertyPrompt.prototype = {
1091 __proto__: WebInspector.TextPrompt.prototype 1094 __proto__: WebInspector.TextPrompt.prototype
1092 } 1095 }
OLDNEW
« no previous file with comments | « Source/core/inspector/InjectedScriptSource.js ('k') | Source/devtools/front_end/sources/ScopeChainSidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698