Reviewed by Justin.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Mar 2006 03:33:44 +0000 (03:33 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Mar 2006 03:33:44 +0000 (03:33 +0000)
        <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: https://svn.webkit.org/repository/webkit/trunk@13080 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/WebView/WebHTMLView.m
WebKit/WebView/WebHTMLViewPrivate.h

index 6728f1899d4881d322c1858b4ac99db8310b7396..282728f589f0277115933d14716c8ba360f02f84 100644 (file)
@@ -1,3 +1,19 @@
+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>
 
         Reviewed by Darin.
index 97a709615f89bf35e003465ec903db21399ac065..60f95529e116b224c6b24180869515ef73985dcd 100644 (file)
@@ -1579,6 +1579,34 @@ static WebHTMLView *lastHitView = nil;
     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
 {
     // This method does the job of updating the view based on the view's firstResponder-ness and
index 634c768e41a4ee4268d494b3cf12817d9c80d947..5b06dcad28db4b9acce87ce070be4156155934f2 100644 (file)
 // SPI's for Mail.
 - (NSImage *)_selectionDraggingImage;
 - (NSRect)_selectionDraggingRect;
+- (BOOL)_canIncreaseSelectionListLevel;
+- (BOOL)_canDecreaseSelectionListLevel;
+- (void)_increaseSelectionListLevel;
+- (void)_decreaseSelectionListLevel;
 
 // SPI for DumpRenderTree
 - (void)_updateFocusState;