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

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

Issue 393123007: DevTools: Remove popover and add properties section for paint profiler log. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed test. Created 6 years, 4 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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 644
645 /** 645 /**
646 * @param {!Event} event 646 * @param {!Event} event
647 */ 647 */
648 _onContextMenu: function(event) 648 _onContextMenu: function(event)
649 { 649 {
650 var activeObject = this._activeObjectFromEventPoint(event); 650 var activeObject = this._activeObjectFromEventPoint(event);
651 var node = activeObject && activeObject.layer && activeObject.layer.node ForSelfOrAncestor(); 651 var node = activeObject && activeObject.layer && activeObject.layer.node ForSelfOrAncestor();
652 var contextMenu = new WebInspector.ContextMenu(event); 652 var contextMenu = new WebInspector.ContextMenu(event);
653 contextMenu.appendItem(WebInspector.UIString("Reset View"), this._transf ormController.resetAndNotify.bind(this._transformController), false); 653 contextMenu.appendItem(WebInspector.UIString("Reset View"), this._transf ormController.resetAndNotify.bind(this._transformController), false);
654 if (activeObject.type() === WebInspector.Layers3DView.ActiveObject.Type. Tile) 654 if (activeObject && activeObject.type() === WebInspector.Layers3DView.Ac tiveObject.Type.Tile)
655 contextMenu.appendItem(WebInspector.UIString("Jump to Paint Event"), this.dispatchEventToListeners.bind(this, WebInspector.Layers3DView.Events.JumpT oPaintEventRequested, activeObject.traceEvent), false); 655 contextMenu.appendItem(WebInspector.UIString("Jump to Paint Event"), this.dispatchEventToListeners.bind(this, WebInspector.Layers3DView.Events.JumpT oPaintEventRequested, activeObject.traceEvent), false);
656 if (node) 656 if (node)
657 contextMenu.appendApplicableItems(node); 657 contextMenu.appendApplicableItems(node);
658 contextMenu.show(); 658 contextMenu.show();
659 }, 659 },
660 660
661 /** 661 /**
662 * @param {!Event} event 662 * @param {!Event} event
663 */ 663 */
664 _onMouseMove: function(event) 664 _onMouseMove: function(event)
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 */ 1053 */
1054 WebInspector.LayerTextureManager.Tile = function(snapshot, rect, traceEvent) 1054 WebInspector.LayerTextureManager.Tile = function(snapshot, rect, traceEvent)
1055 { 1055 {
1056 this.snapshot = snapshot; 1056 this.snapshot = snapshot;
1057 this.rect = rect; 1057 this.rect = rect;
1058 this.traceEvent = traceEvent; 1058 this.traceEvent = traceEvent;
1059 this.scale = 0; 1059 this.scale = 0;
1060 /** @type {?WebGLTexture} */ 1060 /** @type {?WebGLTexture} */
1061 this.texture = null; 1061 this.texture = null;
1062 } 1062 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698