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

@@ -26,6 +26,7 @@
#include "libcef_dll/cpptoc/render_handler_cpptoc.h"
#include "libcef_dll/cpptoc/request_handler_cpptoc.h"
#include "libcef_dll/cpptoc/v8context_handler_cpptoc.h"
#include "libcef_dll/cpptoc/zoom_handler_cpptoc.h"
// MEMBER FUNCTIONS - Body may be edited by hand.
@@ -270,6 +271,22 @@ struct _cef_geolocation_handler_t* CEF_CALLBACK client_get_geolocation_handler(
return CefGeolocationHandlerCppToC::Wrap(_retval);
}
struct _cef_zoom_handler_t* CEF_CALLBACK client_get_zoom_handler(
struct _cef_client_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return NULL;
// Execute
CefRefPtr<CefZoomHandler> _retval = CefClientCppToC::Get(
self)->GetZoomHandler();
// Return type: refptr_same
return CefZoomHandlerCppToC::Wrap(_retval);
}
// CONSTRUCTOR - Do not edit by hand.
@@ -290,6 +307,7 @@ CefClientCppToC::CefClientCppToC(CefClient* cls)
struct_.struct_.get_render_handler = client_get_render_handler;
struct_.struct_.get_drag_handler = client_get_drag_handler;
struct_.struct_.get_geolocation_handler = client_get_geolocation_handler;
struct_.struct_.get_zoom_handler = client_get_zoom_handler;
}
#ifndef NDEBUG