Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: chrome_frame/test/chrome_frame_test_utils.cc

Issue 9232075: Have ScopedClipboardWriter and Clipboard::WriteObjects take a buffer parameter. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix build error. Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome_frame/test/chrome_frame_test_utils.h" 5 #include "chrome_frame/test/chrome_frame_test_utils.h"
6 6
7 #include <atlapp.h> 7 #include <atlapp.h>
8 #include <atlmisc.h> 8 #include <atlmisc.h>
9 #include <iepmapi.h> 9 #include <iepmapi.h>
10 #include <sddl.h> 10 #include <sddl.h>
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 std::wstring GetClipboardText() { 492 std::wstring GetClipboardText() {
493 ui::Clipboard clipboard; 493 ui::Clipboard clipboard;
494 string16 text16; 494 string16 text16;
495 clipboard.ReadText(ui::Clipboard::BUFFER_STANDARD, &text16); 495 clipboard.ReadText(ui::Clipboard::BUFFER_STANDARD, &text16);
496 return UTF16ToWide(text16); 496 return UTF16ToWide(text16);
497 } 497 }
498 498
499 void SetClipboardText(const std::wstring& text) { 499 void SetClipboardText(const std::wstring& text) {
500 ui::Clipboard clipboard; 500 ui::Clipboard clipboard;
501 { 501 {
502 ui::ScopedClipboardWriter clipboard_writer(&clipboard); 502 ui::ScopedClipboardWriter clipboard_writer(&clipboard,
503 ui::Clipboard::BUFFER_STANDARD);
503 clipboard_writer.WriteText(WideToUTF16(text)); 504 clipboard_writer.WriteText(WideToUTF16(text));
504 } 505 }
505 } 506 }
506 507
507 bool AddCFMetaTag(std::string* html_data) { 508 bool AddCFMetaTag(std::string* html_data) {
508 if (!html_data) { 509 if (!html_data) {
509 NOTREACHED(); 510 NOTREACHED();
510 return false; 511 return false;
511 } 512 }
512 std::string lower = StringToLowerASCII(*html_data); 513 std::string lower = StringToLowerASCII(*html_data);
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 wchar_t local_app_data_path[MAX_PATH + 1] = {0}; 664 wchar_t local_app_data_path[MAX_PATH + 1] = {0};
664 SHGetFolderPath(NULL, CSIDL_LOCAL_APPDATA, NULL, SHGFP_TYPE_CURRENT, 665 SHGetFolderPath(NULL, CSIDL_LOCAL_APPDATA, NULL, SHGFP_TYPE_CURRENT,
665 local_app_data_path); 666 local_app_data_path);
666 667
667 std::wstring session_history_path = local_app_data_path; 668 std::wstring session_history_path = local_app_data_path;
668 session_history_path += L"\\Microsoft\\Internet Explorer\\Recovery"; 669 session_history_path += L"\\Microsoft\\Internet Explorer\\Recovery";
669 file_util::Delete(session_history_path, true); 670 file_util::Delete(session_history_path, true);
670 } 671 }
671 672
672 } // namespace chrome_frame_test 673 } // namespace chrome_frame_test
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_win.cc ('k') | content/browser/renderer_host/clipboard_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698