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

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

Issue 4752008: Add proxies for some of the PDF & Flash functionality. There are still a few... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
« no previous file with comments | « ppapi/proxy/plugin_resource.h ('k') | ppapi/proxy/ppapi_messages.cc » ('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) 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 #ifndef PPAPI_PROXY_PPAPI_MESSAGES_H_ 5 #ifndef PPAPI_PROXY_PPAPI_MESSAGES_H_
6 #define PPAPI_PROXY_PPAPI_MESSAGES_H_ 6 #define PPAPI_PROXY_PPAPI_MESSAGES_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 16 matching lines...) Expand all
27 pp::proxy::SerializedVar face; 27 pp::proxy::SerializedVar face;
28 int32_t family; 28 int32_t family;
29 uint32_t size; 29 uint32_t size;
30 int32_t weight; 30 int32_t weight;
31 PP_Bool italic; 31 PP_Bool italic;
32 PP_Bool small_caps; 32 PP_Bool small_caps;
33 int32_t letter_spacing; 33 int32_t letter_spacing;
34 int32_t word_spacing; 34 int32_t word_spacing;
35 }; 35 };
36 36
37 struct SerializedDirEntry {
38 std::string name;
39 bool is_dir;
40 };
41
37 // Since there are so many parameters, DrawTextAt requires this separate 42 // Since there are so many parameters, DrawTextAt requires this separate
38 // structure. This includes everything but the font name. Because the font name 43 // structure. This includes everything but the font name. Because the font name
39 // is a var, it's much more convenient to use the normal way of passing a 44 // is a var, it's much more convenient to use the normal way of passing a
40 // PP_Var. 45 // PP_Var.
41 struct PPBFont_DrawTextAt_Params { 46 struct PPBFont_DrawTextAt_Params {
42 PP_Resource font; 47 PP_Resource font;
43 PP_Resource image_data; 48 PP_Resource image_data;
44 PP_Bool text_is_rtl; 49 PP_Bool text_is_rtl;
45 PP_Bool override_direction; 50 PP_Bool override_direction;
46 PP_Point position; 51 PP_Point position;
47 uint32_t color; 52 uint32_t color;
48 PP_Rect clip; 53 PP_Rect clip;
49 bool clip_is_null; 54 bool clip_is_null;
50 PP_Bool image_data_is_opaque; 55 PP_Bool image_data_is_opaque;
51 }; 56 };
52 57
58 struct PPBFlash_DrawGlyphs_Params {
59 PP_Resource pp_image_data;
60 SerializedFontDescription font_desc;
61 uint32_t color;
62 PP_Point position;
63 PP_Rect clip;
64 float transformation[3][3];
65 std::vector<uint16_t> glyph_indices;
66 std::vector<PP_Point> glyph_advances;
67 };
68
53 } // namespace proxy 69 } // namespace proxy
54 } // namespace pp 70 } // namespace pp
55 71
56 #define MESSAGES_INTERNAL_FILE "ppapi/proxy/ppapi_messages_internal.h" 72 #define MESSAGES_INTERNAL_FILE "ppapi/proxy/ppapi_messages_internal.h"
57 #include "ipc/ipc_message_macros.h" 73 #include "ipc/ipc_message_macros.h"
58 74
59 #endif // PPAPI_PROXY_PPAPI_MESSAGES_H_ 75 #endif // PPAPI_PROXY_PPAPI_MESSAGES_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_resource.h ('k') | ppapi/proxy/ppapi_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698