| 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 WEBKIT_GLUE_PLUGINS_PEPPER_FONT_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_FONT_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_FONT_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_FONT_H_ |
| 7 | 7 |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 11 #include "third_party/ppapi/c/ppb_font.h" | 9 #include "third_party/ppapi/c/ppb_font.h" |
| 12 #include "webkit/glue/plugins/pepper_resource.h" | 10 #include "webkit/glue/plugins/pepper_resource.h" |
| 13 | 11 |
| 14 namespace WebKit { | 12 namespace WebKit { |
| 15 class WebFont; | 13 class WebFont; |
| 16 } | 14 } |
| 17 | 15 |
| 18 namespace pepper { | 16 namespace pepper { |
| 19 | 17 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 46 int32_t PixelOffsetForCharacter(const PP_TextRun* text, | 44 int32_t PixelOffsetForCharacter(const PP_TextRun* text, |
| 47 uint32_t char_offset); | 45 uint32_t char_offset); |
| 48 | 46 |
| 49 private: | 47 private: |
| 50 scoped_ptr<WebKit::WebFont> font_; | 48 scoped_ptr<WebKit::WebFont> font_; |
| 51 }; | 49 }; |
| 52 | 50 |
| 53 } // namespace pepper | 51 } // namespace pepper |
| 54 | 52 |
| 55 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_FONT_H_ | 53 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_FONT_H_ |
| OLD | NEW |