| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/common/mac/attributed_string_coder.h" | 5 #include "content/common/mac/attributed_string_coder.h" |
| 6 | 6 |
| 7 #include <AppKit/AppKit.h> | 7 #include <AppKit/AppKit.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_nsobject.h" | 10 #include "base/memory/scoped_nsobject.h" |
| 11 #include "base/sys_string_conversions.h" | 11 #include "base/sys_string_conversions.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "content/common/common_param_traits.h" | |
| 14 #include "content/common/view_messages.h" | 13 #include "content/common/view_messages.h" |
| 14 #include "content/public/common/common_param_traits.h" |
| 15 #include "ipc/ipc_message_utils.h" | 15 #include "ipc/ipc_message_utils.h" |
| 16 | 16 |
| 17 namespace mac { | 17 namespace mac { |
| 18 | 18 |
| 19 // static | 19 // static |
| 20 const AttributedStringCoder::EncodedString* AttributedStringCoder::Encode( | 20 const AttributedStringCoder::EncodedString* AttributedStringCoder::Encode( |
| 21 NSAttributedString* str) { | 21 NSAttributedString* str) { |
| 22 // Create the return value. | 22 // Create the return value. |
| 23 EncodedString* encoded_string = | 23 EncodedString* encoded_string = |
| 24 new EncodedString(base::SysNSStringToUTF16([str string])); | 24 new EncodedString(base::SysNSStringToUTF16([str string])); |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 *p = AttributedStringCoder::FontAttribute(font, range); | 162 *p = AttributedStringCoder::FontAttribute(font, range); |
| 163 } | 163 } |
| 164 return success; | 164 return success; |
| 165 } | 165 } |
| 166 | 166 |
| 167 void ParamTraits<AttributedStringCoder::FontAttribute>::Log( | 167 void ParamTraits<AttributedStringCoder::FontAttribute>::Log( |
| 168 const param_type& p, std::string* l) { | 168 const param_type& p, std::string* l) { |
| 169 } | 169 } |
| 170 | 170 |
| 171 } // namespace IPC | 171 } // namespace IPC |
| OLD | NEW |