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

Side by Side Diff: Source/platform/fonts/mac/MemoryActivatedFont.h

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « Source/platform/fonts/mac/FontMac.cpp ('k') | Source/platform/fonts/mac/MemoryActivatedFont.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 (c) 2010 Google Inc. All rights reserved. 2 * Copyright (c) 2010 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 19 matching lines...) Expand all
30 30
31 #ifndef MemoryActivatedFont_h 31 #ifndef MemoryActivatedFont_h
32 #define MemoryActivatedFont_h 32 #define MemoryActivatedFont_h
33 33
34 #import <wtf/RefCounted.h> 34 #import <wtf/RefCounted.h>
35 #import <wtf/RetainPtr.h> 35 #import <wtf/RetainPtr.h>
36 #import <wtf/text/WTFString.h> 36 #import <wtf/text/WTFString.h>
37 37
38 typedef struct CGFont* CGFontRef; 38 typedef struct CGFont* CGFontRef;
39 39
40 namespace WebCore { 40 namespace blink {
41 41
42 // MemoryActivatedFont encapsulates a font loaded from another process and 42 // MemoryActivatedFont encapsulates a font loaded from another process and
43 // activated from memory. 43 // activated from memory.
44 // 44 //
45 // Responsibilities: 45 // Responsibilities:
46 // * Holder for the CGFontRef & ATSFontRef belonging to the activated font. 46 // * Holder for the CGFontRef & ATSFontRef belonging to the activated font.
47 // * Responsible for unloading the font container when done. 47 // * Responsible for unloading the font container when done.
48 // 48 //
49 // Memory Management: 49 // Memory Management:
50 // The class is reference counted, with each instance of FontPlatformData that 50 // The class is reference counted, with each instance of FontPlatformData that
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // load in-process. 83 // load in-process.
84 // container - a font container corresponding to an identical font that 84 // container - a font container corresponding to an identical font that
85 // we loaded cross-process. 85 // we loaded cross-process.
86 MemoryActivatedFont(uint32_t fontID, NSFont*, CGFontRef); 86 MemoryActivatedFont(uint32_t fontID, NSFont*, CGFontRef);
87 87
88 WTF::RetainPtr<CGFontRef> m_cgFont; 88 WTF::RetainPtr<CGFontRef> m_cgFont;
89 uint32_t m_fontID; 89 uint32_t m_fontID;
90 WTF::String m_inSandboxHashKey; 90 WTF::String m_inSandboxHashKey;
91 }; 91 };
92 92
93 } // namespace WebCore 93 } // namespace blink
94 94
95 #endif // MemoryActivatedFont_h 95 #endif // MemoryActivatedFont_h
OLDNEW
« no previous file with comments | « Source/platform/fonts/mac/FontMac.cpp ('k') | Source/platform/fonts/mac/MemoryActivatedFont.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698