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

Unified Diff: sky/engine/wtf/text/StringImpl.h

Issue 719063002: Revert "Remove support for MSVC" (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
Index: sky/engine/wtf/text/StringImpl.h
diff --git a/sky/engine/wtf/text/StringImpl.h b/sky/engine/wtf/text/StringImpl.h
index 6367f0c8f3bb5b015f12bf326293de463e01a48e..2c35a29413685f9f03114ef3759f841a3612a8e5 100644
--- a/sky/engine/wtf/text/StringImpl.h
+++ b/sky/engine/wtf/text/StringImpl.h
@@ -32,6 +32,14 @@
#include "wtf/WTFExport.h"
#include "wtf/unicode/Unicode.h"
+#if USE(CF)
+typedef const struct __CFString * CFStringRef;
+#endif
+
+#ifdef __OBJC__
+@class NSString;
+#endif
+
namespace WTF {
struct AlreadyHashed;
@@ -42,6 +50,7 @@ struct LCharBufferTranslator;
struct CharBufferFromLiteralDataTranslator;
struct SubstringTranslator;
struct UCharBufferTranslator;
+template<typename> class RetainPtr;
enum TextCaseSensitivity { TextCaseSensitive, TextCaseInsensitive };
@@ -390,6 +399,13 @@ public:
PassRefPtr<StringImpl> replace(unsigned index, unsigned len, StringImpl*);
PassRefPtr<StringImpl> upconvertedString();
+#if USE(CF)
+ RetainPtr<CFStringRef> createCFString();
+#endif
+#ifdef __OBJC__
+ operator NSString*();
+#endif
+
#ifdef STRING_STATS
ALWAYS_INLINE static StringStats& stringStats() { return m_stringStats; }
#endif

Powered by Google App Engine
This is Rietveld 408576698