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

Unified Diff: webkit/renderer/clipboard_utils.cc

Issue 25378002: Move the rest of source files from webkit/renderer to content/renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clipboard_utils Created 7 years, 3 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
Index: webkit/renderer/clipboard_utils.cc
diff --git a/webkit/renderer/clipboard_utils.cc b/webkit/renderer/clipboard_utils.cc
deleted file mode 100644
index 85718498e60647d35da0ed1b52389ab1bc552f8f..0000000000000000000000000000000000000000
--- a/webkit/renderer/clipboard_utils.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "webkit/renderer/clipboard_utils.h"
-
-#include "base/strings/utf_string_conversions.h"
-#include "net/base/escape.h"
-#include "third_party/WebKit/public/platform/WebString.h"
-#include "third_party/WebKit/public/platform/WebURL.h"
-
-namespace webkit_clipboard {
-
-std::string URLToMarkup(const WebKit::WebURL& url,
- const WebKit::WebString& title) {
- std::string markup("<a href=\"");
- markup.append(url.spec());
- markup.append("\">");
- // TODO(darin): HTML escape this
- markup.append(net::EscapeForHTML(UTF16ToUTF8(title)));
- markup.append("</a>");
- return markup;
-}
-
-std::string URLToImageMarkup(const WebKit::WebURL& url,
- const WebKit::WebString& title) {
- std::string markup("<img src=\"");
- markup.append(net::EscapeForHTML(url.spec()));
- markup.append("\"");
- if (!title.isEmpty()) {
- markup.append(" alt=\"");
- markup.append(net::EscapeForHTML(UTF16ToUTF8(title)));
- markup.append("\"");
- }
- markup.append("/>");
- return markup;
-}
-
-} // namespace webkit_clipboard

Powered by Google App Engine
This is Rietveld 408576698