| 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 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 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 PPB_Font_Impl(PluginInstance* instance, const PP_FontDescription_Dev& desc); | 27 PPB_Font_Impl(PluginInstance* instance, const PP_FontDescription_Dev& desc); |
| 28 virtual ~PPB_Font_Impl(); | 28 virtual ~PPB_Font_Impl(); |
| 29 | 29 |
| 30 // ResourceObjectBase. | 30 // ResourceObjectBase. |
| 31 virtual ::ppapi::thunk::PPB_Font_API* AsPPB_Font_API() OVERRIDE; | 31 virtual ::ppapi::thunk::PPB_Font_API* AsFont_API() OVERRIDE; |
| 32 | 32 |
| 33 // Resource overrides. | 33 // Resource overrides. |
| 34 virtual PPB_Font_Impl* AsPPB_Font_Impl() OVERRIDE; | 34 virtual PPB_Font_Impl* AsPPB_Font_Impl() OVERRIDE; |
| 35 | 35 |
| 36 // PPB_Font implementation. | 36 // PPB_Font implementation. |
| 37 virtual PP_Bool Describe(PP_FontDescription_Dev* description, | 37 virtual PP_Bool Describe(PP_FontDescription_Dev* description, |
| 38 PP_FontMetrics_Dev* metrics) OVERRIDE; | 38 PP_FontMetrics_Dev* metrics) OVERRIDE; |
| 39 virtual PP_Bool DrawTextAt(PP_Resource image_data, | 39 virtual PP_Bool DrawTextAt(PP_Resource image_data, |
| 40 const PP_TextRun_Dev* text, | 40 const PP_TextRun_Dev* text, |
| 41 const PP_Point* position, | 41 const PP_Point* position, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 69 private: | 69 private: |
| 70 PluginInstance* instance_; | 70 PluginInstance* instance_; |
| 71 | 71 |
| 72 DISALLOW_COPY_AND_ASSIGN(PPB_Font_FunctionImpl); | 72 DISALLOW_COPY_AND_ASSIGN(PPB_Font_FunctionImpl); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace ppapi | 75 } // namespace ppapi |
| 76 } // namespace webkit | 76 } // namespace webkit |
| 77 | 77 |
| 78 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FONT_IMPL_H_ | 78 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FONT_IMPL_H_ |
| OLD | NEW |