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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/include/views/SkKey.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,62 @@
     1.4 +
     1.5 +/*
     1.6 + * Copyright 2006 The Android Open Source Project
     1.7 + *
     1.8 + * Use of this source code is governed by a BSD-style license that can be
     1.9 + * found in the LICENSE file.
    1.10 + */
    1.11 +
    1.12 +
    1.13 +#ifndef SkKey_DEFINED
    1.14 +#define SkKey_DEFINED
    1.15 +
    1.16 +#include "SkTypes.h"
    1.17 +
    1.18 +enum SkKey {
    1.19 +    //reordering these to match android.app.KeyEvent
    1.20 +    kNONE_SkKey,    //corresponds to android's UNKNOWN
    1.21 +
    1.22 +    kLeftSoftKey_SkKey,
    1.23 +    kRightSoftKey_SkKey,
    1.24 +
    1.25 +    kHome_SkKey,    //!< the home key - added to match android
    1.26 +    kBack_SkKey,    //!< (CLR)
    1.27 +    kSend_SkKey,    //!< the green (talk) key
    1.28 +    kEnd_SkKey,     //!< the red key
    1.29 +
    1.30 +    k0_SkKey,
    1.31 +    k1_SkKey,
    1.32 +    k2_SkKey,
    1.33 +    k3_SkKey,
    1.34 +    k4_SkKey,
    1.35 +    k5_SkKey,
    1.36 +    k6_SkKey,
    1.37 +    k7_SkKey,
    1.38 +    k8_SkKey,
    1.39 +    k9_SkKey,
    1.40 +    kStar_SkKey,    //!< the * key
    1.41 +    kHash_SkKey,    //!< the # key
    1.42 +
    1.43 +    kUp_SkKey,
    1.44 +    kDown_SkKey,
    1.45 +    kLeft_SkKey,
    1.46 +    kRight_SkKey,
    1.47 +
    1.48 +    kOK_SkKey,      //!< the center key
    1.49 +
    1.50 +    kVolUp_SkKey,   //!< volume up - match android
    1.51 +    kVolDown_SkKey, //!< volume down - same
    1.52 +    kPower_SkKey,   //!< power button - same
    1.53 +    kCamera_SkKey,  //!< camera         - same
    1.54 +
    1.55 +    kSkKeyCount
    1.56 +};
    1.57 +
    1.58 +enum SkModifierKeys {
    1.59 +    kShift_SkModifierKey    = 1 << 0,
    1.60 +    kControl_SkModifierKey  = 1 << 1,
    1.61 +    kOption_SkModifierKey   = 1 << 2,   // same as ALT
    1.62 +    kCommand_SkModifierKey  = 1 << 3,
    1.63 +};
    1.64 +
    1.65 +#endif

mercurial