| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // Put methods here that are required due to sandbox restrictions. | 43 // Put methods here that are required due to sandbox restrictions. |
| 44 // These are currently only implemented only on Linux: | 44 // These are currently only implemented only on Linux: |
| 45 // https://code.google.com/p/chromium/wiki/LinuxSandboxIPC | 45 // https://code.google.com/p/chromium/wiki/LinuxSandboxIPC |
| 46 class WebSandboxSupport { | 46 class WebSandboxSupport { |
| 47 public: | 47 public: |
| 48 // Get information to instantiate a font which contains glyphs for the given
Unicode code-point. | 48 // Get information to instantiate a font which contains glyphs for the given
Unicode code-point. |
| 49 // character: a UTF-32 codepoint | 49 // character: a UTF-32 codepoint |
| 50 // preferredLocale: preferred locale identifier for the |characters| | 50 // preferredLocale: preferred locale identifier for the |characters| |
| 51 // (e.g. "en", "ja", "zh-CN") | 51 // (e.g. "en", "ja", "zh-CN") |
| 52 // | 52 // |
| 53 // Returns a WebFontFamily instance with the font name. The instance has emp
ty font name if the request cannot be satisfied. | 53 // Returns a WebFallbackFont instance with the font name and filename. |
| 54 virtual void getFontFamilyForCharacter(WebUChar32, const char* preferredLoca
le, WebFontFamily*) = 0; | 54 // The instance has empty font name if the request cannot be satisfied. |
| 55 | 55 virtual void getFallbackFontForCharacter(WebUChar32, const char* preferredLo
cale, WebFallbackFont*) = 0; |
| 56 // TODO(dro): crbug.com/382411 Add a new version on the Chromium side to com
plete | |
| 57 // the WebFontFamily->WebFallbackFont rename, like | |
| 58 // virtual void getFallbackFontForCharacter(WebUChar32, const char* preferre
dLocale, WebFallbackFont*) = 0; | |
| 59 // then add it here. | |
| 60 | 56 |
| 61 virtual void getRenderStyleForStrike(const char* family, int sizeAndStyle, W
ebFontRenderStyle*) = 0; | 57 virtual void getRenderStyleForStrike(const char* family, int sizeAndStyle, W
ebFontRenderStyle*) = 0; |
| 62 }; | 58 }; |
| 63 | 59 |
| 64 } // namespace blink | 60 } // namespace blink |
| 65 | 61 |
| 66 #endif | 62 #endif |
| OLD | NEW |