OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FONT_IMPL_H_ | |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FONT_IMPL_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "base/compiler_specific.h" | |
10 #include "ppapi/c/pp_instance.h" | |
11 #include "ppapi/shared_impl/function_group_base.h" | |
12 #include "ppapi/thunk/ppb_font_api.h" | |
13 | |
14 namespace webkit { | |
15 namespace ppapi { | |
16 | |
17 class PluginInstance; | |
18 | |
19 class PPB_Font_FunctionImpl : public ::ppapi::FunctionGroupBase, | |
20 public ::ppapi::thunk::PPB_Font_FunctionAPI { | |
21 public: | |
22 explicit PPB_Font_FunctionImpl(PluginInstance* instance); | |
23 virtual ~PPB_Font_FunctionImpl(); | |
24 | |
25 // FunctionGroupBase overrides. | |
26 virtual ::ppapi::thunk::PPB_Font_FunctionAPI* AsFont_FunctionAPI(); | |
27 | |
28 // PPB_Font_FunctionAPI implementation. | |
29 virtual PP_Var GetFontFamilies(PP_Instance instance) OVERRIDE; | |
30 | |
31 private: | |
32 PluginInstance* instance_; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(PPB_Font_FunctionImpl); | |
35 }; | |
36 | |
37 } // namespace ppapi | |
38 | |
39 } // namespace webkit. | |
40 | |
41 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FONT_IMPL_H_ | |
OLD | NEW |