Home | History | Annotate | Download | only in webapp

Lines Matching refs:clipboard

7  * A class for moving clipboard items between the plugin and the OS.
18 remoting.Clipboard = function() {
25 remoting.Clipboard.prototype.ItemTypes = {
34 remoting.Clipboard.prototype.previousContent = "";
40 remoting.Clipboard.prototype.itemFromHostTextPending = false;
46 remoting.Clipboard.prototype.blockOneClipboardSend_ = false;
53 remoting.Clipboard.prototype.startSession = function() {
59 // Do a paste operation, but make sure the resulting clipboard data isn't sent
61 // clipboard before the session began. The user may not have intended such
68 * Accepts a clipboard from the OS, and sends any changed clipboard items to
76 remoting.Clipboard.prototype.toHost = function(clipboardData) {
91 console.log('Got clipboard from OS, type: ' + type +
95 // The browser presents text clipboard items as 'text/plain'.
102 console.log('Sending clipboard to host.');
113 * Accepts a clipboard item from the host, and stores it so that toOs() will
114 * subsequently send it to the OS clipboard.
116 * @param {string} mimeType The MIME type of the clipboard item.
117 * @param {string} item The clipboard item.
120 remoting.Clipboard.prototype.fromHost = function(mimeType, item) {
123 console.log('Got clipboard from host, type: ' + mimeType +
138 * Moves any pending clipboard items to a ClipboardData object.
141 * @return {boolean} Whether any clipboard items were moved to the ClipboardData
144 remoting.Clipboard.prototype.toOs = function(clipboardData) {
146 console.log('Got unexpected clipboard copy event.');
153 console.log('Setting OS clipboard, length: ' + this.previousContent.length);
160 * Initiates the process of sending any fresh items on the OS clipboard, to the
164 * the OS clipboard. That event will be caught by a handler in the document,
167 remoting.Clipboard.prototype.initiateToHost = function() {
170 console.log('Initiating clipboard paste.');
176 * to the OS clipboard.
179 * the OS clipboard. That event will be caught by a handler in the document,
182 remoting.Clipboard.prototype.initiateToOs = function() {
185 console.log('Initiating clipboard copy.');
189 /** @type {remoting.Clipboard} */
190 remoting.clipboard = null;