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

Side by Side Diff: content/common/mac/attributed_string_coder.mm

Issue 1346473003: Move font IPCs to be RenderProcess messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months 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 unified diff | Download patch
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/render_process_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/render_process_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698