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 PPAPI_PROXY_PPB_FONT_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_FONT_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_FONT_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_FONT_PROXY_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
10 #include "ppapi/proxy/interface_proxy.h" | 10 #include "ppapi/proxy/interface_proxy.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 // FunctionGroupBase overrides. | 30 // FunctionGroupBase overrides. |
31 virtual ppapi::thunk::PPB_Font_FunctionAPI* AsPPB_Font_FunctionAPI() OVERRIDE; | 31 virtual ppapi::thunk::PPB_Font_FunctionAPI* AsPPB_Font_FunctionAPI() OVERRIDE; |
32 | 32 |
33 // PPB_Font_FunctionAPI implementation. | 33 // PPB_Font_FunctionAPI implementation. |
34 virtual PP_Var GetFontFamilies(PP_Instance instance) OVERRIDE; | 34 virtual PP_Var GetFontFamilies(PP_Instance instance) OVERRIDE; |
35 | 35 |
36 // InterfaceProxy implementation. | 36 // InterfaceProxy implementation. |
37 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 37 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
38 | 38 |
39 static const InterfaceID kInterfaceID = INTERFACE_ID_PPB_FONT; | 39 static const ApiID kApiID = API_ID_PPB_FONT; |
40 | 40 |
41 private: | 41 private: |
42 DISALLOW_COPY_AND_ASSIGN(PPB_Font_Proxy); | 42 DISALLOW_COPY_AND_ASSIGN(PPB_Font_Proxy); |
43 }; | 43 }; |
44 | 44 |
45 class Font : public ppapi::Resource, | 45 class Font : public ppapi::Resource, |
46 public ppapi::thunk::PPB_Font_API { | 46 public ppapi::thunk::PPB_Font_API { |
47 public: | 47 public: |
48 // Note that there isn't a "real" resource in the renderer backing a font, | 48 // Note that there isn't a "real" resource in the renderer backing a font, |
49 // it lives entirely in the plugin process. So the resource ID in the host | 49 // it lives entirely in the plugin process. So the resource ID in the host |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // destruction). | 87 // destruction). |
88 ppapi::WebKitForwarding::Font* font_forwarding_; | 88 ppapi::WebKitForwarding::Font* font_forwarding_; |
89 | 89 |
90 DISALLOW_COPY_AND_ASSIGN(Font); | 90 DISALLOW_COPY_AND_ASSIGN(Font); |
91 }; | 91 }; |
92 | 92 |
93 } // namespace proxy | 93 } // namespace proxy |
94 } // namespace ppapi | 94 } // namespace ppapi |
95 | 95 |
96 #endif // PPAPI_PROXY_PPB_FONT_PROXY_H_ | 96 #endif // PPAPI_PROXY_PPB_FONT_PROXY_H_ |
OLD | NEW |