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

Unified Diff: content/test/mock_webclipboard_impl.cc

Issue 25705004: content: Move MockWebClipboardImpl into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mv TestWebKitPlatformSupport too Created 7 years, 2 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 | « content/test/mock_webclipboard_impl.h ('k') | content/test/test_webkit_platform_support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/mock_webclipboard_impl.cc
diff --git a/content/test/mock_webclipboard_impl.cc b/content/test/mock_webclipboard_impl.cc
index 557224e8ba2e7f7be75839050905303661d0dcb3..1cfac9b1fadc0c81de95e2acc93319b46562da28 100644
--- a/content/test/mock_webclipboard_impl.cc
+++ b/content/test/mock_webclipboard_impl.cc
@@ -25,11 +25,11 @@ using WebKit::WebString;
using WebKit::WebURL;
using WebKit::WebVector;
-MockWebClipboardImpl::MockWebClipboardImpl() {
-}
+namespace content {
-MockWebClipboardImpl::~MockWebClipboardImpl() {
-}
+MockWebClipboardImpl::MockWebClipboardImpl() {}
+
+MockWebClipboardImpl::~MockWebClipboardImpl() {}
bool MockWebClipboardImpl::isFormatAvailable(Format format, Buffer buffer) {
switch (format) {
@@ -63,7 +63,8 @@ bool MockWebClipboardImpl::isFormatAvailable(Format format, Buffer buffer) {
}
WebVector<WebString> MockWebClipboardImpl::readAvailableTypes(
- Buffer buffer, bool* containsFilenames) {
+ Buffer buffer,
+ bool* containsFilenames) {
*containsFilenames = false;
std::vector<WebString> results;
if (!m_plainText.isEmpty()) {
@@ -92,8 +93,10 @@ WebKit::WebString MockWebClipboardImpl::readPlainText(
// TODO(wtc): set output argument *url.
WebKit::WebString MockWebClipboardImpl::readHTML(
- WebKit::WebClipboard::Buffer buffer, WebKit::WebURL* url,
- unsigned* fragmentStart, unsigned* fragmentEnd) {
+ WebKit::WebClipboard::Buffer buffer,
+ WebKit::WebURL* url,
+ unsigned* fragmentStart,
+ unsigned* fragmentEnd) {
*fragmentStart = 0;
*fragmentEnd = static_cast<unsigned>(m_htmlText.length());
return m_htmlText;
@@ -133,9 +136,10 @@ WebKit::WebString MockWebClipboardImpl::readCustomData(
return WebKit::WebString();
}
-void MockWebClipboardImpl::writeHTML(
- const WebKit::WebString& htmlText, const WebKit::WebURL& url,
- const WebKit::WebString& plainText, bool writeSmartPaste) {
+void MockWebClipboardImpl::writeHTML(const WebKit::WebString& htmlText,
+ const WebKit::WebURL& url,
+ const WebKit::WebString& plainText,
+ bool writeSmartPaste) {
clear();
m_htmlText = htmlText;
@@ -153,7 +157,7 @@ void MockWebClipboardImpl::writeURL(const WebKit::WebURL& url,
const WebKit::WebString& title) {
clear();
- m_htmlText = WebString::fromUTF8(content::URLToMarkup(url, title));
+ m_htmlText = WebString::fromUTF8(URLToMarkup(url, title));
m_plainText = url.spec().utf16();
}
@@ -164,7 +168,7 @@ void MockWebClipboardImpl::writeImage(const WebKit::WebImage& image,
clear();
m_plainText = m_htmlText;
- m_htmlText = WebString::fromUTF8(content::URLToImageMarkup(url, title));
+ m_htmlText = WebString::fromUTF8(URLToImageMarkup(url, title));
m_image = image;
}
}
@@ -202,3 +206,5 @@ void MockWebClipboardImpl::clear() {
m_customData.clear();
m_writeSmartPaste = false;
}
+
+} // namespace content
« no previous file with comments | « content/test/mock_webclipboard_impl.h ('k') | content/test/test_webkit_platform_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698