Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
michael@0 | 1 | |
michael@0 | 2 | /* |
michael@0 | 3 | * Copyright 2006 The Android Open Source Project |
michael@0 | 4 | * |
michael@0 | 5 | * Use of this source code is governed by a BSD-style license that can be |
michael@0 | 6 | * found in the LICENSE file. |
michael@0 | 7 | */ |
michael@0 | 8 | |
michael@0 | 9 | |
michael@0 | 10 | #ifndef SkKey_DEFINED |
michael@0 | 11 | #define SkKey_DEFINED |
michael@0 | 12 | |
michael@0 | 13 | #include "SkTypes.h" |
michael@0 | 14 | |
michael@0 | 15 | enum SkKey { |
michael@0 | 16 | //reordering these to match android.app.KeyEvent |
michael@0 | 17 | kNONE_SkKey, //corresponds to android's UNKNOWN |
michael@0 | 18 | |
michael@0 | 19 | kLeftSoftKey_SkKey, |
michael@0 | 20 | kRightSoftKey_SkKey, |
michael@0 | 21 | |
michael@0 | 22 | kHome_SkKey, //!< the home key - added to match android |
michael@0 | 23 | kBack_SkKey, //!< (CLR) |
michael@0 | 24 | kSend_SkKey, //!< the green (talk) key |
michael@0 | 25 | kEnd_SkKey, //!< the red key |
michael@0 | 26 | |
michael@0 | 27 | k0_SkKey, |
michael@0 | 28 | k1_SkKey, |
michael@0 | 29 | k2_SkKey, |
michael@0 | 30 | k3_SkKey, |
michael@0 | 31 | k4_SkKey, |
michael@0 | 32 | k5_SkKey, |
michael@0 | 33 | k6_SkKey, |
michael@0 | 34 | k7_SkKey, |
michael@0 | 35 | k8_SkKey, |
michael@0 | 36 | k9_SkKey, |
michael@0 | 37 | kStar_SkKey, //!< the * key |
michael@0 | 38 | kHash_SkKey, //!< the # key |
michael@0 | 39 | |
michael@0 | 40 | kUp_SkKey, |
michael@0 | 41 | kDown_SkKey, |
michael@0 | 42 | kLeft_SkKey, |
michael@0 | 43 | kRight_SkKey, |
michael@0 | 44 | |
michael@0 | 45 | kOK_SkKey, //!< the center key |
michael@0 | 46 | |
michael@0 | 47 | kVolUp_SkKey, //!< volume up - match android |
michael@0 | 48 | kVolDown_SkKey, //!< volume down - same |
michael@0 | 49 | kPower_SkKey, //!< power button - same |
michael@0 | 50 | kCamera_SkKey, //!< camera - same |
michael@0 | 51 | |
michael@0 | 52 | kSkKeyCount |
michael@0 | 53 | }; |
michael@0 | 54 | |
michael@0 | 55 | enum SkModifierKeys { |
michael@0 | 56 | kShift_SkModifierKey = 1 << 0, |
michael@0 | 57 | kControl_SkModifierKey = 1 << 1, |
michael@0 | 58 | kOption_SkModifierKey = 1 << 2, // same as ALT |
michael@0 | 59 | kCommand_SkModifierKey = 1 << 3, |
michael@0 | 60 | }; |
michael@0 | 61 | |
michael@0 | 62 | #endif |