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

Side by Side Diff: Source/WebCore/inspector/front-end/ObjectPropertiesSection.js

Issue 11416111: Merge 134595 - Web Inspector: context menu on ObjectPropertyTreeElement's values is masked by the s… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | 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 /* 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 this.skipProto = false; 46 this.skipProto = false;
47 47
48 WebInspector.PropertiesSection.call(this, title || "", subtitle); 48 WebInspector.PropertiesSection.call(this, title || "", subtitle);
49 } 49 }
50 50
51 WebInspector.ObjectPropertiesSection._arrayLoadThreshold = 100; 51 WebInspector.ObjectPropertiesSection._arrayLoadThreshold = 100;
52 52
53 WebInspector.ObjectPropertiesSection.prototype = { 53 WebInspector.ObjectPropertiesSection.prototype = {
54 enableContextMenu: function() 54 enableContextMenu: function()
55 { 55 {
56 this.element.addEventListener("contextmenu", this._contextMenuEventFired .bind(this), true); 56 this.element.addEventListener("contextmenu", this._contextMenuEventFired .bind(this), false);
57 }, 57 },
58 58
59 _contextMenuEventFired: function(event) 59 _contextMenuEventFired: function(event)
60 { 60 {
61 var contextMenu = new WebInspector.ContextMenu(event); 61 var contextMenu = new WebInspector.ContextMenu(event);
62 contextMenu.appendApplicableItems(this.object); 62 contextMenu.appendApplicableItems(this.object);
63 contextMenu.show(); 63 contextMenu.show();
64 }, 64 },
65 65
66 onpopulate: function() 66 onpopulate: function()
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 { 780 {
781 WebInspector.TextPrompt.call(this, WebInspector.runtimeModel.completionsForT extPrompt.bind(WebInspector.runtimeModel)); 781 WebInspector.TextPrompt.call(this, WebInspector.runtimeModel.completionsForT extPrompt.bind(WebInspector.runtimeModel));
782 this.setSuggestBoxEnabled("generic-suggest"); 782 this.setSuggestBoxEnabled("generic-suggest");
783 if (renderAsBlock) 783 if (renderAsBlock)
784 this.renderAsBlock(); 784 this.renderAsBlock();
785 } 785 }
786 786
787 WebInspector.ObjectPropertyPrompt.prototype = { 787 WebInspector.ObjectPropertyPrompt.prototype = {
788 __proto__: WebInspector.TextPrompt.prototype 788 __proto__: WebInspector.TextPrompt.prototype
789 } 789 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698