| 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_COMMON_MAC_FONT_LOADER_H_ | 5 #ifndef CONTENT_COMMON_MAC_FONT_LOADER_H_ |
| 6 #define CONTENT_COMMON_MAC_FONT_LOADER_H_ | 6 #define CONTENT_COMMON_MAC_FONT_LOADER_H_ |
| 7 | 7 |
| 8 #include <ApplicationServices/ApplicationServices.h> | 8 #include <ApplicationServices/ApplicationServices.h> |
| 9 | 9 |
| 10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // returns true on success, false on failure. | 58 // returns true on success, false on failure. |
| 59 // |out| - A CGFontRef corresponding to the designated font. | 59 // |out| - A CGFontRef corresponding to the designated font. |
| 60 // The caller is responsible for releasing this value via CGFontRelease() | 60 // The caller is responsible for releasing this value via CGFontRelease() |
| 61 // when done. | 61 // when done. |
| 62 CONTENT_EXPORT | 62 CONTENT_EXPORT |
| 63 static bool CGFontRefFromBuffer(base::SharedMemoryHandle font_data, | 63 static bool CGFontRefFromBuffer(base::SharedMemoryHandle font_data, |
| 64 uint32 font_data_size, | 64 uint32 font_data_size, |
| 65 CGFontRef* out); | 65 CGFontRef* out); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 #endif // CONTENT_COMMON_MAC_FONT_LOADER_H_ | 68 #endif // CONTENT_COMMON_MAC_FONT_LOADER_H_ |
| OLD | NEW |