summaryrefslogtreecommitdiffstats
path: root/remoting/webapp/clipboard_event_proto.js
blob: ae44206282af9225ffbde948fb1e4acecc59a78f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This file contains type definitions for the remoting.ClipboardEvent class,
// which is a subclass of Event.
// It is used only with JSCompiler to verify the type-correctness of our code.

/** @suppress {duplicate} */
var remoting = remoting || {};

/** @constructor
 *  @extends Event
 */
remoting.ClipboardData = function() {};

/** @type {Array.<string>} */
remoting.ClipboardData.prototype.types;

/** @type {function(string): string} */
remoting.ClipboardData.prototype.getData;

/** @type {function(string, string): void} */
remoting.ClipboardData.prototype.setData;

/** @constructor
 */
remoting.ClipboardEvent = function() {};

/** @type {remoting.ClipboardData} */
remoting.ClipboardEvent.prototype.clipboardData;

/** @type {function(): void} */
remoting.ClipboardEvent.prototype.preventDefault;