OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights
reserved. |
3 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 3 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 EditableLinkLiveWhenNotFocused, | 46 EditableLinkLiveWhenNotFocused, |
47 EditableLinkNeverLive | 47 EditableLinkNeverLive |
48 }; | 48 }; |
49 | 49 |
50 class Settings { | 50 class Settings { |
51 WTF_MAKE_NONCOPYABLE(Settings); WTF_MAKE_FAST_ALLOCATED; | 51 WTF_MAKE_NONCOPYABLE(Settings); WTF_MAKE_FAST_ALLOCATED; |
52 public: | 52 public: |
53 static PassOwnPtr<Settings> create(); | 53 static PassOwnPtr<Settings> create(); |
54 | 54 |
55 GenericFontFamilySettings& genericFontFamilySettings() { return m_genericFon
tFamilySettings; } | 55 GenericFontFamilySettings& genericFontFamilySettings() { return m_genericFon
tFamilySettings; } |
| 56 void notifyGenericFontFamilyChange() { invalidate(SettingsDelegate::FontFami
lyChange); } |
56 | 57 |
57 void setTextAutosizingEnabled(bool); | 58 void setTextAutosizingEnabled(bool); |
58 bool textAutosizingEnabled() const { return m_textAutosizingEnabled; } | 59 bool textAutosizingEnabled() const { return m_textAutosizingEnabled; } |
59 | 60 |
60 // Only set by Layout Tests, and only used if textAutosizingEnabled() return
s true. | 61 // Only set by Layout Tests, and only used if textAutosizingEnabled() return
s true. |
61 void setTextAutosizingWindowSizeOverride(const IntSize&); | 62 void setTextAutosizingWindowSizeOverride(const IntSize&); |
62 const IntSize& textAutosizingWindowSizeOverride() const { return m_textAutos
izingWindowSizeOverride; } | 63 const IntSize& textAutosizingWindowSizeOverride() const { return m_textAutos
izingWindowSizeOverride; } |
63 | 64 |
64 SETTINGS_GETTERS_AND_SETTERS | 65 SETTINGS_GETTERS_AND_SETTERS |
65 | 66 |
(...skipping 19 matching lines...) Expand all Loading... |
85 bool m_openGLMultisamplingEnabled : 1; | 86 bool m_openGLMultisamplingEnabled : 1; |
86 IntSize m_textAutosizingWindowSizeOverride; | 87 IntSize m_textAutosizingWindowSizeOverride; |
87 bool m_textAutosizingEnabled : 1; | 88 bool m_textAutosizingEnabled : 1; |
88 | 89 |
89 SETTINGS_MEMBER_VARIABLES | 90 SETTINGS_MEMBER_VARIABLES |
90 }; | 91 }; |
91 | 92 |
92 } // namespace WebCore | 93 } // namespace WebCore |
93 | 94 |
94 #endif // Settings_h | 95 #endif // Settings_h |
OLD | NEW |