Home | History | Annotate | Download | only in c
      1 /*
      2  * Copyright (C) 2010 Apple Inc. All rights reserved.
      3  *
      4  * Redistribution and use in source and binary forms, with or without
      5  * modification, are permitted provided that the following conditions
      6  * are met:
      7  * 1. Redistributions of source code must retain the above copyright
      8  *    notice, this list of conditions and the following disclaimer.
      9  * 2. Redistributions in binary form must reproduce the above copyright
     10  *    notice, this list of conditions and the following disclaimer in the
     11  *    documentation and/or other materials provided with the distribution.
     12  *
     13  * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
     14  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
     15  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     16  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
     17  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     18  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     19  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     20  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     21  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     22  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
     23  * THE POSSIBILITY OF SUCH DAMAGE.
     24  */
     25 
     26 #ifndef WKContextMenuItemTypes_h
     27 #define WKContextMenuItemTypes_h
     28 
     29 #ifdef __cplusplus
     30 extern "C" {
     31 #endif
     32 
     33 enum {
     34     kWKContextMenuItemTagNoAction = 0,
     35     kWKContextMenuItemTagOpenLinkInNewWindow,
     36     kWKContextMenuItemTagDownloadLinkToDisk,
     37     kWKContextMenuItemTagCopyLinkToClipboard,
     38     kWKContextMenuItemTagOpenImageInNewWindow,
     39     kWKContextMenuItemTagDownloadImageToDisk,
     40     kWKContextMenuItemTagCopyImageToClipboard,
     41     kWKContextMenuItemTagOpenFrameInNewWindow,
     42     kWKContextMenuItemTagCopy,
     43     kWKContextMenuItemTagGoBack,
     44     kWKContextMenuItemTagGoForward,
     45     kWKContextMenuItemTagStop,
     46     kWKContextMenuItemTagReload,
     47     kWKContextMenuItemTagCut,
     48     kWKContextMenuItemTagPaste,
     49     kWKContextMenuItemTagSpellingGuess,
     50     kWKContextMenuItemTagNoGuessesFound,
     51     kWKContextMenuItemTagIgnoreSpelling,
     52     kWKContextMenuItemTagLearnSpelling,
     53     kWKContextMenuItemTagOther,
     54     kWKContextMenuItemTagSearchInSpotlight,
     55     kWKContextMenuItemTagSearchWeb,
     56     kWKContextMenuItemTagLookUpInDictionary,
     57     kWKContextMenuItemTagOpenWithDefaultApplication,
     58     kWKContextMenuItemTagPDFActualSize,
     59     kWKContextMenuItemTagPDFZoomIn,
     60     kWKContextMenuItemTagPDFZoomOut,
     61     kWKContextMenuItemTagPDFAutoSize,
     62     kWKContextMenuItemTagPDFSinglePage,
     63     kWKContextMenuItemTagPDFFacingPages,
     64     kWKContextMenuItemTagPDFContinuous,
     65     kWKContextMenuItemTagPDFNextPage,
     66     kWKContextMenuItemTagPDFPreviousPage,
     67     kWKContextMenuItemTagOpenLink,
     68     kWKContextMenuItemTagIgnoreGrammar,
     69     kWKContextMenuItemTagSpellingMenu,
     70     kWKContextMenuItemTagShowSpellingPanel,
     71     kWKContextMenuItemTagCheckSpelling,
     72     kWKContextMenuItemTagCheckSpellingWhileTyping,
     73     kWKContextMenuItemTagCheckGrammarWithSpelling,
     74     kWKContextMenuItemTagFontMenu,
     75     kWKContextMenuItemTagShowFonts,
     76     kWKContextMenuItemTagBold,
     77     kWKContextMenuItemTagItalic,
     78     kWKContextMenuItemTagUnderline,
     79     kWKContextMenuItemTagOutline,
     80     kWKContextMenuItemTagStyles,
     81     kWKContextMenuItemTagShowColors,
     82     kWKContextMenuItemTagSpeechMenu,
     83     kWKContextMenuItemTagStartSpeaking,
     84     kWKContextMenuItemTagStopSpeaking,
     85     kWKContextMenuItemTagWritingDirectionMenu,
     86     kWKContextMenuItemTagDefaultDirection,
     87     kWKContextMenuItemTagLeftToRight,
     88     kWKContextMenuItemTagRightToLeft,
     89     kWKContextMenuItemTagPDFSinglePageScrolling,
     90     kWKContextMenuItemTagPDFFacingPagesScrolling,
     91     kWKContextMenuItemTagInspectElement,
     92     kWKContextMenuItemTagTextDirectionMenu,
     93     kWKContextMenuItemTagTextDirectionDefault,
     94     kWKContextMenuItemTagTextDirectionLeftToRight,
     95     kWKContextMenuItemTagTextDirectionRightToLeft,
     96     kWKContextMenuItemTagCorrectSpellingAutomatically,
     97     kWKContextMenuItemTagSubstitutionsMenu,
     98     kWKContextMenuItemTagShowSubstitutions,
     99     kWKContextMenuItemTagSmartCopyPaste,
    100     kWKContextMenuItemTagSmartQuotes,
    101     kWKContextMenuItemTagSmartDashes,
    102     kWKContextMenuItemTagSmartLinks,
    103     kWKContextMenuItemTagTextReplacement,
    104     kWKContextMenuItemTagTransformationsMenu,
    105     kWKContextMenuItemTagMakeUpperCase,
    106     kWKContextMenuItemTagMakeLowerCase,
    107     kWKContextMenuItemTagCapitalize,
    108     kWKContextMenuItemTagChangeBack,
    109     kWKContextMenuItemTagOpenMediaInNewWindow,
    110     kWKContextMenuItemTagCopyMediaLinkToClipboard,
    111     kWKContextMenuItemTagToggleMediaControls,
    112     kWKContextMenuItemTagToggleMediaLoop,
    113     kWKContextMenuItemTagEnterVideoFullscreen,
    114     kWKContextMenuItemTagMediaPlayPause,
    115     kWKContextMenuItemTagMediaMute,
    116     kWKContextMenuItemBaseApplicationTag = 10000
    117 };
    118 typedef uint32_t WKContextMenuItemTag;
    119 
    120 enum {
    121     kWKContextMenuItemTypeAction,
    122     kWKContextMenuItemTypeCheckableAction,
    123     kWKContextMenuItemTypeSeparator,
    124     kWKContextMenuItemTypeSubmenu
    125 };
    126 typedef uint32_t WKContextMenuItemType;
    127 
    128 #ifdef __cplusplus
    129 }
    130 #endif
    131 
    132 #endif /* WKContextMenuItemTypes_h */
    133