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

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

Issue 7655002: Convert the pp::proxy namespace to the ppapi::proxy namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
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 #ifndef PPAPI_PROXY_SERIALIZED_STRUCTS_H_ 5 #ifndef PPAPI_PROXY_SERIALIZED_STRUCTS_H_
6 #define PPAPI_PROXY_SERIALIZED_STRUCTS_H_ 6 #define PPAPI_PROXY_SERIALIZED_STRUCTS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/shared_memory.h" 11 #include "base/shared_memory.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "ipc/ipc_platform_file.h" 13 #include "ipc/ipc_platform_file.h"
14 #include "ppapi/c/pp_bool.h" 14 #include "ppapi/c/pp_bool.h"
15 #include "ppapi/c/pp_instance.h" 15 #include "ppapi/c/pp_instance.h"
16 #include "ppapi/c/pp_point.h" 16 #include "ppapi/c/pp_point.h"
17 #include "ppapi/c/pp_rect.h" 17 #include "ppapi/c/pp_rect.h"
18 #include "ppapi/proxy/serialized_var.h" 18 #include "ppapi/proxy/serialized_var.h"
19 #include "ppapi/shared_impl/host_resource.h" 19 #include "ppapi/shared_impl/host_resource.h"
20 20
21 struct PP_FontDescription_Dev; 21 struct PP_FontDescription_Dev;
22 22
23 namespace pp { 23 namespace ppapi {
24 namespace proxy { 24 namespace proxy {
25 25
26 class Dispatcher; 26 class Dispatcher;
27 27
28 // PP_FontDescript_Dev has to be redefined with a SerializedVar in place of 28 // PP_FontDescript_Dev has to be redefined with a SerializedVar in place of
29 // the PP_Var used for the face name. 29 // the PP_Var used for the face name.
30 struct SerializedFontDescription { 30 struct SerializedFontDescription {
31 SerializedFontDescription(); 31 SerializedFontDescription();
32 ~SerializedFontDescription(); 32 ~SerializedFontDescription();
33 33
(...skipping 14 matching lines...) Expand all
48 // If dest_owns_ref is set, the resulting PP_FontDescription_Dev will keep a 48 // If dest_owns_ref is set, the resulting PP_FontDescription_Dev will keep a
49 // reference to any strings we made on its behalf even when the 49 // reference to any strings we made on its behalf even when the
50 // SerializedFontDescription goes away. When false, ownership of the ref will 50 // SerializedFontDescription goes away. When false, ownership of the ref will
51 // stay with the SerializedFontDescription and the PP_FontDescription_Dev 51 // stay with the SerializedFontDescription and the PP_FontDescription_Dev
52 // will just refer to that one. This is the difference between deserializing 52 // will just refer to that one. This is the difference between deserializing
53 // as an input value (owns_ref = false) and an output value (owns_ref = true). 53 // as an input value (owns_ref = false) and an output value (owns_ref = true).
54 void SetToPPFontDescription(Dispatcher* dispatcher, 54 void SetToPPFontDescription(Dispatcher* dispatcher,
55 PP_FontDescription_Dev* desc, 55 PP_FontDescription_Dev* desc,
56 bool dest_owns_ref) const; 56 bool dest_owns_ref) const;
57 57
58 pp::proxy::SerializedVar face; 58 SerializedVar face;
59 int32_t family; 59 int32_t family;
60 uint32_t size; 60 uint32_t size;
61 int32_t weight; 61 int32_t weight;
62 PP_Bool italic; 62 PP_Bool italic;
63 PP_Bool small_caps; 63 PP_Bool small_caps;
64 int32_t letter_spacing; 64 int32_t letter_spacing;
65 int32_t word_spacing; 65 int32_t word_spacing;
66 }; 66 };
67 67
68 struct SerializedDirEntry { 68 struct SerializedDirEntry {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 #if defined(OS_WIN) 122 #if defined(OS_WIN)
123 typedef HANDLE ImageHandle; 123 typedef HANDLE ImageHandle;
124 #elif defined(OS_MACOSX) 124 #elif defined(OS_MACOSX)
125 typedef base::SharedMemoryHandle ImageHandle; 125 typedef base::SharedMemoryHandle ImageHandle;
126 #else 126 #else
127 // On X Windows this is a SysV shared memory key. 127 // On X Windows this is a SysV shared memory key.
128 typedef int ImageHandle; 128 typedef int ImageHandle;
129 #endif 129 #endif
130 130
131 } // namespace proxy 131 } // namespace proxy
132 } // namespace pp 132 } // namespace ppapi
133 133
134 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ 134 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698