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

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

Issue 351903003: DevTools: Avoid private member access in non-profiler code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
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 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sources/BreakpointsSidebarPane.js ('k') | Source/devtools/front_end/timeline/TimelineFlameChart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698