OLD | NEW |
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 WEBKIT_PLUGINS_PPAPI_PPB_FONT_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FONT_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FONT_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FONT_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "ppapi/c/dev/ppb_font_dev.h" | 10 #include "ppapi/c/dev/ppb_font_dev.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 class PluginInstance; | 22 class PluginInstance; |
23 | 23 |
24 class PPB_Font_Impl : public Resource, | 24 class PPB_Font_Impl : public Resource, |
25 public ::ppapi::thunk::PPB_Font_API { | 25 public ::ppapi::thunk::PPB_Font_API { |
26 public: | 26 public: |
27 virtual ~PPB_Font_Impl(); | 27 virtual ~PPB_Font_Impl(); |
28 | 28 |
29 static PP_Resource Create(PluginInstance* instance, | 29 static PP_Resource Create(PluginInstance* instance, |
30 const PP_FontDescription_Dev& description); | 30 const PP_FontDescription_Dev& description); |
31 | 31 |
32 // ResourceObjectBase. | 32 // Resource. |
33 virtual ::ppapi::thunk::PPB_Font_API* AsPPB_Font_API() OVERRIDE; | 33 virtual ::ppapi::thunk::PPB_Font_API* AsPPB_Font_API() OVERRIDE; |
34 | 34 |
35 // PPB_Font implementation. | 35 // PPB_Font implementation. |
36 virtual PP_Bool Describe(PP_FontDescription_Dev* description, | 36 virtual PP_Bool Describe(PP_FontDescription_Dev* description, |
37 PP_FontMetrics_Dev* metrics) OVERRIDE; | 37 PP_FontMetrics_Dev* metrics) OVERRIDE; |
38 virtual PP_Bool DrawTextAt(PP_Resource image_data, | 38 virtual PP_Bool DrawTextAt(PP_Resource image_data, |
39 const PP_TextRun_Dev* text, | 39 const PP_TextRun_Dev* text, |
40 const PP_Point* position, | 40 const PP_Point* position, |
41 uint32_t color, | 41 uint32_t color, |
42 const PP_Rect* clip, | 42 const PP_Rect* clip, |
(...skipping 27 matching lines...) Expand all Loading... |
70 private: | 70 private: |
71 PluginInstance* instance_; | 71 PluginInstance* instance_; |
72 | 72 |
73 DISALLOW_COPY_AND_ASSIGN(PPB_Font_FunctionImpl); | 73 DISALLOW_COPY_AND_ASSIGN(PPB_Font_FunctionImpl); |
74 }; | 74 }; |
75 | 75 |
76 } // namespace ppapi | 76 } // namespace ppapi |
77 } // namespace webkit | 77 } // namespace webkit |
78 | 78 |
79 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FONT_IMPL_H_ | 79 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FONT_IMPL_H_ |
OLD | NEW |