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

Side by Side Diff: remoting/webapp/crd/js/clipboard.js

Issue 983023002: [Chromoting] Use compact notation for javascript @private types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « remoting/webapp/crd/js/client_session.js ('k') | remoting/webapp/crd/js/connection_stats.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 'use strict'; 10 'use strict';
11 11
12 /** @suppress {duplicate} */ 12 /** @suppress {duplicate} */
13 var remoting = remoting || {}; 13 var remoting = remoting || {};
14 14
15 /** 15 /**
16 * @constructor 16 * @constructor
17 */ 17 */
18 remoting.Clipboard = function() { 18 remoting.Clipboard = function() {
19 }; 19 };
20 20
21 /** 21 /**
22 * @private 22 * @private
23 * @enum {string} 23 * @enum {string}
24 */ 24 */
25 remoting.Clipboard.prototype.ItemTypes = { 25 remoting.Clipboard.prototype.ItemTypes = {
26 TEXT_TYPE: 'text/plain', 26 TEXT_TYPE: 'text/plain',
27 TEXT_UTF8_TYPE: 'text/plain; charset=UTF-8' 27 TEXT_UTF8_TYPE: 'text/plain; charset=UTF-8'
28 }; 28 };
29 29
30 /** 30 /** @private {string} */
31 * @private
32 * @type {string}
33 */
34 remoting.Clipboard.prototype.previousContent = ""; 31 remoting.Clipboard.prototype.previousContent = "";
35 32
36 /** 33 /** @private {boolean} */
37 * @private
38 * @type {boolean}
39 */
40 remoting.Clipboard.prototype.itemFromHostTextPending = false; 34 remoting.Clipboard.prototype.itemFromHostTextPending = false;
41 35
42 /** 36 /** @private {boolean} */
43 * @private
44 * @type {boolean}
45 */
46 remoting.Clipboard.prototype.blockOneClipboardSend_ = false; 37 remoting.Clipboard.prototype.blockOneClipboardSend_ = false;
47 38
48 /** 39 /**
49 * Notifies this object that a session has started. 40 * Notifies this object that a session has started.
50 * 41 *
51 * @return {void} Nothing. 42 * @return {void} Nothing.
52 */ 43 */
53 remoting.Clipboard.prototype.startSession = function() { 44 remoting.Clipboard.prototype.startSession = function() {
54 // Clear the store of items sent and received. Those items now relate to a 45 // Clear the store of items sent and received. Those items now relate to a
55 // previous session. 46 // previous session.
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 */ 172 */
182 remoting.Clipboard.prototype.initiateToOs = function() { 173 remoting.Clipboard.prototype.initiateToOs = function() {
183 // It would be cleaner to send a paste command to the plugin element, 174 // It would be cleaner to send a paste command to the plugin element,
184 // but that's not supported. 175 // but that's not supported.
185 console.log('Initiating clipboard copy.'); 176 console.log('Initiating clipboard copy.');
186 document.execCommand("copy"); 177 document.execCommand("copy");
187 }; 178 };
188 179
189 /** @type {remoting.Clipboard} */ 180 /** @type {remoting.Clipboard} */
190 remoting.clipboard = null; 181 remoting.clipboard = null;
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/client_session.js ('k') | remoting/webapp/crd/js/connection_stats.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698