Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: Source/core/platform/mac/WebCoreSystemInterface.h

Issue 14865002: Draw the caps lock indicator manually, rather than using WKDrawCapsLockIndicator. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comments Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/rendering/RenderThemeChromiumMac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright 2006, 2007, 2008, 2009, 2010 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 12 matching lines...) Expand all
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef WebCoreSystemInterface_h 26 #ifndef WebCoreSystemInterface_h
27 #define WebCoreSystemInterface_h 27 #define WebCoreSystemInterface_h
28 28
29 #include <objc/objc.h> 29 #include <objc/objc.h>
30 30
31 typedef const struct __CFDictionary * CFDictionaryRef; 31 typedef const struct __CFDictionary * CFDictionaryRef;
32 typedef struct CGSize CGSize; 32 typedef struct CGSize CGSize;
33 typedef struct CGRect CGRect;
34 typedef struct CGAffineTransform CGAffineTransform; 33 typedef struct CGAffineTransform CGAffineTransform;
35 typedef struct CGContext *CGContextRef;
36 typedef struct CGFont *CGFontRef; 34 typedef struct CGFont *CGFontRef;
37 typedef unsigned short CGGlyph; 35 typedef unsigned short CGGlyph;
38 36
39 typedef const struct __CTFont * CTFontRef; 37 typedef const struct __CTFont * CTFontRef;
40 typedef const struct __CTLine * CTLineRef; 38 typedef const struct __CTLine * CTLineRef;
41 typedef struct _NSRange NSRange; 39 typedef struct _NSRange NSRange;
42 40
43 typedef UInt16 ATSGlyphRef; 41 typedef UInt16 ATSGlyphRef;
44 42
45 OBJC_CLASS NSFont; 43 OBJC_CLASS NSFont;
46 OBJC_CLASS NSString; 44 OBJC_CLASS NSString;
47 45
48 extern "C" { 46 extern "C" {
49 47
50 extern void WKDrawCapsLockIndicator(CGContextRef, CGRect);
51 extern NSFont* WKGetFontInLanguageForRange(NSFont*, NSString*, NSRange); 48 extern NSFont* WKGetFontInLanguageForRange(NSFont*, NSString*, NSRange);
52 extern NSFont* WKGetFontInLanguageForCharacter(NSFont*, UniChar); 49 extern NSFont* WKGetFontInLanguageForCharacter(NSFont*, UniChar);
53 extern BOOL WKGetGlyphTransformedAdvances(CGFontRef, NSFont*, CGAffineTransform* , ATSGlyphRef*, CGSize* advance); 50 extern BOOL WKGetGlyphTransformedAdvances(CGFontRef, NSFont*, CGAffineTransform* , ATSGlyphRef*, CGSize* advance);
54 extern bool WKGetVerticalGlyphsForCharacters(CTFontRef, const UniChar[], CGGlyph [], size_t); 51 extern bool WKGetVerticalGlyphsForCharacters(CTFontRef, const UniChar[], CGGlyph [], size_t);
55 extern CTLineRef WKCreateCTLineWithUniCharProvider(const UniChar* (*provide)(CFI ndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*); 52 extern CTLineRef WKCreateCTLineWithUniCharProvider(const UniChar* (*provide)(CFI ndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*);
56 53
57 } // extern "C" 54 } // extern "C"
58 55
59 #endif 56 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderThemeChromiumMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698