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

Side by Side Diff: Source/platform/fonts/FontSelector.h

Issue 48113009: Move Font related classes to Source/platform/fonts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add two more Font related independent files Created 7 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 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 18 matching lines...) Expand all
29 #include "wtf/Forward.h" 29 #include "wtf/Forward.h"
30 #include "wtf/PassRefPtr.h" 30 #include "wtf/PassRefPtr.h"
31 #include "wtf/RefCounted.h" 31 #include "wtf/RefCounted.h"
32 32
33 namespace WebCore { 33 namespace WebCore {
34 34
35 class FontData; 35 class FontData;
36 class FontDescription; 36 class FontDescription;
37 class FontSelectorClient; 37 class FontSelectorClient;
38 38
39 class FontSelector : public RefCounted<FontSelector> { 39 class PLATFORM_EXPORT FontSelector : public RefCounted<FontSelector> {
abarth-chromium 2013/10/29 05:26:35 Again, this class is entirely inline. If you need
rwlbuis 2013/10/29 18:38:00 I'll try without the export first.
40 public: 40 public:
41 virtual ~FontSelector() { } 41 virtual ~FontSelector() { }
42 virtual PassRefPtr<FontData> getFontData(const FontDescription&, const Atomi cString& familyName) = 0; 42 virtual PassRefPtr<FontData> getFontData(const FontDescription&, const Atomi cString& familyName) = 0;
43 virtual void willUseFontData(const FontDescription&, const AtomicString& fam ilyName) = 0; 43 virtual void willUseFontData(const FontDescription&, const AtomicString& fam ilyName) = 0;
44 44
45 virtual void fontCacheInvalidated() { } 45 virtual void fontCacheInvalidated() { }
46 46
47 virtual void registerForInvalidationCallbacks(FontSelectorClient*) = 0; 47 virtual void registerForInvalidationCallbacks(FontSelectorClient*) = 0;
48 virtual void unregisterForInvalidationCallbacks(FontSelectorClient*) = 0; 48 virtual void unregisterForInvalidationCallbacks(FontSelectorClient*) = 0;
49 49
50 virtual unsigned version() const = 0; 50 virtual unsigned version() const = 0;
51 }; 51 };
52 52
53 class FontSelectorClient { 53 class PLATFORM_EXPORT FontSelectorClient {
abarth-chromium 2013/10/29 05:26:35 ditto
rwlbuis 2013/10/29 18:38:00 ditto :)
54 public: 54 public:
55 virtual ~FontSelectorClient() { } 55 virtual ~FontSelectorClient() { }
56 56
57 virtual void fontsNeedUpdate(FontSelector*) = 0; 57 virtual void fontsNeedUpdate(FontSelector*) = 0;
58 }; 58 };
59 59
60 } // namespace WebCore 60 } // namespace WebCore
61 61
62 #endif // FontSelector_h 62 #endif // FontSelector_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698