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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js

Issue 2834053004: DevTools: Fix timeline overview flickering (Closed)
Patch Set: tri-state Created 3 years, 7 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
5 * Copyright (C) 2009 Joseph Pecoraro 5 * Copyright (C) 2009 Joseph Pecoraro
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 constructor() { 89 constructor() {
90 this._elementDragMove = this._elementDragMove.bind(this); 90 this._elementDragMove = this._elementDragMove.bind(this);
91 this._elementDragEnd = this._elementDragEnd.bind(this); 91 this._elementDragEnd = this._elementDragEnd.bind(this);
92 this._mouseOutWhileDragging = this._mouseOutWhileDragging.bind(this); 92 this._mouseOutWhileDragging = this._mouseOutWhileDragging.bind(this);
93 } 93 }
94 94
95 _createGlassPane() { 95 _createGlassPane() {
96 this._glassPaneInUse = true; 96 this._glassPaneInUse = true;
97 if (!UI.DragHandler._glassPaneUsageCount++) { 97 if (!UI.DragHandler._glassPaneUsageCount++) {
98 UI.DragHandler._glassPane = new UI.GlassPane(); 98 UI.DragHandler._glassPane = new UI.GlassPane();
99 UI.DragHandler._glassPane.setBlockPointerEvents(true);
100 UI.DragHandler._glassPane.show(UI.DragHandler._documentForMouseOut); 99 UI.DragHandler._glassPane.show(UI.DragHandler._documentForMouseOut);
101 } 100 }
102 } 101 }
103 102
104 _disposeGlassPane() { 103 _disposeGlassPane() {
105 if (!this._glassPaneInUse) 104 if (!this._glassPaneInUse)
106 return; 105 return;
107 this._glassPaneInUse = false; 106 this._glassPaneInUse = false;
108 if (--UI.DragHandler._glassPaneUsageCount) 107 if (--UI.DragHandler._glassPaneUsageCount)
109 return; 108 return;
(...skipping 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after
2071 */ 2070 */
2072 constructor(message, okCallback, cancelCallback) { 2071 constructor(message, okCallback, cancelCallback) {
2073 super(true); 2072 super(true);
2074 this.registerRequiredCSS('ui/confirmDialog.css'); 2073 this.registerRequiredCSS('ui/confirmDialog.css');
2075 this.contentElement.createChild('div', 'message').createChild('span').textCo ntent = message; 2074 this.contentElement.createChild('div', 'message').createChild('span').textCo ntent = message;
2076 var buttonsBar = this.contentElement.createChild('div', 'button'); 2075 var buttonsBar = this.contentElement.createChild('div', 'button');
2077 buttonsBar.appendChild(UI.createTextButton(Common.UIString('Ok'), okCallback )); 2076 buttonsBar.appendChild(UI.createTextButton(Common.UIString('Ok'), okCallback ));
2078 buttonsBar.appendChild(UI.createTextButton(Common.UIString('Cancel'), cancel Callback)); 2077 buttonsBar.appendChild(UI.createTextButton(Common.UIString('Cancel'), cancel Callback));
2079 } 2078 }
2080 }; 2079 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698