180bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru
280bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru/*
380bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru * Copyright 2006 The Android Open Source Project
480bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru *
580bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru * Use of this source code is governed by a BSD-style license that can be
680bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru * found in the LICENSE file.
780bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru */
880bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru
980bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru
1080bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru#ifndef SkSystemEventTypes_DEFINED
1180bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru#define SkSystemEventTypes_DEFINED
1280bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru
1380bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru/*
1480bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru    The goal of these strings is two-fold:
1580bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru    1) make funny strings (containing at least one char < 32) to avoid colliding with "user" strings
1680bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru    2) keep them <= 4 bytes, so we can avoid an allocation in SkEvent::setType()
1780bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru*/
1880bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru#define SK_EventType_Delay      "\xd" "lay"
1980bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru#define SK_EventType_Inval      "nv" "\xa" "l"
2080bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru#define SK_EventType_Key        "key" "\x1"
2180bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru#define SK_EventType_OnEnd "on" "\xe" "n"
2280bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru#define SK_EventType_Unichar    "\xc" "har"
2380bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru#define SK_EventType_KeyUp      "key" "\xf"
2480bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru
2580bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru#endif
26