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 CONTENT_COMMON_MAC_ATTRIBUTED_STRING_CODER_H_ | 5 #ifndef CONTENT_COMMON_MAC_ATTRIBUTED_STRING_CODER_H_ |
6 #define CONTENT_COMMON_MAC_ATTRIBUTED_STRING_CODER_H_ | 6 #define CONTENT_COMMON_MAC_ATTRIBUTED_STRING_CODER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "base/string16.h" | 11 #include "base/string16.h" |
13 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
14 #include "content/common/mac/font_descriptor.h" | 13 #include "content/common/mac/font_descriptor.h" |
15 #include "ipc/ipc_message_utils.h" | 14 #include "ipc/ipc_message_utils.h" |
16 #include "ui/base/range/range.h" | 15 #include "ui/base/range/range.h" |
17 | 16 |
18 #if __OBJC__ | 17 #if __OBJC__ |
19 @class NSAttributedString; | 18 @class NSAttributedString; |
20 @class NSDictionary; | 19 @class NSDictionary; |
21 #else | 20 #else |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 struct ParamTraits<mac::AttributedStringCoder::FontAttribute> { | 110 struct ParamTraits<mac::AttributedStringCoder::FontAttribute> { |
112 typedef mac::AttributedStringCoder::FontAttribute param_type; | 111 typedef mac::AttributedStringCoder::FontAttribute param_type; |
113 static void Write(Message* m, const param_type& p); | 112 static void Write(Message* m, const param_type& p); |
114 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 113 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
115 static void Log(const param_type& p, std::string* l); | 114 static void Log(const param_type& p, std::string* l); |
116 }; | 115 }; |
117 | 116 |
118 } // namespace IPC | 117 } // namespace IPC |
119 | 118 |
120 #endif // CONTENT_COMMON_MAC_ATTRIBUTED_STRING_CODER_H_ | 119 #endif // CONTENT_COMMON_MAC_ATTRIBUTED_STRING_CODER_H_ |
OLD | NEW |