<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
+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.
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
// SPI's for Mail.
- (NSImage *)_selectionDraggingImage;
- (NSRect)_selectionDraggingRect;
+- (BOOL)_canIncreaseSelectionListLevel;
+- (BOOL)_canDecreaseSelectionListLevel;
+- (void)_increaseSelectionListLevel;
+- (void)_decreaseSelectionListLevel;
// SPI for DumpRenderTree
- (void)_updateFocusState;