| OLD | NEW |
| 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 #include "remoting/host/clipboard.h" | 5 #include "remoting/host/clipboard.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 } // namespace | 103 } // namespace |
| 104 | 104 |
| 105 namespace remoting { | 105 namespace remoting { |
| 106 | 106 |
| 107 class ClipboardWin : public Clipboard { | 107 class ClipboardWin : public Clipboard { |
| 108 public: | 108 public: |
| 109 ClipboardWin(); | 109 ClipboardWin(); |
| 110 ~ClipboardWin() override; | 110 ~ClipboardWin() override; |
| 111 | 111 |
| 112 virtual void Start( | 112 void Start( |
| 113 scoped_ptr<protocol::ClipboardStub> client_clipboard) override; | 113 scoped_ptr<protocol::ClipboardStub> client_clipboard) override; |
| 114 virtual void InjectClipboardEvent( | 114 void InjectClipboardEvent( |
| 115 const protocol::ClipboardEvent& event) override; | 115 const protocol::ClipboardEvent& event) override; |
| 116 | 116 |
| 117 private: | 117 private: |
| 118 void OnClipboardUpdate(); | 118 void OnClipboardUpdate(); |
| 119 | 119 |
| 120 // Handles messages received by |window_|. | 120 // Handles messages received by |window_|. |
| 121 bool HandleMessage(UINT message, | 121 bool HandleMessage(UINT message, |
| 122 WPARAM wparam, | 122 WPARAM wparam, |
| 123 LPARAM lparam, | 123 LPARAM lparam, |
| 124 LRESULT* result); | 124 LRESULT* result); |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 } | 271 } |
| 272 | 272 |
| 273 return false; | 273 return false; |
| 274 } | 274 } |
| 275 | 275 |
| 276 scoped_ptr<Clipboard> Clipboard::Create() { | 276 scoped_ptr<Clipboard> Clipboard::Create() { |
| 277 return make_scoped_ptr(new ClipboardWin()); | 277 return make_scoped_ptr(new ClipboardWin()); |
| 278 } | 278 } |
| 279 | 279 |
| 280 } // namespace remoting | 280 } // namespace remoting |
| OLD | NEW |