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

Side by Side Diff: webkit/plugins/ppapi/ppb_font_impl.h

Issue 7206016: Convert most remaining resources to use the API/thunk system. The significant (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | « webkit/plugins/ppapi/ppb_flash_impl_linux.cc ('k') | webkit/plugins/ppapi/ppb_font_impl.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) 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 12 matching lines...) Expand all
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* AsPPB_Font_API() OVERRIDE;
32 32
33 // Resource overrides.
34 virtual PPB_Font_Impl* AsPPB_Font_Impl() OVERRIDE;
35
36 // PPB_Font implementation. 33 // PPB_Font implementation.
37 virtual PP_Bool Describe(PP_FontDescription_Dev* description, 34 virtual PP_Bool Describe(PP_FontDescription_Dev* description,
38 PP_FontMetrics_Dev* metrics) OVERRIDE; 35 PP_FontMetrics_Dev* metrics) OVERRIDE;
39 virtual PP_Bool DrawTextAt(PP_Resource image_data, 36 virtual PP_Bool DrawTextAt(PP_Resource image_data,
40 const PP_TextRun_Dev* text, 37 const PP_TextRun_Dev* text,
41 const PP_Point* position, 38 const PP_Point* position,
42 uint32_t color, 39 uint32_t color,
43 const PP_Rect* clip, 40 const PP_Rect* clip,
44 PP_Bool image_data_is_opaque) OVERRIDE; 41 PP_Bool image_data_is_opaque) OVERRIDE;
45 virtual int32_t MeasureText(const PP_TextRun_Dev* text) OVERRIDE; 42 virtual int32_t MeasureText(const PP_TextRun_Dev* text) OVERRIDE;
(...skipping 23 matching lines...) Expand all
69 private: 66 private:
70 PluginInstance* instance_; 67 PluginInstance* instance_;
71 68
72 DISALLOW_COPY_AND_ASSIGN(PPB_Font_FunctionImpl); 69 DISALLOW_COPY_AND_ASSIGN(PPB_Font_FunctionImpl);
73 }; 70 };
74 71
75 } // namespace ppapi 72 } // namespace ppapi
76 } // namespace webkit 73 } // namespace webkit
77 74
78 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FONT_IMPL_H_ 75 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FONT_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_flash_impl_linux.cc ('k') | webkit/plugins/ppapi/ppb_font_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698