WebCore:
[WebKit-https.git] / WebCore / kwq / WebCoreBridge.h
index df672bdae21c0cd92d507c860bf33dd2120a1fdc..d600c4ba3dda7e9448cfdeda6b61c763fb94d685 100644 (file)
@@ -130,6 +130,40 @@ typedef enum {
     WebScrollWheel
 } WebScrollGranularity;
 
+typedef enum {
+    WebUndoActionUnspecified,
+    WebUndoActionSetColor,
+    WebUndoActionSetBackgroundColor,
+    WebUndoActionTurnOffKerning,
+    WebUndoActionTightenKerning,
+    WebUndoActionLoosenKerning,
+    WebUndoActionUseStandardKerning,
+    WebUndoActionTurnOffLigatures,
+    WebUndoActionUseStandardLigatures,
+    WebUndoActionUseAllLigatures,
+    WebUndoActionRaiseBaseline,
+    WebUndoActionLowerBaseline,
+    WebUndoActionSetTraditionalCharacterShape,
+    WebUndoActionSetFont,
+    WebUndoActionChangeAttributes,
+    WebUndoActionAlignLeft,
+    WebUndoActionAlignRight,
+    WebUndoActionCenter,
+    WebUndoActionJustify,
+    WebUndoActionSetWritingDirection,
+    WebUndoActionSubscript,
+    WebUndoActionSuperscript,
+    WebUndoActionUnderline,
+    WebUndoActionOutline,
+    WebUndoActionUnscript,
+    WebUndoActionDrag,
+    WebUndoActionCut,
+    WebUndoActionPaste,
+    WebUndoActionPasteFont,
+    WebUndoActionPasteRuler,
+    WebUndoActionTyping,
+} WebUndoAction;
+
 // WebCoreBridge objects are used by WebCore to abstract away operations that need
 // to be implemented by library clients, for example WebKit. The objects are also
 // used in the opposite direction, for simple access to WebCore functions without dealing
@@ -534,6 +568,7 @@ typedef enum {
 - (jobject)pollForAppletInView:(NSView *)view;
 
 - (NSUndoManager *)undoManager;
+- (NSString *)nameForUndoAction:(WebUndoAction)undoAction;
 - (void)issueCutCommand;
 - (void)issueCopyCommand;
 - (void)issuePasteCommand;