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 CHROME_COMMON_FONT_LOADER_MAC_H_ | 5 #ifndef CHROME_COMMON_FONT_LOADER_MAC_H_ |
6 #define CHROME_COMMON_FONT_LOADER_MAC_H_ | 6 #define CHROME_COMMON_FONT_LOADER_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <ApplicationServices/ApplicationServices.h> | 9 #include <ApplicationServices/ApplicationServices.h> |
10 | 10 |
11 #include "base/shared_memory.h" | 11 #include "base/shared_memory.h" |
12 #include "base/string16.h" | |
13 | 12 |
14 #ifdef __OBJC__ | 13 #ifdef __OBJC__ |
15 @class NSFont; | 14 @class NSFont; |
16 #else | 15 #else |
17 class NSFont; | 16 class NSFont; |
18 #endif | 17 #endif |
19 | 18 |
20 // Provides functionality to transmit fonts over IPC. | 19 // Provides functionality to transmit fonts over IPC. |
21 // | 20 // |
22 // Note about font formats: .dfont (datafork suitcase) fonts are currently not | 21 // Note about font formats: .dfont (datafork suitcase) fonts are currently not |
(...skipping 24 matching lines...) Expand all Loading... |
47 // returns true on success, false on failure. | 46 // returns true on success, false on failure. |
48 // |font_container| - A font container corresponding to the designated font. | 47 // |font_container| - A font container corresponding to the designated font. |
49 // The caller is responsible for releasing this value via ATSFontDeactivate() | 48 // The caller is responsible for releasing this value via ATSFontDeactivate() |
50 // when done | 49 // when done |
51 static bool ATSFontContainerFromBuffer(base::SharedMemoryHandle font_data, | 50 static bool ATSFontContainerFromBuffer(base::SharedMemoryHandle font_data, |
52 uint32 font_data_size, | 51 uint32 font_data_size, |
53 ATSFontContainerRef* font_container); | 52 ATSFontContainerRef* font_container); |
54 }; | 53 }; |
55 | 54 |
56 #endif // CHROME_COMMON_FONT_LOADER_MAC_H_ | 55 #endif // CHROME_COMMON_FONT_LOADER_MAC_H_ |
OLD | NEW |