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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 EditableLinkLiveWhenNotFocused, | 50 EditableLinkLiveWhenNotFocused, |
51 EditableLinkNeverLive | 51 EditableLinkNeverLive |
52 }; | 52 }; |
53 | 53 |
54 enum TextDirectionSubmenuInclusionBehavior { | 54 enum TextDirectionSubmenuInclusionBehavior { |
55 TextDirectionSubmenuNeverIncluded, | 55 TextDirectionSubmenuNeverIncluded, |
56 TextDirectionSubmenuAutomaticallyIncluded, | 56 TextDirectionSubmenuAutomaticallyIncluded, |
57 TextDirectionSubmenuAlwaysIncluded | 57 TextDirectionSubmenuAlwaysIncluded |
58 }; | 58 }; |
59 | 59 |
| 60 // Enum bit flags for primary pointer device to tell Blink what kind of |
| 61 // input the user is primarily using. Note that it's not an exhaustive |
| 62 // list of what is available on the user's system. |
| 63 // e.g. Primary pointer may be set to PointerDeviceMouse even though the |
| 64 // device has a mouse and a touch screen. |
| 65 enum PointerDevice { |
| 66 PointerDeviceUnknown = 0, |
| 67 PointerDeviceMouse = 1, |
| 68 PointerDeviceTouch = 2, |
| 69 PointerDeviceNone = 4 |
| 70 }; |
| 71 |
60 // UScriptCode uses -1 and 0 for UScriptInvalidCode and UScriptCommon. | 72 // UScriptCode uses -1 and 0 for UScriptInvalidCode and UScriptCommon. |
61 // We need to use -2 and -3 for empty value and deleted value. | 73 // We need to use -2 and -3 for empty value and deleted value. |
62 struct UScriptCodeHashTraits : WTF::GenericHashTraits<int> { | 74 struct UScriptCodeHashTraits : WTF::GenericHashTraits<int> { |
63 static const bool emptyValueIsZero = false; | 75 static const bool emptyValueIsZero = false; |
64 static int emptyValue() { return -2; } | 76 static int emptyValue() { return -2; } |
65 static void constructDeletedValue(int& slot) { slot = -3; } | 77 static void constructDeletedValue(int& slot) { slot = -3; } |
66 static bool isDeletedValue(int value) { return value == -3; } | 78 static bool isDeletedValue(int value) { return value == -3; } |
67 }; | 79 }; |
68 | 80 |
69 typedef HashMap<int, AtomicString, DefaultHash<int>::Hash, UScriptCodeHashTr
aits> ScriptFontFamilyMap; | 81 typedef HashMap<int, AtomicString, DefaultHash<int>::Hash, UScriptCodeHashTr
aits> ScriptFontFamilyMap; |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 #if USE(SAFARI_THEME) | 303 #if USE(SAFARI_THEME) |
292 static bool gShouldPaintNativeControls; | 304 static bool gShouldPaintNativeControls; |
293 #endif | 305 #endif |
294 | 306 |
295 static double gHiddenPageDOMTimerAlignmentInterval; | 307 static double gHiddenPageDOMTimerAlignmentInterval; |
296 }; | 308 }; |
297 | 309 |
298 } // namespace WebCore | 310 } // namespace WebCore |
299 | 311 |
300 #endif // Settings_h | 312 #endif // Settings_h |
OLD | NEW |