Add CefZoomHandler interface to support custom zoom handling (issue #733).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@824 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2012-10-01 20:35:35 +00:00
parent a3ac7b446f
commit 7a0ff637f0
16 changed files with 493 additions and 2 deletions

View File

@@ -54,6 +54,7 @@
#include "include/cef_render_handler.h"
#include "include/cef_request_handler.h"
#include "include/cef_v8context_handler.h"
#include "include/cef_zoom_handler.h"
///
// Implement this interface to provide handler implementations.
@@ -181,6 +182,15 @@ class CefClient : public virtual CefBase {
virtual CefRefPtr<CefGeolocationHandler> GetGeolocationHandler() {
return NULL;
}
///
// Return the handler for zoom events. If no handler is provided the default
// zoom behavior will be used.
///
/*--cef()--*/
virtual CefRefPtr<CefZoomHandler> GetZoomHandler() {
return NULL;
}
};
#endif // CEF_INCLUDE_CEF_CLIENT_H_