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

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

Issue 14574002: Replace some trivial WebKitSystemInterface wrappers with direct calls to SPI. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Radar links 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
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 24 matching lines...) Expand all
35 typedef struct CGContext *CGContextRef; 35 typedef struct CGContext *CGContextRef;
36 typedef struct CGFont *CGFontRef; 36 typedef struct CGFont *CGFontRef;
37 typedef unsigned short CGGlyph; 37 typedef unsigned short CGGlyph;
38 38
39 typedef const struct __CTFont * CTFontRef; 39 typedef const struct __CTFont * CTFontRef;
40 typedef const struct __CTLine * CTLineRef; 40 typedef const struct __CTLine * CTLineRef;
41 typedef struct _NSRange NSRange; 41 typedef struct _NSRange NSRange;
42 42
43 typedef UInt16 ATSGlyphRef; 43 typedef UInt16 ATSGlyphRef;
44 44
45 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES
46 typedef struct CGPoint NSPoint;
47 typedef struct CGRect NSRect;
48 #else
49 typedef struct _NSPoint NSPoint;
50 typedef struct _NSRect NSRect;
51 #endif
52
53 OBJC_CLASS NSFont; 45 OBJC_CLASS NSFont;
54 OBJC_CLASS NSString; 46 OBJC_CLASS NSString;
55 47
56 extern "C" { 48 extern "C" {
57 49
58 extern void WKDrawBezeledTextFieldCell(NSRect, BOOL enabled);
59 extern void WKDrawCapsLockIndicator(CGContextRef, CGRect); 50 extern void WKDrawCapsLockIndicator(CGContextRef, CGRect);
60 extern void WKDrawBezeledTextArea(NSRect, BOOL enabled);
61 extern NSFont* WKGetFontInLanguageForRange(NSFont*, NSString*, NSRange); 51 extern NSFont* WKGetFontInLanguageForRange(NSFont*, NSString*, NSRange);
62 extern NSFont* WKGetFontInLanguageForCharacter(NSFont*, UniChar); 52 extern NSFont* WKGetFontInLanguageForCharacter(NSFont*, UniChar);
63 extern BOOL WKGetGlyphTransformedAdvances(CGFontRef, NSFont*, CGAffineTransform* , ATSGlyphRef*, CGSize* advance); 53 extern BOOL WKGetGlyphTransformedAdvances(CGFontRef, NSFont*, CGAffineTransform* , ATSGlyphRef*, CGSize* advance);
64 extern void WKSetUpFontCache();
65 extern void WKGetGlyphsForCharacters(CGFontRef, const UniChar[], CGGlyph[], size _t);
66 extern bool WKGetVerticalGlyphsForCharacters(CTFontRef, const UniChar[], CGGlyph [], size_t); 54 extern bool WKGetVerticalGlyphsForCharacters(CTFontRef, const UniChar[], CGGlyph [], size_t);
67 extern CTLineRef WKCreateCTLineWithUniCharProvider(const UniChar* (*provide)(CFI ndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*); 55 extern CTLineRef WKCreateCTLineWithUniCharProvider(const UniChar* (*provide)(CFI ndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*);
68 56
69 } // extern "C" 57 } // extern "C"
70 58
71 #endif 59 #endif
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/mac/GlyphPageTreeNodeMac.cpp ('k') | Source/core/rendering/RenderThemeChromiumMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698