| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * A class for moving clipboard items between the plugin and the OS. | 7 * A class for moving clipboard items between the plugin and the OS. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 /** @suppress {duplicate} */ | 10 /** @suppress {duplicate} */ |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 * @private | 206 * @private |
| 207 */ | 207 */ |
| 208 remoting.Clipboard.prototype.onCopy_ = function(event) { | 208 remoting.Clipboard.prototype.onCopy_ = function(event) { |
| 209 if (event && event.clipboardData && this.toOs_(event.clipboardData)) { | 209 if (event && event.clipboardData && this.toOs_(event.clipboardData)) { |
| 210 // The default action may overwrite items that we added to clipboardData. | 210 // The default action may overwrite items that we added to clipboardData. |
| 211 event.preventDefault(); | 211 event.preventDefault(); |
| 212 } | 212 } |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 })(); | 215 })(); |
| OLD | NEW |