Index: remoting/webapp/event_proto.js |
diff --git a/remoting/webapp/event_proto.js b/remoting/webapp/event_proto.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..88a78eb974090fe994eceae9ab673e89ed0f7df8 |
--- /dev/null |
+++ b/remoting/webapp/event_proto.js |
@@ -0,0 +1,27 @@ |
+// 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.Event 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 |
+ */ |
+remoting.ClipboardData = function() {}; |
+ |
+/** @type {Array.<string>} */ |
+remoting.ClipboardData.prototype.types; |
+ |
+/** @type {function(string): string} */ |
+remoting.ClipboardData.prototype.getData; |
+ |
+/** @constructor |
+ */ |
+remoting.Event = function() {}; |
Jamie
2012/03/14 00:43:47
Maybe ClipboardEvent would be a better name. Also,
|
+ |
+/** @type {remoting.ClipboardData} */ |
+remoting.Event.prototype.clipboardData; |