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

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

Issue 9956025: Merge 112677 - Web Inspector: ScriptsNavigator scripts selection/focus polish. (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 | « Source/WebCore/inspector/front-end/ScriptsPanel.js ('k') | 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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 else 402 else
403 this.selectedTreeElement.expand(); 403 this.selectedTreeElement.expand();
404 } 404 }
405 } 405 }
406 } else if (event.keyCode === 8 /* Backspace */ || event.keyCode === 46 /* De lete */) { 406 } else if (event.keyCode === 8 /* Backspace */ || event.keyCode === 46 /* De lete */) {
407 if (this.selectedTreeElement.ondelete) 407 if (this.selectedTreeElement.ondelete)
408 handled = this.selectedTreeElement.ondelete(); 408 handled = this.selectedTreeElement.ondelete();
409 } else if (isEnterKey(event)) { 409 } else if (isEnterKey(event)) {
410 if (this.selectedTreeElement.onenter) 410 if (this.selectedTreeElement.onenter)
411 handled = this.selectedTreeElement.onenter(); 411 handled = this.selectedTreeElement.onenter();
412 } else if (event.keyCode === WebInspector.KeyboardShortcut.Keys.Space.code) {
413 if (this.selectedTreeElement.onspace)
414 handled = this.selectedTreeElement.onspace();
412 } 415 }
413 416
414 if (nextSelectedElement) { 417 if (nextSelectedElement) {
415 nextSelectedElement.reveal(); 418 nextSelectedElement.reveal();
416 nextSelectedElement.select(false, true); 419 nextSelectedElement.select(false, true);
417 } 420 }
418 421
419 if (handled) 422 if (handled)
420 event.consume(); 423 event.consume();
421 } 424 }
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 return this.parent; 1142 return this.parent;
1140 } 1143 }
1141 1144
1142 TreeElement.prototype.isEventWithinDisclosureTriangle = function(event) 1145 TreeElement.prototype.isEventWithinDisclosureTriangle = function(event)
1143 { 1146 {
1144 // FIXME: We should not use getComputedStyle(). For that we need to get rid of using ::before for disclosure triangle. (http://webk.it/74446) 1147 // FIXME: We should not use getComputedStyle(). For that we need to get rid of using ::before for disclosure triangle. (http://webk.it/74446)
1145 var computedLeftPadding = window.getComputedStyle(this._listItemNode).getPro pertyCSSValue("padding-left").getFloatValue(CSSPrimitiveValue.CSS_PX); 1148 var computedLeftPadding = window.getComputedStyle(this._listItemNode).getPro pertyCSSValue("padding-left").getFloatValue(CSSPrimitiveValue.CSS_PX);
1146 var left = this._listItemNode.totalOffsetLeft() + computedLeftPadding; 1149 var left = this._listItemNode.totalOffsetLeft() + computedLeftPadding;
1147 return event.pageX >= left && event.pageX <= left + this.arrowToggleWidth && this.hasChildren; 1150 return event.pageX >= left && event.pageX <= left + this.arrowToggleWidth && this.hasChildren;
1148 } 1151 }
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/front-end/ScriptsPanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698