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

Unified Diff: content/common/content_param_traits.cc

Issue 24012002: Move Range code to gfx. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: d 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
« no previous file with comments | « content/common/content_param_traits.h ('k') | content/common/mac/attributed_string_coder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/content_param_traits.cc
diff --git a/content/common/content_param_traits.cc b/content/common/content_param_traits.cc
index bcf7dd5b9f270f846f7b8fcc60008757cf409841..6b607558f927b123844cb4440a250415d74df035 100644
--- a/content/common/content_param_traits.cc
+++ b/content/common/content_param_traits.cc
@@ -6,7 +6,7 @@
#include "base/strings/string_number_conversions.h"
#include "net/base/ip_endpoint.h"
-#include "ui/base/range/range.h"
+#include "ui/gfx/range/range.h"
namespace {
@@ -48,14 +48,14 @@ void ParamTraits<net::IPEndPoint>::Log(const param_type& p, std::string* l) {
LogParam("IPEndPoint:" + p.ToString(), l);
}
-void ParamTraits<ui::Range>::Write(Message* m, const ui::Range& r) {
+void ParamTraits<gfx::Range>::Write(Message* m, const gfx::Range& r) {
m->WriteUInt64(r.start());
m->WriteUInt64(r.end());
}
-bool ParamTraits<ui::Range>::Read(const Message* m,
+bool ParamTraits<gfx::Range>::Read(const Message* m,
PickleIterator* iter,
- ui::Range* r) {
+ gfx::Range* r) {
uint64 start, end;
if (!m->ReadUInt64(iter, &start) || !m->ReadUInt64(iter, &end))
return false;
@@ -64,7 +64,7 @@ bool ParamTraits<ui::Range>::Read(const Message* m,
return true;
}
-void ParamTraits<ui::Range>::Log(const ui::Range& r, std::string* l) {
+void ParamTraits<gfx::Range>::Log(const gfx::Range& r, std::string* l) {
l->append(base::StringPrintf("(%" PRIuS ", %" PRIuS ")", r.start(), r.end()));
}
« no previous file with comments | « content/common/content_param_traits.h ('k') | content/common/mac/attributed_string_coder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698