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

Side by Side Diff: ppapi/proxy/serialized_structs.cc

Issue 5624002: Move more code from headers to implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 10 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "ppapi/proxy/serialized_structs.h" 5 #include "ppapi/proxy/serialized_structs.h"
6 6
7 #include "ppapi/c/dev/ppb_font_dev.h" 7 #include "ppapi/c/dev/ppb_font_dev.h"
8 #include "ppapi/c/pp_rect.h" 8 #include "ppapi/c/pp_rect.h"
9 9
10 namespace pp { 10 namespace pp {
11 namespace proxy { 11 namespace proxy {
12 12
13 SerializedFontDescription::SerializedFontDescription()
14 : face(),
15 family(0),
16 size(0),
17 weight(0),
18 italic(PP_FALSE),
19 small_caps(PP_FALSE),
20 letter_spacing(0),
21 word_spacing(0) {
22 }
23
24 SerializedFontDescription::~SerializedFontDescription() {}
25
13 void SerializedFontDescription::SetFromPPFontDescription( 26 void SerializedFontDescription::SetFromPPFontDescription(
14 Dispatcher* dispatcher, 27 Dispatcher* dispatcher,
15 const PP_FontDescription_Dev& desc, 28 const PP_FontDescription_Dev& desc,
16 bool source_owns_ref) { 29 bool source_owns_ref) {
17 if (source_owns_ref) 30 if (source_owns_ref)
18 face = SerializedVarSendInput(dispatcher, desc.face); 31 face = SerializedVarSendInput(dispatcher, desc.face);
19 else 32 else
20 SerializedVarReturnValue(&face).Return(dispatcher, desc.face); 33 SerializedVarReturnValue(&face).Return(dispatcher, desc.face);
21 34
22 family = desc.family; 35 family = desc.family;
(...skipping 19 matching lines...) Expand all
42 55
43 desc->family = static_cast<PP_FontFamily_Dev>(family); 56 desc->family = static_cast<PP_FontFamily_Dev>(family);
44 desc->size = size; 57 desc->size = size;
45 desc->weight = static_cast<PP_FontWeight_Dev>(weight); 58 desc->weight = static_cast<PP_FontWeight_Dev>(weight);
46 desc->italic = italic; 59 desc->italic = italic;
47 desc->small_caps = small_caps; 60 desc->small_caps = small_caps;
48 desc->letter_spacing = letter_spacing; 61 desc->letter_spacing = letter_spacing;
49 desc->word_spacing = word_spacing; 62 desc->word_spacing = word_spacing;
50 } 63 }
51 64
65 PPBFlash_DrawGlyphs_Params::PPBFlash_DrawGlyphs_Params()
66 : pp_image_data(0),
67 font_desc(),
68 color(0) {
69 }
70
71 PPBFlash_DrawGlyphs_Params::~PPBFlash_DrawGlyphs_Params() {}
72
52 } // namespace proxy 73 } // namespace proxy
53 } // namespace pp 74 } // namespace pp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698