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

Unified Diff: base/scoped_clipboard_writer.h

Issue 27370: Update clipboard classes to use string16 and FilePath instead of wstring.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/pickle.cc ('k') | base/scoped_clipboard_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/scoped_clipboard_writer.h
===================================================================
--- base/scoped_clipboard_writer.h (revision 10811)
+++ base/scoped_clipboard_writer.h (working copy)
@@ -10,7 +10,12 @@
#ifndef BASE_SCOPED_CLIPBOARD_WRITER_H_
#define BASE_SCOPED_CLIPBOARD_WRITER_H_
+#include <string>
+#include <vector>
+
#include "base/clipboard.h"
+#include "base/file_path.h"
+#include "base/string16.h"
// This class is a wrapper for |Clipboard| that handles packing data
// into a Clipboard::ObjectMap.
@@ -24,24 +29,24 @@
~ScopedClipboardWriter();
// Converts |text| to UTF-8 and adds it to the clipboard.
- void WriteText(const std::wstring& text);
+ void WriteText(const string16& text);
// Adds HTML to the clipboard. The url parameter is optional, but especially
// useful if the HTML fragment contains relative links.
- void WriteHTML(const std::wstring& markup, const std::string& source_url);
+ void WriteHTML(const string16& markup, const std::string& source_url);
// Adds a bookmark to the clipboard.
- void WriteBookmark(const std::wstring& bookmark_title,
+ void WriteBookmark(const string16& bookmark_title,
const std::string& url);
// Adds both a bookmark and an HTML hyperlink to the clipboard. It is a
// convenience wrapper around WriteBookmark and WriteHTML. |link_text| is
// used as the bookmark title.
- void WriteHyperlink(const std::wstring& link_text, const std::string& url);
+ void WriteHyperlink(const string16& link_text, const std::string& url);
// Adds a file or group of files to the clipboard.
- void WriteFile(const std::wstring& file);
- void WriteFiles(const std::vector<std::wstring>& files);
+ void WriteFile(const FilePath& file);
+ void WriteFiles(const std::vector<FilePath>& files);
// Used by WebKit to determine whether WebKit wrote the clipboard last
void WriteWebSmartPaste();
« no previous file with comments | « base/pickle.cc ('k') | base/scoped_clipboard_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698