| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/clipboard.h" | 8 #include "app/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/clipboard_util.h" | 13 #include "app/clipboard/clipboard_util_win.h" |
| 14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
| 15 #include "base/gfx/size.h" | 15 #include "base/gfx/size.h" |
| 16 #include "base/lock.h" | 16 #include "base/lock.h" |
| 17 #include "base/logging.h" | 17 #include "base/logging.h" |
| 18 #include "base/message_loop.h" | 18 #include "base/message_loop.h" |
| 19 #include "base/shared_memory.h" | 19 #include "base/shared_memory.h" |
| 20 #include "base/string_util.h" | 20 #include "base/string_util.h" |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 HWND Clipboard::GetClipboardWindow() const { | 677 HWND Clipboard::GetClipboardWindow() const { |
| 678 if (!clipboard_owner_ && create_window_) { | 678 if (!clipboard_owner_ && create_window_) { |
| 679 clipboard_owner_ = ::CreateWindow(L"ClipboardOwnerWindowClass", | 679 clipboard_owner_ = ::CreateWindow(L"ClipboardOwnerWindowClass", |
| 680 L"ClipboardOwnerWindow", | 680 L"ClipboardOwnerWindow", |
| 681 0, 0, 0, 0, 0, | 681 0, 0, 0, 0, 0, |
| 682 HWND_MESSAGE, | 682 HWND_MESSAGE, |
| 683 0, 0, 0); | 683 0, 0, 0); |
| 684 } | 684 } |
| 685 return clipboard_owner_; | 685 return clipboard_owner_; |
| 686 } | 686 } |
| OLD | NEW |