summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppapi_messages.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-14 17:08:00 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-14 17:08:00 +0000
commitfb35dcfafd929772b185516173a92c619aa97421 (patch)
treecc7260344ab7f028274c312d646685adcebd95b5 /ppapi/proxy/ppapi_messages.h
parentda441db001417a34e7378a95481d237a637488a7 (diff)
downloadchromium_src-fb35dcfafd929772b185516173a92c619aa97421.zip
chromium_src-fb35dcfafd929772b185516173a92c619aa97421.tar.gz
chromium_src-fb35dcfafd929772b185516173a92c619aa97421.tar.bz2
Implement DrawGlyphs and refactor the FontDescription serialization such
that it can be reused for this code. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66081 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppapi_messages.h')
-rw-r--r--ppapi/proxy/ppapi_messages.h52
1 files changed, 1 insertions, 51 deletions
diff --git a/ppapi/proxy/ppapi_messages.h b/ppapi/proxy/ppapi_messages.h
index 5b5caf2..d0f5bed 100644
--- a/ppapi/proxy/ppapi_messages.h
+++ b/ppapi/proxy/ppapi_messages.h
@@ -17,57 +17,7 @@
#include "ppapi/c/pp_module.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/proxy/ppapi_param_traits.h"
-
-namespace pp {
-namespace proxy {
-
-// PP_FontDescript_Dev has to be redefined with a SerializedVar in place of
-// the PP_Var used for the face name.
-struct SerializedFontDescription {
- pp::proxy::SerializedVar face;
- int32_t family;
- uint32_t size;
- int32_t weight;
- PP_Bool italic;
- PP_Bool small_caps;
- int32_t letter_spacing;
- int32_t word_spacing;
-};
-
-struct SerializedDirEntry {
- std::string name;
- bool is_dir;
-};
-
-// Since there are so many parameters, DrawTextAt requires this separate
-// structure. This includes everything but the font name. Because the font name
-// is a var, it's much more convenient to use the normal way of passing a
-// PP_Var.
-struct PPBFont_DrawTextAt_Params {
- PP_Resource font;
- PP_Resource image_data;
- PP_Bool text_is_rtl;
- PP_Bool override_direction;
- PP_Point position;
- uint32_t color;
- PP_Rect clip;
- bool clip_is_null;
- PP_Bool image_data_is_opaque;
-};
-
-struct PPBFlash_DrawGlyphs_Params {
- PP_Resource pp_image_data;
- SerializedFontDescription font_desc;
- uint32_t color;
- PP_Point position;
- PP_Rect clip;
- float transformation[3][3];
- std::vector<uint16_t> glyph_indices;
- std::vector<PP_Point> glyph_advances;
-};
-
-} // namespace proxy
-} // namespace pp
+#include "ppapi/proxy/serialized_structs.h"
#define MESSAGES_INTERNAL_FILE "ppapi/proxy/ppapi_messages_internal.h"
#include "ipc/ipc_message_macros.h"