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

Unified Diff: base/clipboard.h

Issue 28294: Modified clipboard classes to use string16 instead of std::wstring (Closed) Base URL: http://src.chromium.org/svn/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 | « no previous file | base/clipboard_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/clipboard.h
===================================================================
--- base/clipboard.h (revision 10774)
+++ base/clipboard.h (working copy)
@@ -9,7 +9,9 @@
#include <string>
#include <vector>
+#include "base/file_path.h"
#include "base/process.h"
+#include "base/string16.h"
#include "base/gfx/size.h"
#if defined(OS_MACOSX)
@@ -62,10 +64,12 @@
// CBF_BOOKMARK html char array
// url char array
// CBF_LINK html char array
- // url char array
+ // url char array
// CBF_FILES files char array representing multiple files.
// Filenames are separated by null characters and
// the final filename is double null terminated.
+ // The filenames are encoded in platform-specific
+ // encoding.
// CBF_WEBKIT none empty vector
// CBF_BITMAP pixels byte array
// size gfx::Size struct
@@ -94,21 +98,21 @@
bool IsFormatAvailable(FormatType format) const;
// Reads UNICODE text from the clipboard, if available.
- void ReadText(std::wstring* result) const;
+ void ReadText(string16* result) const;
// Reads ASCII text from the clipboard, if available.
void ReadAsciiText(std::string* result) const;
// Reads HTML from the clipboard, if available.
- void ReadHTML(std::wstring* markup, std::string* src_url) const;
+ void ReadHTML(string16* markup, std::string* src_url) const;
// Reads a bookmark from the clipboard, if available.
- void ReadBookmark(std::wstring* title, std::string* url) const;
+ void ReadBookmark(string16* title, std::string* url) const;
// Reads a file or group of files from the clipboard, if available, into the
// out parameter.
- void ReadFile(std::wstring* file) const;
- void ReadFiles(std::vector<std::wstring>* files) const;
+ void ReadFile(FilePath* file) const;
+ void ReadFiles(std::vector<FilePath>* files) const;
// Get format Identifiers for various types.
static FormatType GetUrlFormatType();
@@ -171,8 +175,8 @@
// Safely write to system clipboard. Free |handle| on failure.
void WriteToClipboard(FormatType format, HANDLE handle);
- static void ParseBookmarkClipboardFormat(const std::wstring& bookmark,
- std::wstring* title,
+ static void ParseBookmarkClipboardFormat(const string16& bookmark,
+ string16* title,
std::string* url);
// Free a handle depending on its type (as intuited from format)
« no previous file with comments | « no previous file | base/clipboard_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698