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

Unified Diff: remoting/webapp/crd/js/connected_view.js

Issue 1078563002: [Webapp Refactor] Clean up remoting.Clipboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove remoting.ClientSession.sendClipboardItem for real Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/webapp/crd/js/clipboard.js ('k') | remoting/webapp/crd/js/remoting.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/connected_view.js
diff --git a/remoting/webapp/crd/js/connected_view.js b/remoting/webapp/crd/js/connected_view.js
index 73f300ce48e91187282b559bfbde9f750aa96e64..f92656c243ef35f09b6a57829c575c73918b848e 100644
--- a/remoting/webapp/crd/js/connected_view.js
+++ b/remoting/webapp/crd/js/connected_view.js
@@ -42,12 +42,11 @@ remoting.ConnectedView = function(plugin, viewportElement, cursorElement) {
/** private */
this.disposables_ = new base.Disposables(
this.cursor_,
- new base.DomEventHook(pluginElement, 'focus',
- this.onPluginGotFocus_.bind(this), false),
new base.DomEventHook(pluginElement, 'blur',
this.onPluginLostFocus_.bind(this), false),
new base.DomEventHook(document, 'visibilitychange',
- this.onVisibilityChanged_.bind(this), false)
+ this.onVisibilityChanged_.bind(this), false),
+ new remoting.Clipboard(plugin)
);
// TODO(wez): Only allow mouse lock if the app has the pointerLock permission.
@@ -91,14 +90,6 @@ remoting.ConnectedView.prototype.onConnectionReady = function(ready) {
};
/**
- * Callback function called when the plugin element gets focus.
- * @private
- */
-remoting.ConnectedView.prototype.onPluginGotFocus_ = function() {
- remoting.clipboard.initiateToHost();
-};
-
-/**
* Callback function called when the plugin element loses focus.
* @private
*/
« no previous file with comments | « remoting/webapp/crd/js/clipboard.js ('k') | remoting/webapp/crd/js/remoting.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698