Improve GetZoomLevel/SetZoomLevel documentation (issue #666).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@760 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2012-09-04 21:19:29 +00:00
parent 1ed3754569
commit 234acdd760
2 changed files with 8 additions and 4 deletions

View File

@ -180,12 +180,14 @@ typedef struct _cef_browser_t {
int clearSelection);
///
// Get the zoom level.
// Get the current zoom level. The default zoom level is 0.0. This function
// can only be called on the UI thread.
///
double (CEF_CALLBACK *get_zoom_level)(struct _cef_browser_t* self);
///
// Change the zoom level to the specified value.
// Change the zoom level to the specified value. Specify 0.0 to reset the zoom
// level. The change will be applied asynchronously on the UI thread.
///
void (CEF_CALLBACK *set_zoom_level)(struct _cef_browser_t* self,
double zoomLevel);

View File

@ -208,13 +208,15 @@ class CefBrowser : public virtual CefBase {
virtual void StopFinding(bool clearSelection) =0;
///
// Get the zoom level.
// Get the current zoom level. The default zoom level is 0.0. This method can
// only be called on the UI thread.
///
/*--cef()--*/
virtual double GetZoomLevel() =0;
///
// Change the zoom level to the specified value.
// Change the zoom level to the specified value. Specify 0.0 to reset the
// zoom level. The change will be applied asynchronously on the UI thread.
///
/*--cef()--*/
virtual void SetZoomLevel(double zoomLevel) =0;