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/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
16 #include "base/win/message_window.h" | 16 #include "base/win/message_window.h" |
17 #include "base/win/scoped_hglobal.h" | 17 #include "base/win/scoped_hglobal.h" |
18 #include "base/win/windows_version.h" | |
19 #include "remoting/base/constants.h" | 18 #include "remoting/base/constants.h" |
20 #include "remoting/base/util.h" | 19 #include "remoting/base/util.h" |
21 #include "remoting/proto/event.pb.h" | 20 #include "remoting/proto/event.pb.h" |
22 #include "remoting/protocol/clipboard_stub.h" | 21 #include "remoting/protocol/clipboard_stub.h" |
23 | 22 |
24 namespace { | 23 namespace { |
25 | 24 |
26 // A scoper class that opens and closes the clipboard. | 25 // A scoper class that opens and closes the clipboard. |
27 // This class was adapted from the ScopedClipboard class in | 26 // This class was adapted from the ScopedClipboard class in |
28 // ui/base/clipboard/clipboard_win.cc. | 27 // ui/base/clipboard/clipboard_win.cc. |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 } | 271 } |
273 | 272 |
274 return false; | 273 return false; |
275 } | 274 } |
276 | 275 |
277 std::unique_ptr<Clipboard> Clipboard::Create() { | 276 std::unique_ptr<Clipboard> Clipboard::Create() { |
278 return base::WrapUnique(new ClipboardWin()); | 277 return base::WrapUnique(new ClipboardWin()); |
279 } | 278 } |
280 | 279 |
281 } // namespace remoting | 280 } // namespace remoting |
OLD | NEW |