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

Side by Side Diff: third_party/WebKit/Source/platform/PODInterval.h

Issue 2017053003: Remove StringBuilder::appendLiteral. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 } 135 }
136 136
137 const T& maxHigh() const { return m_maxHigh; } 137 const T& maxHigh() const { return m_maxHigh; }
138 void setMaxHigh(const T& maxHigh) { m_maxHigh = maxHigh; } 138 void setMaxHigh(const T& maxHigh) { m_maxHigh = maxHigh; }
139 139
140 #ifndef NDEBUG 140 #ifndef NDEBUG
141 // Support for printing PODIntervals. 141 // Support for printing PODIntervals.
142 String toString() const 142 String toString() const
143 { 143 {
144 StringBuilder builder; 144 StringBuilder builder;
145 builder.appendLiteral("[PODInterval ("); 145 builder.append("[PODInterval (");
146 builder.append(ValueToString<T>::toString(low())); 146 builder.append(ValueToString<T>::toString(low()));
147 builder.appendLiteral(", "); 147 builder.append(", ");
148 builder.append(ValueToString<T>::toString(high())); 148 builder.append(ValueToString<T>::toString(high()));
149 builder.appendLiteral("), data="); 149 builder.append("), data=");
150 builder.append(ValueToString<UserData>::toString(data())); 150 builder.append(ValueToString<UserData>::toString(data()));
151 builder.appendLiteral(", maxHigh="); 151 builder.append(", maxHigh=");
152 builder.append(ValueToString<T>::toString(maxHigh())); 152 builder.append(ValueToString<T>::toString(maxHigh()));
153 builder.append(']'); 153 builder.append(']');
154 return builder.toString(); 154 return builder.toString();
155 } 155 }
156 #endif 156 #endif
157 157
158 private: 158 private:
159 T m_low; 159 T m_low;
160 T m_high; 160 T m_high;
161 GC_PLUGIN_IGNORE("crbug.com/513116") 161 GC_PLUGIN_IGNORE("crbug.com/513116")
162 UserData m_data; 162 UserData m_data;
163 T m_maxHigh; 163 T m_maxHigh;
164 }; 164 };
165 165
166 } // namespace blink 166 } // namespace blink
167 167
168 #endif // PODInterval_h 168 #endif // PODInterval_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/JSONValues.cpp ('k') | third_party/WebKit/Source/platform/exported/WebMediaConstraints.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698