| 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 #import <cocoa/cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/sys_string_conversions.h" | 12 #include "base/sys_string_conversions.h" |
| 13 #include "base/timer.h" | 13 #include "base/timer.h" |
| 14 #include "remoting/base/constants.h" | 14 #include "remoting/base/constants.h" |
| 15 #include "remoting/proto/event.pb.h" | 15 #include "remoting/proto/event.pb.h" |
| 16 #include "remoting/protocol/clipboard_stub.h" | 16 #include "remoting/protocol/clipboard_stub.h" |
| 17 | 17 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 event.set_mime_type(kMimeTypeTextUtf8); | 110 event.set_mime_type(kMimeTypeTextUtf8); |
| 111 event.set_data(base::SysNSStringToUTF8(data)); | 111 event.set_data(base::SysNSStringToUTF8(data)); |
| 112 client_clipboard_->InjectClipboardEvent(event); | 112 client_clipboard_->InjectClipboardEvent(event); |
| 113 } | 113 } |
| 114 | 114 |
| 115 scoped_ptr<Clipboard> Clipboard::Create() { | 115 scoped_ptr<Clipboard> Clipboard::Create() { |
| 116 return scoped_ptr<Clipboard>(new ClipboardMac()); | 116 return scoped_ptr<Clipboard>(new ClipboardMac()); |
| 117 } | 117 } |
| 118 | 118 |
| 119 } // namespace remoting | 119 } // namespace remoting |
| OLD | NEW |