| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "ppapi/c/pp_module.h" | 9 #include "ppapi/c/pp_module.h" |
| 10 #include "ppapi/c/pp_resource.h" | 10 #include "ppapi/c/pp_resource.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 PPB_Font_Proxy(Dispatcher* dispatcher, const void* target_interface); | 24 PPB_Font_Proxy(Dispatcher* dispatcher, const void* target_interface); |
| 25 virtual ~PPB_Font_Proxy(); | 25 virtual ~PPB_Font_Proxy(); |
| 26 | 26 |
| 27 const PPB_Font_Dev* ppb_font_target() const { | 27 const PPB_Font_Dev* ppb_font_target() const { |
| 28 return static_cast<const PPB_Font_Dev*>(target_interface()); | 28 return static_cast<const PPB_Font_Dev*>(target_interface()); |
| 29 } | 29 } |
| 30 | 30 |
| 31 // InterfaceProxy implementation. | 31 // InterfaceProxy implementation. |
| 32 virtual const void* GetSourceInterface() const; | 32 virtual const void* GetSourceInterface() const; |
| 33 virtual InterfaceID GetInterfaceId() const; | 33 virtual InterfaceID GetInterfaceId() const; |
| 34 virtual void OnMessageReceived(const IPC::Message& msg); | 34 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 // Message handlers. | 37 // Message handlers. |
| 38 void OnMsgCreate(PP_Module pp_module, | 38 void OnMsgCreate(PP_Module pp_module, |
| 39 const SerializedFontDescription& in_description, | 39 const SerializedFontDescription& in_description, |
| 40 PP_Resource* result, | 40 PP_Resource* result, |
| 41 SerializedFontDescription* out_description, | 41 SerializedFontDescription* out_description, |
| 42 std::string* out_metrics); | 42 std::string* out_metrics); |
| 43 void OnMsgDrawTextAt(SerializedVarReceiveInput text, | 43 void OnMsgDrawTextAt(SerializedVarReceiveInput text, |
| 44 const PPBFont_DrawTextAt_Params& params, | 44 const PPBFont_DrawTextAt_Params& params, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 61 uint32_t char_offset, | 61 uint32_t char_offset, |
| 62 int32_t* result); | 62 int32_t* result); |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(PPB_Font_Proxy); | 64 DISALLOW_COPY_AND_ASSIGN(PPB_Font_Proxy); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace proxy | 67 } // namespace proxy |
| 68 } // namespace pp | 68 } // namespace pp |
| 69 | 69 |
| 70 #endif // PPAPI_PROXY_PPB_FONT_PROXY_H_ | 70 #endif // PPAPI_PROXY_PPB_FONT_PROXY_H_ |
| OLD | NEW |