OLD | NEW |
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 <stddef.h> |
8 #include <stdint.h> | 9 #include <stdint.h> |
9 #include <string> | 10 #include <string> |
10 | 11 |
11 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" | 12 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
12 | 13 |
13 namespace remoting { | 14 namespace remoting { |
14 | 15 |
15 // Return a string that contains the current date formatted as 'MMDD/HHMMSS:'. | 16 // Return a string that contains the current date formatted as 'MMDD/HHMMSS:'. |
16 std::string GetTimestampString(); | 17 std::string GetTimestampString(); |
17 | 18 |
(...skipping 19 matching lines...) Expand all Loading... |
37 | 38 |
38 // Checks if the given string is a valid UTF-8 string. | 39 // Checks if the given string is a valid UTF-8 string. |
39 bool StringIsUtf8(const char* data, size_t length); | 40 bool StringIsUtf8(const char* data, size_t length); |
40 | 41 |
41 bool DoesRectContain(const webrtc::DesktopRect& a, | 42 bool DoesRectContain(const webrtc::DesktopRect& a, |
42 const webrtc::DesktopRect& b); | 43 const webrtc::DesktopRect& b); |
43 | 44 |
44 } // namespace remoting | 45 } // namespace remoting |
45 | 46 |
46 #endif // REMOTING_BASE_UTIL_H_ | 47 #endif // REMOTING_BASE_UTIL_H_ |
OLD | NEW |