diff options
author | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-11 09:22:38 +0000 |
---|---|---|
committer | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-11 09:22:38 +0000 |
commit | 4cf04bb7b4082903880aaa85d4a7d63803fa36d5 (patch) | |
tree | bf207d4fb70ccebf03d114c1d9b5164e17c1c956 /chrome_frame/test/chrome_frame_test_utils.cc | |
parent | b13efdc121f05e98122242c670a5d13286312f31 (diff) | |
download | chromium_src-4cf04bb7b4082903880aaa85d4a7d63803fa36d5.zip chromium_src-4cf04bb7b4082903880aaa85d4a7d63803fa36d5.tar.gz chromium_src-4cf04bb7b4082903880aaa85d4a7d63803fa36d5.tar.bz2 |
ProcessSingleton now uses base::win::MessageWindow to create a message-only window.
Collateral changes:
- base::win::MessageWindow registes a single window class used by all message-only windows it creates. The class is registered via base::LazyInstance.
- Added base::win::MessageWindow::FindWindow() wrapper used to find other message-only windows, including the other created by a different process.
- Removed chrome::kMessageWindowClass constant.
- chrome_frame_test::ContextMenuTest destroys the clipboard during the test teardown.
Review URL: https://chromiumcodereview.appspot.com/18348025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211049 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test/chrome_frame_test_utils.cc')
-rw-r--r-- | chrome_frame/test/chrome_frame_test_utils.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome_frame/test/chrome_frame_test_utils.cc b/chrome_frame/test/chrome_frame_test_utils.cc index 80db1b3..c3c5d4c 100644 --- a/chrome_frame/test/chrome_frame_test_utils.cc +++ b/chrome_frame/test/chrome_frame_test_utils.cc @@ -532,6 +532,10 @@ std::wstring GetClipboardText() { return UTF16ToWide(text16); } +void DestroyClipboard() { + ui::Clipboard::DestroyClipboardForCurrentThread(); +} + void SetClipboardText(const std::wstring& text) { ui::ScopedClipboardWriter clipboard_writer( ui::Clipboard::GetForCurrentThread(), |