mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add zoom support (issue #514).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@695 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -181,7 +181,9 @@ class CefBrowser : public virtual CefBase {
|
||||
|
||||
///
|
||||
// Class used to represent the browser process aspects of a browser window. The
|
||||
// methods of this class can only be called in the browser process.
|
||||
// methods of this class can only be called in the browser process. They may be
|
||||
// called on any thread in that process unless otherwise indicated in the
|
||||
// comments.
|
||||
///
|
||||
/*--cef(source=library)--*/
|
||||
class CefBrowserHost : public virtual CefBase {
|
||||
@@ -267,6 +269,18 @@ class CefBrowserHost : public virtual CefBase {
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefString GetDevToolsURL(bool http_scheme) =0;
|
||||
|
||||
///
|
||||
// Get the zoom level. This method can only be called on the UI thread.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual double GetZoomLevel() =0;
|
||||
|
||||
///
|
||||
// Change the zoom level to the specified value.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual void SetZoomLevel(double zoomLevel) =0;
|
||||
};
|
||||
|
||||
#endif // CEF_INCLUDE_CEF_BROWSER_H_
|
||||
|
Reference in New Issue
Block a user