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 // Many of these functions are based on those found in | 5 // Many of these functions are based on those found in |
6 // webkit/port/platform/PasteboardWin.cpp | 6 // webkit/port/platform/PasteboardWin.cpp |
7 | 7 |
8 #include "ui/base/clipboard/clipboard.h" | 8 #include "ui/base/clipboard/clipboard.h" |
9 | 9 |
10 #include <shlobj.h> | 10 #include <shlobj.h> |
11 #include <shellapi.h> | 11 #include <shellapi.h> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/memory/shared_memory.h" | 16 #include "base/memory/shared_memory.h" |
17 #include "base/message_loop.h" | 17 #include "base/message_loop.h" |
18 #include "base/safe_numerics.h" | 18 #include "base/safe_numerics.h" |
19 #include "base/stl_util.h" | 19 #include "base/stl_util.h" |
20 #include "base/string_number_conversions.h" | 20 #include "base/strings/string_number_conversions.h" |
21 #include "base/string_util.h" | 21 #include "base/strings/string_util.h" |
22 #include "base/strings/utf_offset_string_conversions.h" | 22 #include "base/strings/utf_offset_string_conversions.h" |
23 #include "base/strings/utf_string_conversions.h" | 23 #include "base/strings/utf_string_conversions.h" |
24 #include "base/win/scoped_gdi_object.h" | 24 #include "base/win/scoped_gdi_object.h" |
25 #include "base/win/scoped_hdc.h" | 25 #include "base/win/scoped_hdc.h" |
26 #include "base/win/wrapped_window_proc.h" | 26 #include "base/win/wrapped_window_proc.h" |
27 #include "third_party/skia/include/core/SkBitmap.h" | 27 #include "third_party/skia/include/core/SkBitmap.h" |
28 #include "ui/base/clipboard/clipboard_util_win.h" | 28 #include "ui/base/clipboard/clipboard_util_win.h" |
29 #include "ui/base/clipboard/custom_data_helper.h" | 29 #include "ui/base/clipboard/custom_data_helper.h" |
30 #include "ui/gfx/canvas.h" | 30 #include "ui/gfx/canvas.h" |
31 #include "ui/gfx/size.h" | 31 #include "ui/gfx/size.h" |
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 clipboard_owner_ = ::CreateWindow(L"ClipboardOwnerWindowClass", | 829 clipboard_owner_ = ::CreateWindow(L"ClipboardOwnerWindowClass", |
830 L"ClipboardOwnerWindow", | 830 L"ClipboardOwnerWindow", |
831 0, 0, 0, 0, 0, | 831 0, 0, 0, 0, 0, |
832 HWND_MESSAGE, | 832 HWND_MESSAGE, |
833 0, 0, 0); | 833 0, 0, 0); |
834 } | 834 } |
835 return clipboard_owner_; | 835 return clipboard_owner_; |
836 } | 836 } |
837 | 837 |
838 } // namespace ui | 838 } // namespace ui |
OLD | NEW |