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

Side by Side Diff: remoting/base/util.h

Issue 10441131: [Chromoting] Handle CR-LF correctly when transferring text items to and from the clipboard on a Win… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a static_cast to a unit test. Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/base/util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef REMOTING_BASE_UTIL_H_ 5 #ifndef REMOTING_BASE_UTIL_H_
6 #define REMOTING_BASE_UTIL_H_ 6 #define REMOTING_BASE_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "media/base/video_frame.h" 10 #include "media/base/video_frame.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 const SkIRect& rect); 75 const SkIRect& rect);
76 76
77 void CopyRGB32Rect(const uint8* source_buffer, 77 void CopyRGB32Rect(const uint8* source_buffer,
78 int source_stride, 78 int source_stride,
79 const SkIRect& source_buffer_rect, 79 const SkIRect& source_buffer_rect,
80 uint8* dest_buffer, 80 uint8* dest_buffer,
81 int dest_stride, 81 int dest_stride,
82 const SkIRect& dest_buffer_rect, 82 const SkIRect& dest_buffer_rect,
83 const SkIRect& dest_rect); 83 const SkIRect& dest_rect);
84 84
85 // Replaces every occurrence of "\n" in a string by "\r\n".
86 std::string ReplaceLfByCrLf(const std::string& in);
87
88 // Replaces every occurrence of "\r\n" in a string by "\n".
89 std::string ReplaceCrLfByLf(const std::string& in);
90
85 } // namespace remoting 91 } // namespace remoting
86 92
87 #endif // REMOTING_BASE_UTIL_H_ 93 #endif // REMOTING_BASE_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/base/util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698