summaryrefslogtreecommitdiffstats
path: root/base/scoped_clipboard_writer.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-10 02:00:50 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-10 02:00:50 +0000
commitbe623b0f2ec23b3032fc6c8b61d6062accf51bb7 (patch)
tree2ffa24729ec7c5a0c1d9d92d200ec66fa675feef /base/scoped_clipboard_writer.h
parent956d5aecbbf21ab3f84c87a8aec7d3a47eefbd34 (diff)
downloadchromium_src-be623b0f2ec23b3032fc6c8b61d6062accf51bb7.zip
chromium_src-be623b0f2ec23b3032fc6c8b61d6062accf51bb7.tar.gz
chromium_src-be623b0f2ec23b3032fc6c8b61d6062accf51bb7.tar.bz2
Clipboard:
- Move link construction logic to scoped_clipboard_writer.cc - Make callers use EscapeForHTML on the anchor text - Make WriteHyperlink just write html, and not a bookmark as well (only affects one caller, which I updated) - implement WriteBookmark for gtk BUG=18034,18035 Review URL: http://codereview.chromium.org/194052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25833 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/scoped_clipboard_writer.h')
-rw-r--r--base/scoped_clipboard_writer.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/base/scoped_clipboard_writer.h b/base/scoped_clipboard_writer.h
index 9d1760a..ed63050 100644
--- a/base/scoped_clipboard_writer.h
+++ b/base/scoped_clipboard_writer.h
@@ -41,10 +41,9 @@ class ScopedClipboardWriter {
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 string16& link_text, const std::string& url);
+ // Adds an html hyperlink (<a href>) to the clipboard. |anchor_text| should
+ // be escaped prior to being passed in.
+ void WriteHyperlink(const std::string& anchor_text, const std::string& url);
// Adds a file or group of files to the clipboard.
void WriteFile(const FilePath& file);