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

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

Issue 9963015: Merge 112656 - Web Inspector: ScriptsNavigator should open scripts with single click (not double cl… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 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
« 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) 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 * 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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 562
563 WebInspector.NavigatorScriptTreeElement.prototype = { 563 WebInspector.NavigatorScriptTreeElement.prototype = {
564 /** 564 /**
565 * @type {WebInspector.UISourceCode} 565 * @type {WebInspector.UISourceCode}
566 */ 566 */
567 get uiSourceCode() 567 get uiSourceCode()
568 { 568 {
569 return this._uiSourceCode; 569 return this._uiSourceCode;
570 }, 570 },
571 571
572 onattach: function()
573 {
574 WebInspector.BaseNavigatorTreeElement.prototype.onattach.call(this);
575 this.listItemElement.addEventListener("click", this._onclick.bind(this), false);
576 },
577
572 /** 578 /**
573 * @param {Event} event 579 * @param {Event} event
574 */ 580 */
575 ondblclick: function(event) 581 _onclick: function(event)
576 { 582 {
577 this._navigator.scriptSelected(this.uiSourceCode); 583 this._navigator.scriptSelected(this.uiSourceCode);
578 }, 584 },
579 585
580 onenter: function() 586 onenter: function()
581 { 587 {
582 this._navigator.scriptSelected(this.uiSourceCode); 588 this._navigator.scriptSelected(this.uiSourceCode);
583 } 589 }
584 } 590 }
585 591
586 WebInspector.NavigatorScriptTreeElement.prototype.__proto__ = WebInspector.BaseN avigatorTreeElement.prototype; 592 WebInspector.NavigatorScriptTreeElement.prototype.__proto__ = WebInspector.BaseN avigatorTreeElement.prototype;
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