Changeset 80295 in webkit


Ignore:
Timestamp:
Mar 3, 2011 4:11:17 PM (13 years ago)
Author:
jeffm@apple.com
Message:

2011-03-03 Jeff Miller <jeffm@apple.com>

Reviewed by Anders Carlsson.

WebKit2: Add WKViewRef API for executing edit commands
https://bugs.webkit.org/show_bug.cgi?id=49829

Added WKViewExecuteCommand() and documented some of the WebCore EditorCommand strings.

  • UIProcess/API/C/win/WKView.cpp: (WKViewExecuteCommand): Added.
  • UIProcess/API/C/win/WKView.h: Added WKViewExecuteCommand() and comment block with WebCore EditorCommand strings.
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r80294 r80295  
     12011-03-03  Jeff Miller  <jeffm@apple.com>
     2
     3        Reviewed by Anders Carlsson.
     4
     5        WebKit2: Add WKViewRef API for executing edit commands
     6        https://bugs.webkit.org/show_bug.cgi?id=49829
     7
     8        Added WKViewExecuteCommand() and documented some of the WebCore EditorCommand strings.
     9
     10        * UIProcess/API/C/win/WKView.cpp:
     11        (WKViewExecuteCommand): Added.
     12        * UIProcess/API/C/win/WKView.h: Added WKViewExecuteCommand() and comment block with WebCore EditorCommand strings.
     13
    1142011-03-03  Jessie Berlin  <jberlin@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/API/C/win/WKView.cpp

    r77054 r80295  
    8282    return toImpl(viewRef)->getFindIndicatorCallback(context);
    8383}
     84
     85void WKViewExecuteCommand(WKViewRef viewRef, WKStringRef command)
     86{
     87    toImpl(viewRef)->page()->executeEditCommand(toImpl(command)->string());
     88}
  • trunk/Source/WebKit2/UIProcess/API/C/win/WKView.h

    r77054 r80295  
    5151WK_EXPORT WKViewFindIndicatorCallback WKViewGetFindIndicatorCallback(WKViewRef view, void** context);
    5252
     53/*
     54    Valid command name strings include:
     55   
     56    "Cut"
     57    "Copy"
     58    "Paste"
     59    "SelectAll"
     60    "Undo"
     61    "Redo"
     62*/
     63
     64WK_EXPORT void WKViewExecuteCommand(WKViewRef view, WKStringRef command);
     65
    5366#ifdef __cplusplus
    5467}
Note: See TracChangeset for help on using the changeset viewer.