| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_CHILD_BROWSER_FONT_RESOURCE_TRUSTED_H_ | 5 #ifndef CONTENT_CHILD_BROWSER_FONT_RESOURCE_TRUSTED_H_ |
| 6 #define CONTENT_CHILD_BROWSER_FONT_RESOURCE_TRUSTED_H_ | 6 #define CONTENT_CHILD_BROWSER_FONT_RESOURCE_TRUSTED_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 uint32_t char_offset) override; | 58 uint32_t char_offset) override; |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 ~BrowserFontResource_Trusted() override; | 61 ~BrowserFontResource_Trusted() override; |
| 62 | 62 |
| 63 // Internal version of DrawTextAt that takes a mapped PlatformCanvas. | 63 // Internal version of DrawTextAt that takes a mapped PlatformCanvas. |
| 64 void DrawTextToCanvas(SkCanvas* destination, | 64 void DrawTextToCanvas(SkCanvas* destination, |
| 65 const PP_BrowserFont_Trusted_TextRun& text, | 65 const PP_BrowserFont_Trusted_TextRun& text, |
| 66 const PP_Point* position, | 66 const PP_Point* position, |
| 67 uint32_t color, | 67 uint32_t color, |
| 68 const PP_Rect* clip, | 68 const PP_Rect* clip); |
| 69 PP_Bool image_data_is_opaque); | |
| 70 | 69 |
| 71 private: | 70 private: |
| 72 scoped_ptr<blink::WebFont> font_; | 71 scoped_ptr<blink::WebFont> font_; |
| 73 | 72 |
| 74 DISALLOW_COPY_AND_ASSIGN(BrowserFontResource_Trusted); | 73 DISALLOW_COPY_AND_ASSIGN(BrowserFontResource_Trusted); |
| 75 }; | 74 }; |
| 76 | 75 |
| 77 } // namespace content | 76 } // namespace content |
| 78 | 77 |
| 79 #endif // CONTENT_CHILD_BROWSER_FONT_RESOURCE_TRUSTED_H_ | 78 #endif // CONTENT_CHILD_BROWSER_FONT_RESOURCE_TRUSTED_H_ |
| OLD | NEW |