webengine/osswebengine/WebKit/win/Interfaces/IWebUndoManager.idl
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2  * Copyright (C) 2006, 2007 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 COMPUTER, INC. ``AS IS'' AND ANY
       
    14  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
       
    15  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
       
    16  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
       
    17  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
       
    18  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
       
    19  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
       
    20  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
       
    21  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
       
    22  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
       
    23  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
       
    24  */
       
    25 
       
    26 cpp_quote("/*")
       
    27 cpp_quote(" * Copyright (C) 2006, 2007 Apple Inc.  All rights reserved.")
       
    28 cpp_quote(" *")
       
    29 cpp_quote(" * Redistribution and use in source and binary forms, with or without")
       
    30 cpp_quote(" * modification, are permitted provided that the following conditions")
       
    31 cpp_quote(" * are met:")
       
    32 cpp_quote(" * 1. Redistributions of source code must retain the above copyright")
       
    33 cpp_quote(" *    notice, this list of conditions and the following disclaimer.")
       
    34 cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")
       
    35 cpp_quote(" *    notice, this list of conditions and the following disclaimer in the")
       
    36 cpp_quote(" *    documentation and/or other materials provided with the distribution.")
       
    37 cpp_quote(" *")
       
    38 cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")
       
    39 cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")
       
    40 cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")
       
    41 cpp_quote(" * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR")
       
    42 cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")
       
    43 cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")
       
    44 cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")
       
    45 cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")
       
    46 cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")
       
    47 cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")
       
    48 cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")
       
    49 cpp_quote(" */")
       
    50 
       
    51 import "oaidl.idl";
       
    52 import "ocidl.idl";
       
    53 
       
    54 interface IWebInvocation;
       
    55 interface IWebMethodSignature;
       
    56 
       
    57 [
       
    58     object,
       
    59     oleautomation,
       
    60     uuid(D25D748C-6C1E-478d-9832-FDA26E8F7EE4),
       
    61     pointer_default(unique)
       
    62 ]
       
    63 interface IWebUndoManager : IUnknown
       
    64 {
       
    65     /*
       
    66         - (void)beginUndoGrouping
       
    67     */
       
    68     HRESULT beginUndoGrouping();
       
    69 
       
    70     /*
       
    71         - (BOOL)canRedo
       
    72     */
       
    73     HRESULT canRedo([out, retval] BOOL* result);
       
    74 
       
    75     /*
       
    76         - (BOOL)canUndo
       
    77     */
       
    78     HRESULT canUndo([out, retval] BOOL* result);
       
    79 
       
    80     /*
       
    81         - (void)disableUndoRegistration
       
    82     */
       
    83     HRESULT disableUndoRegistration();
       
    84 
       
    85     /*
       
    86         - (void)enableUndoRegistration
       
    87     */
       
    88     HRESULT enableUndoRegistration();
       
    89 
       
    90     /*
       
    91         - (void)endUndoGrouping
       
    92     */
       
    93     HRESULT endUndoGrouping();
       
    94 
       
    95     /*
       
    96         - (void)forwardInvocation:(NSInvocation *)anInvocation
       
    97     */
       
    98     HRESULT forwardInvocation([in] IWebInvocation* anInvocation);
       
    99 
       
   100     /*
       
   101         - (int)groupingLevel
       
   102     */
       
   103     HRESULT groupingLevel([out, retval] int* groupingLevel);
       
   104 
       
   105     /*
       
   106         - (BOOL)groupsByEvent
       
   107     */
       
   108     HRESULT groupsByEvent([out, retval] BOOL* result);
       
   109 
       
   110     /*
       
   111         - (BOOL)isRedoing
       
   112     */
       
   113     HRESULT isRedoing([out, retval] BOOL* result);
       
   114 
       
   115     /*
       
   116         - (BOOL)isUndoing
       
   117     */
       
   118     HRESULT isUndoing([out, retval] BOOL* result);
       
   119 
       
   120     /*
       
   121         - (BOOL)isUndoRegistrationEnabled
       
   122     */
       
   123     HRESULT isUndoRegistrationEnabled([out, retval] BOOL* result);
       
   124 
       
   125     /*
       
   126         - (unsigned)levelsOfUndo
       
   127     */
       
   128     HRESULT levelsOfUndo([out, retval] UINT* result);
       
   129 
       
   130     /*
       
   131         - (id)prepareWithInvocationTarget:(id)target
       
   132     */
       
   133     HRESULT prepareWithInvocationTarget([in] IUnknown* target, [out, retval] IUnknown** result);
       
   134 
       
   135     /*
       
   136         - (void)redo
       
   137     */
       
   138     HRESULT redo();
       
   139 
       
   140     /*
       
   141         - (NSString *)redoActionName
       
   142     */
       
   143     HRESULT redoActionName([out, retval] BSTR* result);
       
   144 
       
   145     /*
       
   146         - (NSString *)redoMenuItemTitle
       
   147     */
       
   148     HRESULT redoMenuItemTitle([out, retval] BSTR* result);
       
   149 
       
   150     /*
       
   151         - (NSString *)redoMenuTitleForUndoActionName:(NSString *)actionName
       
   152     */
       
   153     HRESULT redoMenuTitleForUndoActionName([in] BSTR actionName, [out, retval] BSTR* result);
       
   154 
       
   155     /*
       
   156         - (void)registerUndoWithTarget:(id)target selector:(SEL)aSelector object:(id)anObject
       
   157     */
       
   158     HRESULT registerUndoWithTarget([in] IUnknown* target, [in] UINT aSelector, [in] IUnknown* anObject);
       
   159 
       
   160     /*
       
   161         - (void)removeAllActions
       
   162     */
       
   163     HRESULT removeAllActions();
       
   164 
       
   165     /*
       
   166         - (void)removeAllActionsWithTarget:(id)target
       
   167     */
       
   168     HRESULT removeAllActionsWithTarget([in] IUnknown* target);
       
   169 
       
   170     /*
       
   171         - (NSArray *)runLoopModes
       
   172     */
       
   173     HRESULT runLoopModes([out, retval] IEnumVARIANT** enumModes);
       
   174 
       
   175     /*
       
   176         - (void)setActionName:(NSString *)actionName
       
   177     */
       
   178     HRESULT setActionName([in] BSTR actionName);
       
   179 
       
   180     /*
       
   181         - (void)setGroupsByEvent:(BOOL)flag
       
   182     */
       
   183     HRESULT setGroupsByEvent([in] BOOL flag);
       
   184 
       
   185     /*
       
   186         - (void)setLevelsOfUndo:(unsigned)anInt
       
   187     */
       
   188     HRESULT setLevelsOfUndo([in] UINT anInt);
       
   189 
       
   190     /*
       
   191         - (void)setRunLoopModes:(NSArray *)modes
       
   192     */
       
   193     HRESULT setRunLoopModes([in] int cModes, [in, size_is(cModes)] BSTR* modes);
       
   194 
       
   195     /*
       
   196         - (void)undo
       
   197     */
       
   198     HRESULT undo();
       
   199 
       
   200     /*
       
   201         - (NSString *)undoActionName
       
   202     */
       
   203     HRESULT undoActionName([out, retval] BSTR* result);
       
   204 
       
   205     /*
       
   206         - (NSString *)undoMenuItemTitle
       
   207     */
       
   208     HRESULT undoMenuItemTitle([out, retval] BSTR* result);
       
   209 
       
   210     /*
       
   211         - (NSString *)undoMenuTitleForUndoActionName:(NSString *)actionName
       
   212     */
       
   213     HRESULT undoMenuTitleForUndoActionName([in] BSTR actionName, [out, retval] BSTR* result);
       
   214 
       
   215     /*
       
   216         - (void)undoNestedGroup
       
   217     */
       
   218     HRESULT undoNestedGroup();
       
   219 }
       
   220 
       
   221 [
       
   222     object,
       
   223     oleautomation,
       
   224     uuid(67B067BE-4DE6-45c2-AD39-A91DFA84FF4E),
       
   225     pointer_default(unique)
       
   226 ]
       
   227 interface IWebInvocation : IUnknown
       
   228 {
       
   229     /*
       
   230         + (NSInvocation *)invocationWithMethodSignature:(NSMethodSignature *)signature
       
   231     */
       
   232     HRESULT invocationWithMethodSignature([in] IWebMethodSignature* signature);
       
   233 
       
   234     /*
       
   235         - (BOOL)argumentsRetained
       
   236     */
       
   237     HRESULT argumentsRetained([out, retval] BOOL* result);
       
   238 
       
   239     /*
       
   240         - (void)getArgument:(void *)buffer atIndex:(int)index
       
   241     */
       
   242     [local] HRESULT getArgument([in] void* buffer, [in] int index);
       
   243 
       
   244     /*
       
   245         - (void)getReturnValue:(void *)buffer
       
   246     */
       
   247     [local] HRESULT getReturnValue([in] void* buffer);
       
   248 
       
   249     /*
       
   250         - (void)invoke
       
   251     */
       
   252     HRESULT invoke();
       
   253 
       
   254     /*
       
   255         - (void)invokeWithTarget:(id)anObject
       
   256     */
       
   257     HRESULT invokeWithTarget([in] IUnknown* anObject);
       
   258 
       
   259     /*
       
   260         - (NSMethodSignature *)methodSignature
       
   261     */
       
   262     HRESULT methodSignature([out, retval] IWebMethodSignature** result);
       
   263 
       
   264     /*
       
   265         - (void)retainArguments
       
   266     */
       
   267     HRESULT retainArguments();
       
   268 
       
   269     /*
       
   270         - (SEL)selector
       
   271     */
       
   272     HRESULT selector([out, retval] UINT* result);
       
   273 
       
   274     /*
       
   275         - (void)setArgument:(void *)buffer atIndex:(int)index
       
   276     */
       
   277     [local] HRESULT setArgument([in] void* buffer, [in] int atIndex);
       
   278 
       
   279     /*
       
   280         - (void)setReturnValue:(void *)buffer
       
   281     */
       
   282     [local] HRESULT setReturnValue([in] void* buffer);
       
   283 
       
   284     /*
       
   285         - (void)setSelector:(SEL)selector
       
   286     */
       
   287     HRESULT setSelector([in] UINT selector);
       
   288 
       
   289     /*
       
   290         - (void)setTarget:(id)anObject
       
   291     */
       
   292     HRESULT setTarget([in] IUnknown* anObject);
       
   293 
       
   294     /*
       
   295         - (id)target
       
   296     */
       
   297     HRESULT target([out, retval] IUnknown** result);
       
   298 }
       
   299 
       
   300 [
       
   301     object,
       
   302     oleautomation,
       
   303     uuid(431DD6B2-56BF-4f48-943B-78CCEAC418E4),
       
   304     pointer_default(unique)
       
   305 ]
       
   306 interface IWebMethodSignature : IUnknown
       
   307 {
       
   308     /*
       
   309         - (unsigned)frameLength
       
   310     */
       
   311     HRESULT frameLength([out, retval] UINT* result);
       
   312 
       
   313     /*
       
   314         - (const char *)getArgumentTypeAtIndex:(unsigned)index
       
   315     */
       
   316     HRESULT getArgumentTypeAtIndex([in] UINT index, [out, retval] BSTR* result);
       
   317 
       
   318     /*
       
   319         - (BOOL)isOneway
       
   320     */
       
   321     HRESULT isOneway([out, retval] BOOL* result);
       
   322 
       
   323     /*
       
   324         - (unsigned)methodReturnLength
       
   325     */
       
   326     HRESULT methodReturnLength([out, retval] UINT* result);
       
   327 
       
   328     /*
       
   329         - (const char *)methodReturnType
       
   330     */
       
   331     HRESULT methodReturnType([out, retval] BSTR* result);
       
   332 
       
   333     /*
       
   334         - (unsigned)numberOfArguments
       
   335     */
       
   336     HRESULT numberOfArguments([out, retval] UINT* result);
       
   337 }