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

Side by Side Diff: Source/devtools/front_end/timeline/Layers3DView.js

Issue 319603007: DevTools: Add snapshot command log on the frontend. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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) 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 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 631
632 this._layerTree.forEachLayer(checkIntersection.bind(this)); 632 this._layerTree.forEachLayer(checkIntersection.bind(this));
633 return closestLayer; 633 return closestLayer;
634 }, 634 },
635 635
636 /** 636 /**
637 * @param {?Event} event 637 * @param {?Event} event
638 */ 638 */
639 _onContextMenu: function(event) 639 _onContextMenu: function(event)
640 { 640 {
641 var layer = this._layerFromEventPoint(event).layer; 641 var layer = this._layerFromEventPoint(event) && this._layerFromEventPoin t(event).layer;
642 var node = layer ? layer.nodeForSelfOrAncestor() : null; 642 var node = layer ? layer.nodeForSelfOrAncestor() : null;
643 var contextMenu = new WebInspector.ContextMenu(event); 643 var contextMenu = new WebInspector.ContextMenu(event);
644 contextMenu.appendItem("Reset view", this._transformController._resetAnd Notify.bind(this._transformController), false); 644 contextMenu.appendItem("Reset view", this._transformController._resetAnd Notify.bind(this._transformController), false);
645 if (node) 645 if (node)
646 contextMenu.appendApplicableItems(node); 646 contextMenu.appendApplicableItems(node);
647 contextMenu.show(); 647 contextMenu.show();
648 }, 648 },
649 649
650 /** 650 /**
651 * @param {?Event} event 651 * @param {?Event} event
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 _onDoubleClick: function(event) 684 _onDoubleClick: function(event)
685 { 685 {
686 var object = this._layerFromEventPoint(event); 686 var object = this._layerFromEventPoint(event);
687 if (object && object.layer) 687 if (object && object.layer)
688 this.dispatchEventToListeners(WebInspector.Layers3DView.Events.Layer SnapshotRequested, object.layer); 688 this.dispatchEventToListeners(WebInspector.Layers3DView.Events.Layer SnapshotRequested, object.layer);
689 event.stopPropagation(); 689 event.stopPropagation();
690 }, 690 },
691 691
692 __proto__: WebInspector.VBox.prototype 692 __proto__: WebInspector.VBox.prototype
693 } 693 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698