| 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 #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/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 11 #include "base/strings/sys_string_conversions.h" | 11 #include "base/strings/sys_string_conversions.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 13 #include "content/common/frame_messages.h" | 13 #include "content/common/render_process_messages.h" |
| 14 #include "content/public/common/common_param_traits.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 = |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 *p = AttributedStringCoder::FontAttribute(font, range); | 168 *p = AttributedStringCoder::FontAttribute(font, range); |
| 169 } | 169 } |
| 170 return success; | 170 return success; |
| 171 } | 171 } |
| 172 | 172 |
| 173 void ParamTraits<AttributedStringCoder::FontAttribute>::Log( | 173 void ParamTraits<AttributedStringCoder::FontAttribute>::Log( |
| 174 const param_type& p, std::string* l) { | 174 const param_type& p, std::string* l) { |
| 175 } | 175 } |
| 176 | 176 |
| 177 } // namespace IPC | 177 } // namespace IPC |
| OLD | NEW |