OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_FONT_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_FONT_H_ |
| 7 |
| 8 #include "webkit/glue/plugins/pepper_resource.h" |
| 9 |
| 10 typedef struct _ppb_Font PPB_Font; |
| 11 |
| 12 namespace pepper { |
| 13 |
| 14 class PluginInstance; |
| 15 |
| 16 class Font : public Resource { |
| 17 public: |
| 18 Font(PluginModule* module, int fd); |
| 19 virtual ~Font(); |
| 20 |
| 21 // Returns a pointer to the interface implementing PPB_Font that is exposed to |
| 22 // the plugin. |
| 23 static const PPB_Font* GetInterface(); |
| 24 |
| 25 // Resource overrides. |
| 26 Font* AsFont() { return this; } |
| 27 |
| 28 // PPB_Font implementation. |
| 29 bool GetFontTable(uint32_t table, |
| 30 void* output, |
| 31 uint32_t* output_length); |
| 32 |
| 33 private: |
| 34 int fd_; |
| 35 }; |
| 36 |
| 37 } // namespace pepper |
| 38 |
| 39 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_FONT_H_ |
OLD | NEW |