Commit 151e8bbb authored by harrison's avatar harrison
Browse files

Reviewed by Justin.

        <rdar://problem/4359736> Support outlining ability with lists

        Added Mail SPI for list level changes.  It is SPI because it is not complete support
        for outlining.  See <rdar://problem/4457070> "API for html lists as note outlines".
        
        * WebView/WebHTMLView.m:
        (-[WebHTMLView _canIncreaseSelectionListLevel]):
        (-[WebHTMLView _canDecreaseSelectionListLevel]):
        (-[WebHTMLView _increaseSelectionListLevel]):
        (-[WebHTMLView _decreaseSelectionListLevel]):
        * WebView/WebHTMLViewPrivate.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13080 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 69aca3d5
2006-02-23 David Harrison <harrison@apple.com>
Reviewed by Justin.
<rdar://problem/4359736> Support outlining ability with lists
Added Mail SPI for list level changes. It is SPI because it is not complete support
for outlining. See <rdar://problem/4457070> "API for html lists as note outlines".
* WebView/WebHTMLView.m:
(-[WebHTMLView _canIncreaseSelectionListLevel]):
(-[WebHTMLView _canDecreaseSelectionListLevel]):
(-[WebHTMLView _increaseSelectionListLevel]):
(-[WebHTMLView _decreaseSelectionListLevel]):
* WebView/WebHTMLViewPrivate.h:
2006-03-01 Alexey Proskuryakov <ap@nypop.com> 2006-03-01 Alexey Proskuryakov <ap@nypop.com>
Reviewed by Darin. Reviewed by Darin.
......
...@@ -1579,6 +1579,34 @@ - (NSRect)_selectionDraggingRect ...@@ -1579,6 +1579,34 @@ - (NSRect)_selectionDraggingRect
return NSZeroRect; return NSZeroRect;
} }
- (BOOL)_canIncreaseSelectionListLevel
{
return ([self _canEdit] && [[self _bridge] canIncreaseSelectionListLevel]);
}
- (BOOL)_canDecreaseSelectionListLevel
{
return ([self _canEdit] && [[self _bridge] canDecreaseSelectionListLevel]);
}
- (void)_increaseSelectionListLevel
{
if (![self _canEdit])
return;
WebFrameBridge *bridge = [self _bridge];
[bridge increaseSelectionListLevel];
}
- (void)_decreaseSelectionListLevel
{
if (![self _canEdit])
return;
WebFrameBridge *bridge = [self _bridge];
[bridge decreaseSelectionListLevel];
}
- (void)_updateFocusState - (void)_updateFocusState
{ {
// This method does the job of updating the view based on the view's firstResponder-ness and // This method does the job of updating the view based on the view's firstResponder-ness and
......
...@@ -91,6 +91,10 @@ ...@@ -91,6 +91,10 @@
// SPI's for Mail. // SPI's for Mail.
- (NSImage *)_selectionDraggingImage; - (NSImage *)_selectionDraggingImage;
- (NSRect)_selectionDraggingRect; - (NSRect)_selectionDraggingRect;
- (BOOL)_canIncreaseSelectionListLevel;
- (BOOL)_canDecreaseSelectionListLevel;
- (void)_increaseSelectionListLevel;
- (void)_decreaseSelectionListLevel;
// SPI for DumpRenderTree // SPI for DumpRenderTree
- (void)_updateFocusState; - (void)_updateFocusState;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment