gfx/skia/trunk/include/views/SkKey.h

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

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.

     2 /*
     3  * Copyright 2006 The Android Open Source Project
     4  *
     5  * Use of this source code is governed by a BSD-style license that can be
     6  * found in the LICENSE file.
     7  */
    10 #ifndef SkKey_DEFINED
    11 #define SkKey_DEFINED
    13 #include "SkTypes.h"
    15 enum SkKey {
    16     //reordering these to match android.app.KeyEvent
    17     kNONE_SkKey,    //corresponds to android's UNKNOWN
    19     kLeftSoftKey_SkKey,
    20     kRightSoftKey_SkKey,
    22     kHome_SkKey,    //!< the home key - added to match android
    23     kBack_SkKey,    //!< (CLR)
    24     kSend_SkKey,    //!< the green (talk) key
    25     kEnd_SkKey,     //!< the red key
    27     k0_SkKey,
    28     k1_SkKey,
    29     k2_SkKey,
    30     k3_SkKey,
    31     k4_SkKey,
    32     k5_SkKey,
    33     k6_SkKey,
    34     k7_SkKey,
    35     k8_SkKey,
    36     k9_SkKey,
    37     kStar_SkKey,    //!< the * key
    38     kHash_SkKey,    //!< the # key
    40     kUp_SkKey,
    41     kDown_SkKey,
    42     kLeft_SkKey,
    43     kRight_SkKey,
    45     kOK_SkKey,      //!< the center key
    47     kVolUp_SkKey,   //!< volume up - match android
    48     kVolDown_SkKey, //!< volume down - same
    49     kPower_SkKey,   //!< power button - same
    50     kCamera_SkKey,  //!< camera         - same
    52     kSkKeyCount
    53 };
    55 enum SkModifierKeys {
    56     kShift_SkModifierKey    = 1 << 0,
    57     kControl_SkModifierKey  = 1 << 1,
    58     kOption_SkModifierKey   = 1 << 2,   // same as ALT
    59     kCommand_SkModifierKey  = 1 << 3,
    60 };
    62 #endif

mercurial