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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js

Issue 2835843002: Revert of [DevTools] Consolidate overlay-related functionality in Overlay domain (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 * 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 * 10 *
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 this._frameNodes.set(frame, frameNode); 429 this._frameNodes.set(frame, frameNode);
430 this._frameNode(project, target, frame.parentFrame).appendChild(frameNode); 430 this._frameNode(project, target, frame.parentFrame).appendChild(frameNode);
431 if (!frame.parentFrame) 431 if (!frame.parentFrame)
432 frameNode.treeNode()._boostOrder = true; 432 frameNode.treeNode()._boostOrder = true;
433 433
434 /** 434 /**
435 * @param {boolean} hovered 435 * @param {boolean} hovered
436 */ 436 */
437 function hoverCallback(hovered) { 437 function hoverCallback(hovered) {
438 if (hovered) { 438 if (hovered) {
439 var overlayModel = target.model(SDK.OverlayModel); 439 var domModel = target.model(SDK.DOMModel);
440 if (overlayModel) 440 if (domModel)
441 overlayModel.highlightFrame(frame.id); 441 domModel.highlightFrame(frame.id);
442 } else { 442 } else {
443 SDK.OverlayModel.hideDOMNodeHighlight(); 443 SDK.DOMModel.hideDOMNodeHighlight();
444 } 444 }
445 } 445 }
446 return frameNode; 446 return frameNode;
447 } 447 }
448 448
449 /** 449 /**
450 * @param {!Workspace.Project} project 450 * @param {!Workspace.Project} project
451 * @param {!SDK.Target} target 451 * @param {!SDK.Target} target
452 * @return {!Sources.NavigatorTreeNode} 452 * @return {!Sources.NavigatorTreeNode}
453 */ 453 */
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1586 /** 1586 /**
1587 * @param {string} title 1587 * @param {string} title
1588 * @override 1588 * @override
1589 */ 1589 */
1590 setTitle(title) { 1590 setTitle(title) {
1591 this._title = title; 1591 this._title = title;
1592 if (this._treeElement) 1592 if (this._treeElement)
1593 this._treeElement.title = this._title; 1593 this._treeElement.title = this._title;
1594 } 1594 }
1595 }; 1595 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698