| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_TRUETYPE_FONT_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_TRUETYPE_FONT_RESOURCE_H_ |
| 6 #define PPAPI_PROXY_TRUETYPE_FONT_RESOURCE_H_ | 6 #define PPAPI_PROXY_TRUETYPE_FONT_RESOURCE_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class PPAPI_PROXY_EXPORT TrueTypeFontResource | 26 class PPAPI_PROXY_EXPORT TrueTypeFontResource |
| 27 : public PluginResource, | 27 : public PluginResource, |
| 28 public thunk::PPB_TrueTypeFont_API { | 28 public thunk::PPB_TrueTypeFont_API { |
| 29 public: | 29 public: |
| 30 TrueTypeFontResource(Connection connection, | 30 TrueTypeFontResource(Connection connection, |
| 31 PP_Instance instance, | 31 PP_Instance instance, |
| 32 const PP_TrueTypeFontDesc_Dev& desc); | 32 const PP_TrueTypeFontDesc_Dev& desc); |
| 33 virtual ~TrueTypeFontResource(); | 33 virtual ~TrueTypeFontResource(); |
| 34 | 34 |
| 35 // Resource implementation. | 35 // Resource implementation. |
| 36 virtual thunk::PPB_TrueTypeFont_API* AsPPB_TrueTypeFont_API() OVERRIDE; | 36 virtual thunk::PPB_TrueTypeFont_API* AsPPB_TrueTypeFont_API() override; |
| 37 | 37 |
| 38 // PPB_TrueTypeFont_API implementation. | 38 // PPB_TrueTypeFont_API implementation. |
| 39 virtual int32_t Describe( | 39 virtual int32_t Describe( |
| 40 PP_TrueTypeFontDesc_Dev* desc, | 40 PP_TrueTypeFontDesc_Dev* desc, |
| 41 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 41 scoped_refptr<TrackedCallback> callback) override; |
| 42 virtual int32_t GetTableTags( | 42 virtual int32_t GetTableTags( |
| 43 const PP_ArrayOutput& output, | 43 const PP_ArrayOutput& output, |
| 44 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 44 scoped_refptr<TrackedCallback> callback) override; |
| 45 virtual int32_t GetTable( | 45 virtual int32_t GetTable( |
| 46 uint32_t table, | 46 uint32_t table, |
| 47 int32_t offset, | 47 int32_t offset, |
| 48 int32_t max_data_length, | 48 int32_t max_data_length, |
| 49 const PP_ArrayOutput& output, | 49 const PP_ArrayOutput& output, |
| 50 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 50 scoped_refptr<TrackedCallback> callback) override; |
| 51 | 51 |
| 52 // PluginResource implementation. | 52 // PluginResource implementation. |
| 53 virtual void OnReplyReceived(const ResourceMessageReplyParams& params, | 53 virtual void OnReplyReceived(const ResourceMessageReplyParams& params, |
| 54 const IPC::Message& msg) OVERRIDE; | 54 const IPC::Message& msg) override; |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 void OnPluginMsgCreateComplete( | 57 void OnPluginMsgCreateComplete( |
| 58 const ResourceMessageReplyParams& params, | 58 const ResourceMessageReplyParams& params, |
| 59 const ppapi::proxy::SerializedTrueTypeFontDesc& desc, | 59 const ppapi::proxy::SerializedTrueTypeFontDesc& desc, |
| 60 int32_t result); | 60 int32_t result); |
| 61 void OnPluginMsgGetTableTagsComplete( | 61 void OnPluginMsgGetTableTagsComplete( |
| 62 scoped_refptr<TrackedCallback> callback, | 62 scoped_refptr<TrackedCallback> callback, |
| 63 PP_ArrayOutput array_output, | 63 PP_ArrayOutput array_output, |
| 64 const ResourceMessageReplyParams& params, | 64 const ResourceMessageReplyParams& params, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 77 PP_TrueTypeFontDesc_Dev* describe_desc_; | 77 PP_TrueTypeFontDesc_Dev* describe_desc_; |
| 78 scoped_refptr<TrackedCallback> describe_callback_; | 78 scoped_refptr<TrackedCallback> describe_callback_; |
| 79 | 79 |
| 80 DISALLOW_COPY_AND_ASSIGN(TrueTypeFontResource); | 80 DISALLOW_COPY_AND_ASSIGN(TrueTypeFontResource); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace proxy | 83 } // namespace proxy |
| 84 } // namespace ppapi | 84 } // namespace ppapi |
| 85 | 85 |
| 86 #endif // PPAPI_PROXY_TRUETYPE_FONT_RESOURCE_H_ | 86 #endif // PPAPI_PROXY_TRUETYPE_FONT_RESOURCE_H_ |
| OLD | NEW |