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

Side by Side Diff: sky/engine/core/css/CSSSegmentedFontFace.h

Issue 1223843003: Remove support for loading remote font faces (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/engine/core/css/CSSFontSelector.cpp ('k') | sky/engine/core/css/CSSSegmentedFontFace.cpp » ('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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 public: 47 public:
48 static PassRefPtr<CSSSegmentedFontFace> create(CSSFontSelector* selector, Fo ntTraits traits) 48 static PassRefPtr<CSSSegmentedFontFace> create(CSSFontSelector* selector, Fo ntTraits traits)
49 { 49 {
50 return adoptRef(new CSSSegmentedFontFace(selector, traits)); 50 return adoptRef(new CSSSegmentedFontFace(selector, traits));
51 } 51 }
52 ~CSSSegmentedFontFace(); 52 ~CSSSegmentedFontFace();
53 53
54 CSSFontSelector* fontSelector() const { return m_fontSelector; } 54 CSSFontSelector* fontSelector() const { return m_fontSelector; }
55 FontTraits traits() const { return m_traits; } 55 FontTraits traits() const { return m_traits; }
56 56
57 void fontLoaded(CSSFontFace*);
58 void fontLoadWaitLimitExceeded(CSSFontFace*);
59
60 void addFontFace(PassRefPtr<FontFace>, bool cssConnected); 57 void addFontFace(PassRefPtr<FontFace>, bool cssConnected);
61 void removeFontFace(PassRefPtr<FontFace>); 58 void removeFontFace(PassRefPtr<FontFace>);
62 bool isEmpty() const { return m_fontFaces.isEmpty(); } 59 bool isEmpty() const { return m_fontFaces.isEmpty(); }
63 60
64 PassRefPtr<FontData> getFontData(const FontDescription&); 61 PassRefPtr<FontData> getFontData(const FontDescription&);
65 62
66 bool checkFont(const String&) const; 63 bool checkFont(const String&) const;
67 void match(const String&, Vector<RefPtr<FontFace> >&) const; 64 void match(const String&, Vector<RefPtr<FontFace> >&) const;
68 void willUseFontData(const FontDescription&, UChar32); 65 void willUseFontData(const FontDescription&, UChar32);
69 66
(...skipping 11 matching lines...) Expand all
81 FontTraits m_traits; 78 FontTraits m_traits;
82 HashMap<unsigned, RefPtr<SegmentedFontData> > m_fontDataTable; 79 HashMap<unsigned, RefPtr<SegmentedFontData> > m_fontDataTable;
83 // All non-CSS-connected FontFaces are stored after the CSS-connected ones. 80 // All non-CSS-connected FontFaces are stored after the CSS-connected ones.
84 FontFaceList m_fontFaces; 81 FontFaceList m_fontFaces;
85 FontFaceList::iterator m_firstNonCssConnectedFace; 82 FontFaceList::iterator m_firstNonCssConnectedFace;
86 }; 83 };
87 84
88 } // namespace blink 85 } // namespace blink
89 86
90 #endif // SKY_ENGINE_CORE_CSS_CSSSEGMENTEDFONTFACE_H_ 87 #endif // SKY_ENGINE_CORE_CSS_CSSSEGMENTEDFONTFACE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSFontSelector.cpp ('k') | sky/engine/core/css/CSSSegmentedFontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698