diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
commit | 1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch) | |
tree | 4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebKit/mac/WebView/WebDocumentInternal.h | |
parent | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff) | |
download | external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2 |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebKit/mac/WebView/WebDocumentInternal.h')
-rw-r--r-- | WebKit/mac/WebView/WebDocumentInternal.h | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/WebKit/mac/WebView/WebDocumentInternal.h b/WebKit/mac/WebView/WebDocumentInternal.h index 81e961a..191264b 100644 --- a/WebKit/mac/WebView/WebDocumentInternal.h +++ b/WebKit/mac/WebView/WebDocumentInternal.h @@ -36,29 +36,20 @@ #endif /*! -@protocol _WebDocumentTextSizing -@discussion Optional protocol for making text larger and smaller. +@protocol _WebDocumentZooming +@discussion Optional protocol for a view that wants to handle its own zoom. */ -@protocol _WebDocumentTextSizing <NSObject> +@protocol _WebDocumentZooming <NSObject> // Methods to perform the actual commands -- (IBAction)_makeTextSmaller:(id)sender; -- (IBAction)_makeTextLarger:(id)sender; -- (IBAction)_makeTextStandardSize:(id)sender; +- (IBAction)_zoomOut:(id)sender; +- (IBAction)_zoomIn:(id)sender; +- (IBAction)_resetZoom:(id)sender; -// Views that do text sizing come in two flavors. Some will track the common textSizeMultiplier factor stored -// in the WebView. Others (see PDFView) keep their own scaling factor, but still want to play along loosely -// with the smaller/larger commands, which in the user model operate across all frames of the WebView. -- (BOOL)_tracksCommonSizeFactor; - -// Views that track the common size factor need to be told when the WebView itself changed the value. -- (void)_textSizeMultiplierChanged; - -// Views that do not track the common size factor must answer for themselves if they are able to zoom in -// or out. Views that do track it are not sent these messages. -- (BOOL)_canMakeTextSmaller; -- (BOOL)_canMakeTextLarger; -- (BOOL)_canMakeTextStandardSize; +// Whether or not the commands can be executed. +- (BOOL)_canZoomOut; +- (BOOL)_canZoomIn; +- (BOOL)_canResetZoom; @end |