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

Side by Side Diff: Source/devtools/front_end/ExtensionServer.js

Issue 83383002: DevTools: Allow setting -0 value to object property (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 return this._status.E_NOTFOUND(contextSecurityOrigin) 880 return this._status.E_NOTFOUND(contextSecurityOrigin)
881 } 881 }
882 } else { 882 } else {
883 context = frameContextList.mainWorldContext(); 883 context = frameContextList.mainWorldContext();
884 if (!context) 884 if (!context)
885 return this._status.E_FAILED(frame.url + " has no execution context"); 885 return this._status.E_FAILED(frame.url + " has no execution context");
886 } 886 }
887 887
888 contextId = context.id; 888 contextId = context.id;
889 } 889 }
890 RuntimeAgent.evaluate(expression, "extension", exposeCommandLineAPI, tru e, contextId, returnByValue, false, callback); 890 RuntimeAgent.evaluate(expression, "extension", exposeCommandLineAPI, tru e, contextId, returnByValue, false, false, callback);
891 } 891 }
892 } 892 }
893 893
894 /** 894 /**
895 * @constructor 895 * @constructor
896 */ 896 */
897 WebInspector.ExtensionStatus = function() 897 WebInspector.ExtensionStatus = function()
898 { 898 {
899 function makeStatus(code, description) 899 function makeStatus(code, description)
900 { 900 {
(...skipping 26 matching lines...) Expand all
927 927
928 WebInspector.extensionServer = new WebInspector.ExtensionServer(); 928 WebInspector.extensionServer = new WebInspector.ExtensionServer();
929 929
930 window.addExtension = function(page, name) 930 window.addExtension = function(page, name)
931 { 931 {
932 WebInspector.extensionServer._addExtension({ 932 WebInspector.extensionServer._addExtension({
933 startPage: page, 933 startPage: page,
934 name: name, 934 name: name,
935 }); 935 });
936 } 936 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698