OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 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 15 matching lines...) Expand all Loading... |
26 #ifndef FontFeatureSettings_h | 26 #ifndef FontFeatureSettings_h |
27 #define FontFeatureSettings_h | 27 #define FontFeatureSettings_h |
28 | 28 |
29 #include "platform/PlatformExport.h" | 29 #include "platform/PlatformExport.h" |
30 #include "wtf/PassRefPtr.h" | 30 #include "wtf/PassRefPtr.h" |
31 #include "wtf/RefCounted.h" | 31 #include "wtf/RefCounted.h" |
32 #include "wtf/RefPtr.h" | 32 #include "wtf/RefPtr.h" |
33 #include "wtf/Vector.h" | 33 #include "wtf/Vector.h" |
34 #include "wtf/text/AtomicString.h" | 34 #include "wtf/text/AtomicString.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace blink { |
37 | 37 |
38 class PLATFORM_EXPORT FontFeature { | 38 class PLATFORM_EXPORT FontFeature { |
39 public: | 39 public: |
40 FontFeature(const AtomicString& tag, int value); | 40 FontFeature(const AtomicString& tag, int value); |
41 bool operator==(const FontFeature&); | 41 bool operator==(const FontFeature&); |
42 | 42 |
43 const AtomicString& tag() const { return m_tag; } | 43 const AtomicString& tag() const { return m_tag; } |
44 int value() const { return m_value; } | 44 int value() const { return m_value; } |
45 | 45 |
46 private: | 46 private: |
(...skipping 13 matching lines...) Expand all Loading... |
60 const FontFeature& at(size_t index) const { return m_list.at(index); } | 60 const FontFeature& at(size_t index) const { return m_list.at(index); } |
61 | 61 |
62 private: | 62 private: |
63 FontFeatureSettings(); | 63 FontFeatureSettings(); |
64 Vector<FontFeature> m_list; | 64 Vector<FontFeature> m_list; |
65 }; | 65 }; |
66 | 66 |
67 } | 67 } |
68 | 68 |
69 #endif // FontFeatureSettings_h | 69 #endif // FontFeatureSettings_h |
OLD | NEW |