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

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

Issue 669113002: DevTools: replace mouseout with mouseleave where possible. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: for landing Created 6 years, 2 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 29 matching lines...) Expand all
40 40
41 this._transformController = new WebInspector.TransformController(this.elemen t); 41 this._transformController = new WebInspector.TransformController(this.elemen t);
42 this._transformController.addEventListener(WebInspector.TransformController. Events.TransformChanged, this._update, this); 42 this._transformController.addEventListener(WebInspector.TransformController. Events.TransformChanged, this._update, this);
43 this._initStatusBar(); 43 this._initStatusBar();
44 44
45 this._canvasElement = this.element.createChild("canvas"); 45 this._canvasElement = this.element.createChild("canvas");
46 this._canvasElement.tabIndex = 0; 46 this._canvasElement.tabIndex = 0;
47 this._canvasElement.addEventListener("dblclick", this._onDoubleClick.bind(th is), false); 47 this._canvasElement.addEventListener("dblclick", this._onDoubleClick.bind(th is), false);
48 this._canvasElement.addEventListener("mousedown", this._onMouseDown.bind(thi s), false); 48 this._canvasElement.addEventListener("mousedown", this._onMouseDown.bind(thi s), false);
49 this._canvasElement.addEventListener("mouseup", this._onMouseUp.bind(this), false); 49 this._canvasElement.addEventListener("mouseup", this._onMouseUp.bind(this), false);
50 this._canvasElement.addEventListener("mouseout", this._onMouseMove.bind(this ), false); 50 this._canvasElement.addEventListener("mouseleave", this._onMouseMove.bind(th is), false);
51 this._canvasElement.addEventListener("mousemove", this._onMouseMove.bind(thi s), false); 51 this._canvasElement.addEventListener("mousemove", this._onMouseMove.bind(thi s), false);
52 this._canvasElement.addEventListener("contextmenu", this._onContextMenu.bind (this), false); 52 this._canvasElement.addEventListener("contextmenu", this._onContextMenu.bind (this), false);
53 53
54 this._lastActiveObject = {}; 54 this._lastActiveObject = {};
55 this._picturesForLayer = {}; 55 this._picturesForLayer = {};
56 this._scrollRectQuadsForLayer = {}; 56 this._scrollRectQuadsForLayer = {};
57 this._isVisible = {}; 57 this._isVisible = {};
58 this._layerTree = null; 58 this._layerTree = null;
59 this._textureManager = new WebInspector.LayerTextureManager(); 59 this._textureManager = new WebInspector.LayerTextureManager();
60 this._textureManager.addEventListener(WebInspector.LayerTextureManager.Event s.TextureUpdated, this._update, this); 60 this._textureManager.addEventListener(WebInspector.LayerTextureManager.Event s.TextureUpdated, this._update, this);
(...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 */ 1123 */
1124 WebInspector.LayerTextureManager.Tile = function(snapshot, rect, traceEvent) 1124 WebInspector.LayerTextureManager.Tile = function(snapshot, rect, traceEvent)
1125 { 1125 {
1126 this.snapshot = snapshot; 1126 this.snapshot = snapshot;
1127 this.rect = rect; 1127 this.rect = rect;
1128 this.traceEvent = traceEvent; 1128 this.traceEvent = traceEvent;
1129 this.scale = 0; 1129 this.scale = 0;
1130 /** @type {?WebGLTexture} */ 1130 /** @type {?WebGLTexture} */
1131 this.texture = null; 1131 this.texture = null;
1132 } 1132 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/CountersGraph.js ('k') | Source/devtools/front_end/timeline/TimelineView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698