| 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 - rather, it's available |
| 63 // pointer devices that we expect the user to use. |
| 64 // e.g. Primary pointer may be set to PointerDeviceMouse even though the |
| 65 // device has a mouse and a touch screen. |
| 66 // Note: PointerDeviceNone is mutually exclusive with other flags |
| 67 // PointerDeviceUnknown is not actually a flag |
| 68 enum PointerDevice { |
| 69 PointerDeviceUnknown = 0, |
| 70 PointerDeviceMouse = 1, |
| 71 PointerDeviceTouch = 2, |
| 72 PointerDeviceNone = 4 |
| 73 }; |
| 74 |
| 60 // UScriptCode uses -1 and 0 for UScriptInvalidCode and UScriptCommon. | 75 // UScriptCode uses -1 and 0 for UScriptInvalidCode and UScriptCommon. |
| 61 // We need to use -2 and -3 for empty value and deleted value. | 76 // We need to use -2 and -3 for empty value and deleted value. |
| 62 struct UScriptCodeHashTraits : WTF::GenericHashTraits<int> { | 77 struct UScriptCodeHashTraits : WTF::GenericHashTraits<int> { |
| 63 static const bool emptyValueIsZero = false; | 78 static const bool emptyValueIsZero = false; |
| 64 static int emptyValue() { return -2; } | 79 static int emptyValue() { return -2; } |
| 65 static void constructDeletedValue(int& slot) { slot = -3; } | 80 static void constructDeletedValue(int& slot) { slot = -3; } |
| 66 static bool isDeletedValue(int value) { return value == -3; } | 81 static bool isDeletedValue(int value) { return value == -3; } |
| 67 }; | 82 }; |
| 68 | 83 |
| 69 typedef HashMap<int, AtomicString, DefaultHash<int>::Hash, UScriptCodeHashTr
aits> ScriptFontFamilyMap; | 84 typedef HashMap<int, AtomicString, DefaultHash<int>::Hash, UScriptCodeHashTr
aits> ScriptFontFamilyMap; |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 #if USE(SAFARI_THEME) | 300 #if USE(SAFARI_THEME) |
| 286 static bool gShouldPaintNativeControls; | 301 static bool gShouldPaintNativeControls; |
| 287 #endif | 302 #endif |
| 288 | 303 |
| 289 static double gHiddenPageDOMTimerAlignmentInterval; | 304 static double gHiddenPageDOMTimerAlignmentInterval; |
| 290 }; | 305 }; |
| 291 | 306 |
| 292 } // namespace WebCore | 307 } // namespace WebCore |
| 293 | 308 |
| 294 #endif // Settings_h | 309 #endif // Settings_h |
| OLD | NEW |