| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 }, | 691 }, |
| 692 | 692 |
| 693 /** | 693 /** |
| 694 * @param {?Event} event | 694 * @param {?Event} event |
| 695 */ | 695 */ |
| 696 _onContextMenu: function(event) | 696 _onContextMenu: function(event) |
| 697 { | 697 { |
| 698 var activeObject = this._activeObjectFromEventPoint(event); | 698 var activeObject = this._activeObjectFromEventPoint(event); |
| 699 var node = activeObject && activeObject.layer && activeObject.layer.node
ForSelfOrAncestor(); | 699 var node = activeObject && activeObject.layer && activeObject.layer.node
ForSelfOrAncestor(); |
| 700 var contextMenu = new WebInspector.ContextMenu(event); | 700 var contextMenu = new WebInspector.ContextMenu(event); |
| 701 contextMenu.appendItem("Reset view", this._transformController._resetAnd
Notify.bind(this._transformController), false); | 701 contextMenu.appendItem("Reset view", this._transformController.resetAndN
otify.bind(this._transformController), false); |
| 702 if (node) | 702 if (node) |
| 703 contextMenu.appendApplicableItems(node); | 703 contextMenu.appendApplicableItems(node); |
| 704 contextMenu.show(); | 704 contextMenu.show(); |
| 705 }, | 705 }, |
| 706 | 706 |
| 707 /** | 707 /** |
| 708 * @param {?Event} event | 708 * @param {?Event} event |
| 709 */ | 709 */ |
| 710 _onMouseMove: function(event) | 710 _onMouseMove: function(event) |
| 711 { | 711 { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 741 _onDoubleClick: function(event) | 741 _onDoubleClick: function(event) |
| 742 { | 742 { |
| 743 var object = this._activeObjectFromEventPoint(event); | 743 var object = this._activeObjectFromEventPoint(event); |
| 744 if (object && object.layer) | 744 if (object && object.layer) |
| 745 this.dispatchEventToListeners(WebInspector.Layers3DView.Events.Layer
SnapshotRequested, object.layer); | 745 this.dispatchEventToListeners(WebInspector.Layers3DView.Events.Layer
SnapshotRequested, object.layer); |
| 746 event.stopPropagation(); | 746 event.stopPropagation(); |
| 747 }, | 747 }, |
| 748 | 748 |
| 749 __proto__: WebInspector.VBox.prototype | 749 __proto__: WebInspector.VBox.prototype |
| 750 } | 750 } |
| OLD | NEW |