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

Side by Side Diff: third_party/WebKit/Source/platform/inspector_protocol/String16_cpp.template

Issue 2238423002: [DevTools] Generate all files in inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2240663003
Patch Set: Created 4 years, 4 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/inspector_protocol/String16.h"
6
7 #include <cstdlib> 5 #include <cstdlib>
8 #include <cstring> 6 #include <cstring>
9 #include <string> 7 #include <string>
10 8
11 namespace blink { 9 namespace blink {
12 namespace protocol { 10 namespace protocol {
13 11
14 namespace internal { 12 namespace internal {
15 13
16 void intToStr(int number, char* buffer, size_t length) 14 void intToStr(int number, char* buffer, size_t length)
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 return String16(m_buffer.data(), m_buffer.size()); 90 return String16(m_buffer.data(), m_buffer.size());
93 } 91 }
94 92
95 void String16Builder::reserveCapacity(size_t capacity) 93 void String16Builder::reserveCapacity(size_t capacity)
96 { 94 {
97 m_buffer.reserve(capacity); 95 m_buffer.reserve(capacity);
98 } 96 }
99 97
100 } // namespace protocol 98 } // namespace protocol
101 } // namespace blink 99 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698