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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 class Page; | 43 class Page; |
44 | 44 |
45 enum EditableLinkBehavior { | 45 enum EditableLinkBehavior { |
46 EditableLinkDefaultBehavior, | 46 EditableLinkDefaultBehavior, |
47 EditableLinkAlwaysLive, | 47 EditableLinkAlwaysLive, |
48 EditableLinkOnlyLiveWithShiftKey, | 48 EditableLinkOnlyLiveWithShiftKey, |
49 EditableLinkLiveWhenNotFocused, | 49 EditableLinkLiveWhenNotFocused, |
50 EditableLinkNeverLive | 50 EditableLinkNeverLive |
51 }; | 51 }; |
52 | 52 |
53 enum TextDirectionSubmenuInclusionBehavior { | |
54 TextDirectionSubmenuNeverIncluded, | |
55 TextDirectionSubmenuAutomaticallyIncluded, | |
56 TextDirectionSubmenuAlwaysIncluded | |
57 }; | |
58 | |
59 // UScriptCode uses -1 and 0 for UScriptInvalidCode and UScriptCommon. | 53 // UScriptCode uses -1 and 0 for UScriptInvalidCode and UScriptCommon. |
60 // We need to use -2 and -3 for empty value and deleted value. | 54 // We need to use -2 and -3 for empty value and deleted value. |
61 struct UScriptCodeHashTraits : WTF::GenericHashTraits<int> { | 55 struct UScriptCodeHashTraits : WTF::GenericHashTraits<int> { |
62 static const bool emptyValueIsZero = false; | 56 static const bool emptyValueIsZero = false; |
63 static int emptyValue() { return -2; } | 57 static int emptyValue() { return -2; } |
64 static void constructDeletedValue(int& slot) { slot = -3; } | 58 static void constructDeletedValue(int& slot) { slot = -3; } |
65 static bool isDeletedValue(int value) { return value == -3; } | 59 static bool isDeletedValue(int value) { return value == -3; } |
66 }; | 60 }; |
67 | 61 |
68 typedef HashMap<int, AtomicString, DefaultHash<int>::Hash, UScriptCodeHashTraits
> ScriptFontFamilyMap; | 62 typedef HashMap<int, AtomicString, DefaultHash<int>::Hash, UScriptCodeHashTraits
> ScriptFontFamilyMap; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 Timer<Settings> m_setImageLoadingSettingsTimer; | 192 Timer<Settings> m_setImageLoadingSettingsTimer; |
199 void imageLoadingSettingsTimerFired(Timer<Settings>*); | 193 void imageLoadingSettingsTimerFired(Timer<Settings>*); |
200 | 194 |
201 static bool gMockScrollbarsEnabled; | 195 static bool gMockScrollbarsEnabled; |
202 static bool gUsesOverlayScrollbars; | 196 static bool gUsesOverlayScrollbars; |
203 }; | 197 }; |
204 | 198 |
205 } // namespace WebCore | 199 } // namespace WebCore |
206 | 200 |
207 #endif // Settings_h | 201 #endif // Settings_h |
OLD | NEW |