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

Side by Side Diff: ppapi/shared_impl/webkit_forwarding.h

Issue 7687005: Create ppapi_proxy.dll. (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
« no previous file with comments | « ppapi/shared_impl/video_decoder_impl.h ('k') | ppapi/thunk/ppapi_thunk_export.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) 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_SHARED_IMPL_WEBKIT_FORWARDING_H_ 5 #ifndef PPAPI_SHARED_IMPL_WEBKIT_FORWARDING_H_
6 #define PPAPI_SHARED_IMPL_WEBKIT_FORWARDING_H_ 6 #define PPAPI_SHARED_IMPL_WEBKIT_FORWARDING_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/c/pp_bool.h" 10 #include "ppapi/c/pp_bool.h"
11 #include "ppapi/c/pp_stdint.h" 11 #include "ppapi/c/pp_stdint.h"
12 #include "ppapi/shared_impl/ppapi_shared_export.h"
12 13
13 struct PP_FontDescription_Dev; 14 struct PP_FontDescription_Dev;
14 struct PP_FontMetrics_Dev; 15 struct PP_FontMetrics_Dev;
15 struct PP_Point; 16 struct PP_Point;
16 struct PP_Rect; 17 struct PP_Rect;
17 18
18 namespace base { 19 namespace base {
19 class WaitableEvent; 20 class WaitableEvent;
20 } 21 }
21 22
22 namespace skia { 23 namespace skia {
23 class PlatformCanvas; 24 class PlatformCanvas;
24 } 25 }
25 26
26 namespace ppapi { 27 namespace ppapi {
27 28
28 struct Preferences; 29 struct Preferences;
29 30
30 class WebKitForwarding { 31 class PPAPI_SHARED_EXPORT WebKitForwarding {
31 public: 32 public:
32 class Font { 33 class PPAPI_SHARED_EXPORT Font {
33 public: 34 public:
34 // C++ version of PP_TextRun_Dev. Since the functions below will be called 35 // C++ version of PP_TextRun_Dev. Since the functions below will be called
35 // on an alternate thread in the proxy, and since there are different 36 // on an alternate thread in the proxy, and since there are different
36 // methods of converting PP_Var -> strings in the plugin and the proxy, we 37 // methods of converting PP_Var -> strings in the plugin and the proxy, we
37 // can't use PP_Vars in the Do* functions below. 38 // can't use PP_Vars in the Do* functions below.
38 struct TextRun { 39 struct TextRun {
39 std::string text; 40 std::string text;
40 bool rtl; 41 bool rtl;
41 bool override_direction; 42 bool override_direction;
42 }; 43 };
43 44
44 // DoDrawText takes too many arguments to be used with base::Bind, so we 45 // DoDrawText takes too many arguments to be used with base::Bind, so we
45 // use this struct to hold them. 46 // use this struct to hold them.
46 struct DrawTextParams { 47 struct PPAPI_SHARED_EXPORT DrawTextParams {
47 DrawTextParams(skia::PlatformCanvas* destination_arg, 48 DrawTextParams(skia::PlatformCanvas* destination_arg,
48 const TextRun& text_arg, 49 const TextRun& text_arg,
49 const PP_Point* position_arg, 50 const PP_Point* position_arg,
50 uint32_t color_arg, 51 uint32_t color_arg,
51 const PP_Rect* clip_arg, 52 const PP_Rect* clip_arg,
52 PP_Bool image_data_is_opaque_arg); 53 PP_Bool image_data_is_opaque_arg);
53 ~DrawTextParams(); 54 ~DrawTextParams();
54 55
55 skia::PlatformCanvas* destination; 56 skia::PlatformCanvas* destination;
56 const TextRun& text; 57 const TextRun& text;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 virtual void CreateFontForwarding(base::WaitableEvent* event, 96 virtual void CreateFontForwarding(base::WaitableEvent* event,
96 const PP_FontDescription_Dev& desc, 97 const PP_FontDescription_Dev& desc,
97 const std::string& desc_face, 98 const std::string& desc_face,
98 const Preferences& prefs, 99 const Preferences& prefs,
99 Font** result) = 0; 100 Font** result) = 0;
100 }; 101 };
101 102
102 } // namespace ppapi 103 } // namespace ppapi
103 104
104 #endif // PPAPI_SHARED_IMPL_WEBKIT_FORWARDING_H_ 105 #endif // PPAPI_SHARED_IMPL_WEBKIT_FORWARDING_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/video_decoder_impl.h ('k') | ppapi/thunk/ppapi_thunk_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698