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

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

Issue 669113002: DevTools: replace mouseout with mouseleave where possible. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: for landing Created 6 years, 2 months 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 } 239 }
240 240
241 if (this.property.wasThrown) 241 if (this.property.wasThrown)
242 this.valueElement.classList.add("error"); 242 this.valueElement.classList.add("error");
243 if (subtype || type) 243 if (subtype || type)
244 this.valueElement.classList.add("console-formatted-" + (subtype || type)); 244 this.valueElement.classList.add("console-formatted-" + (subtype || type));
245 245
246 this.valueElement.addEventListener("contextmenu", this._contextMenuF ired.bind(this, this.property.value), false); 246 this.valueElement.addEventListener("contextmenu", this._contextMenuF ired.bind(this, this.property.value), false);
247 if (type === "object" && subtype === "node" && description) { 247 if (type === "object" && subtype === "node" && description) {
248 WebInspector.DOMPresentationUtils.createSpansForNodeTitle(this.v alueElement, description); 248 WebInspector.DOMPresentationUtils.createSpansForNodeTitle(this.v alueElement, description);
249 this.valueElement.addEventListener("mousemove", this._mouseMove. bind(this, this.property.value), false); 249 this.valueElement.addEventListener("mousemove", this._mouseMove. bind(this), false);
250 this.valueElement.addEventListener("mouseout", this._mouseOut.bi nd(this, this.property.value), false); 250 this.valueElement.addEventListener("mouseleave", this._mouseLeav e.bind(this), false);
251 } else { 251 } else {
252 this.valueElement.title = description || ""; 252 this.valueElement.title = description || "";
253 } 253 }
254 254
255 this.listItemElement.removeChildren(); 255 this.listItemElement.removeChildren();
256 256
257 this.hasChildren = this.property.value.hasChildren && !this.property .wasThrown; 257 this.hasChildren = this.property.value.hasChildren && !this.property .wasThrown;
258 } else { 258 } else {
259 if (this.property.getter) { 259 if (this.property.getter) {
260 this.valueElement = WebInspector.ObjectPropertyTreeElement.creat eRemoteObjectAccessorPropertySpan(this.property.parentObject, [this.property.nam e], this._onInvokeGetterClick.bind(this)); 260 this.valueElement = WebInspector.ObjectPropertyTreeElement.creat eRemoteObjectAccessorPropertySpan(this.property.parentObject, [this.property.nam e], this._onInvokeGetterClick.bind(this));
(...skipping 20 matching lines...) Expand all
281 */ 281 */
282 populateContextMenu: function(contextMenu) 282 populateContextMenu: function(contextMenu)
283 { 283 {
284 }, 284 },
285 285
286 _mouseMove: function(event) 286 _mouseMove: function(event)
287 { 287 {
288 this.property.value.highlightAsDOMNode(); 288 this.property.value.highlightAsDOMNode();
289 }, 289 },
290 290
291 _mouseOut: function(event) 291 _mouseLeave: function(event)
292 { 292 {
293 this.property.value.hideDOMNodeHighlight(); 293 this.property.value.hideDOMNodeHighlight();
294 }, 294 },
295 295
296 updateSiblings: function() 296 updateSiblings: function()
297 { 297 {
298 if (this.parent.root) 298 if (this.parent.root)
299 this.treeOutline.section.update(); 299 this.treeOutline.section.update();
300 else 300 else
301 this.parent.shouldRefreshChildren = true; 301 this.parent.shouldRefreshChildren = true;
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 { 1082 {
1083 WebInspector.TextPrompt.call(this, WebInspector.ExecutionContextSelector.com pletionsForTextPromptInCurrentContext); 1083 WebInspector.TextPrompt.call(this, WebInspector.ExecutionContextSelector.com pletionsForTextPromptInCurrentContext);
1084 this.setSuggestBoxEnabled(true); 1084 this.setSuggestBoxEnabled(true);
1085 if (renderAsBlock) 1085 if (renderAsBlock)
1086 this.renderAsBlock(); 1086 this.renderAsBlock();
1087 } 1087 }
1088 1088
1089 WebInspector.ObjectPropertyPrompt.prototype = { 1089 WebInspector.ObjectPropertyPrompt.prototype = {
1090 __proto__: WebInspector.TextPrompt.prototype 1090 __proto__: WebInspector.TextPrompt.prototype
1091 } 1091 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/components/DOMPresentationUtils.js ('k') | Source/devtools/front_end/resources/ResourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698