| Index: ui/base/clipboard/clipboard_win.cc
|
| diff --git a/ui/base/clipboard/clipboard_win.cc b/ui/base/clipboard/clipboard_win.cc
|
| index 92632c74a965bc59388b3bab595fa13a358a6883..b2f6e0c3565e164f14f96d567cc841d35dd7f94e 100644
|
| --- a/ui/base/clipboard/clipboard_win.cc
|
| +++ b/ui/base/clipboard/clipboard_win.cc
|
| @@ -227,7 +227,7 @@ void Clipboard::WriteObjects(ClipboardType type, const ObjectMap& objects) {
|
| }
|
|
|
| void Clipboard::WriteText(const char* text_data, size_t text_len) {
|
| - string16 text;
|
| + base::string16 text;
|
| UTF8ToUTF16(text_data, text_len, &text);
|
| HGLOBAL glob = CreateGlobalData(text);
|
|
|
| @@ -262,7 +262,7 @@ void Clipboard::WriteBookmark(const char* title_data,
|
| bookmark.append(1, L'\n');
|
| bookmark.append(url_data, url_len);
|
|
|
| - string16 wide_bookmark = UTF8ToWide(bookmark);
|
| + base::string16 wide_bookmark = UTF8ToWide(bookmark);
|
| HGLOBAL glob = CreateGlobalData(wide_bookmark);
|
|
|
| WriteToClipboard(GetUrlWFormatType().ToUINT(), glob);
|
| @@ -395,7 +395,7 @@ void Clipboard::Clear(ClipboardType type) {
|
| }
|
|
|
| void Clipboard::ReadAvailableTypes(ClipboardType type,
|
| - std::vector<string16>* types,
|
| + std::vector<base::string16>* types,
|
| bool* contains_filenames) const {
|
| if (!types || !contains_filenames) {
|
| NOTREACHED();
|
| @@ -426,7 +426,7 @@ void Clipboard::ReadAvailableTypes(ClipboardType type,
|
| ::GlobalUnlock(hdata);
|
| }
|
|
|
| -void Clipboard::ReadText(ClipboardType type, string16* result) const {
|
| +void Clipboard::ReadText(ClipboardType type, base::string16* result) const {
|
| DCHECK_EQ(type, CLIPBOARD_TYPE_COPY_PASTE);
|
| if (!result) {
|
| NOTREACHED();
|
| @@ -471,7 +471,7 @@ void Clipboard::ReadAsciiText(ClipboardType type, std::string* result) const {
|
| }
|
|
|
| void Clipboard::ReadHTML(ClipboardType type,
|
| - string16* markup,
|
| + base::string16* markup,
|
| std::string* src_url,
|
| uint32* fragment_start,
|
| uint32* fragment_end) const {
|
| @@ -599,8 +599,8 @@ SkBitmap Clipboard::ReadImage(ClipboardType type) const {
|
| }
|
|
|
| void Clipboard::ReadCustomData(ClipboardType clipboard_type,
|
| - const string16& type,
|
| - string16* result) const {
|
| + const base::string16& type,
|
| + base::string16* result) const {
|
| DCHECK_EQ(clipboard_type, CLIPBOARD_TYPE_COPY_PASTE);
|
|
|
| // Acquire the clipboard.
|
| @@ -616,7 +616,7 @@ void Clipboard::ReadCustomData(ClipboardType clipboard_type,
|
| ::GlobalUnlock(hdata);
|
| }
|
|
|
| -void Clipboard::ReadBookmark(string16* title, std::string* url) const {
|
| +void Clipboard::ReadBookmark(base::string16* title, std::string* url) const {
|
| if (title)
|
| title->clear();
|
|
|
| @@ -632,7 +632,7 @@ void Clipboard::ReadBookmark(string16* title, std::string* url) const {
|
| if (!data)
|
| return;
|
|
|
| - string16 bookmark(static_cast<const char16*>(::GlobalLock(data)));
|
| + base::string16 bookmark(static_cast<const char16*>(::GlobalLock(data)));
|
| ::GlobalUnlock(data);
|
|
|
| ParseBookmarkClipboardFormat(bookmark, title, url);
|
| @@ -658,10 +658,10 @@ void Clipboard::ReadData(const FormatType& format, std::string* result) const {
|
| }
|
|
|
| // static
|
| -void Clipboard::ParseBookmarkClipboardFormat(const string16& bookmark,
|
| - string16* title,
|
| +void Clipboard::ParseBookmarkClipboardFormat(const base::string16& bookmark,
|
| + base::string16* title,
|
| std::string* url) {
|
| - const string16 kDelim = ASCIIToUTF16("\r\n");
|
| + const base::string16 kDelim = ASCIIToUTF16("\r\n");
|
|
|
| const size_t title_end = bookmark.find_first_of(kDelim);
|
| if (title)
|
| @@ -669,8 +669,8 @@ void Clipboard::ParseBookmarkClipboardFormat(const string16& bookmark,
|
|
|
| if (url) {
|
| const size_t url_start = bookmark.find_first_not_of(kDelim, title_end);
|
| - if (url_start != string16::npos)
|
| - *url = UTF16ToUTF8(bookmark.substr(url_start, string16::npos));
|
| + if (url_start != base::string16::npos)
|
| + *url = UTF16ToUTF8(bookmark.substr(url_start, base::string16::npos));
|
| }
|
| }
|
|
|
|
|