| OLD | NEW |
| 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 Loading... |
| 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); | 99 UI.DragHandler._glassPane.setPointerEventsBehavior(UI.GlassPane.PointerEve
ntsBehavior.BlockedByGlassPane); |
| 100 UI.DragHandler._glassPane.show(UI.DragHandler._documentForMouseOut); | 100 UI.DragHandler._glassPane.show(UI.DragHandler._documentForMouseOut); |
| 101 } | 101 } |
| 102 } | 102 } |
| 103 | 103 |
| 104 _disposeGlassPane() { | 104 _disposeGlassPane() { |
| 105 if (!this._glassPaneInUse) | 105 if (!this._glassPaneInUse) |
| 106 return; | 106 return; |
| 107 this._glassPaneInUse = false; | 107 this._glassPaneInUse = false; |
| 108 if (--UI.DragHandler._glassPaneUsageCount) | 108 if (--UI.DragHandler._glassPaneUsageCount) |
| 109 return; | 109 return; |
| (...skipping 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2071 */ | 2071 */ |
| 2072 constructor(message, okCallback, cancelCallback) { | 2072 constructor(message, okCallback, cancelCallback) { |
| 2073 super(true); | 2073 super(true); |
| 2074 this.registerRequiredCSS('ui/confirmDialog.css'); | 2074 this.registerRequiredCSS('ui/confirmDialog.css'); |
| 2075 this.contentElement.createChild('div', 'message').createChild('span').textCo
ntent = message; | 2075 this.contentElement.createChild('div', 'message').createChild('span').textCo
ntent = message; |
| 2076 var buttonsBar = this.contentElement.createChild('div', 'button'); | 2076 var buttonsBar = this.contentElement.createChild('div', 'button'); |
| 2077 buttonsBar.appendChild(UI.createTextButton(Common.UIString('Ok'), okCallback
)); | 2077 buttonsBar.appendChild(UI.createTextButton(Common.UIString('Ok'), okCallback
)); |
| 2078 buttonsBar.appendChild(UI.createTextButton(Common.UIString('Cancel'), cancel
Callback)); | 2078 buttonsBar.appendChild(UI.createTextButton(Common.UIString('Cancel'), cancel
Callback)); |
| 2079 } | 2079 } |
| 2080 }; | 2080 }; |
| OLD | NEW |