102 lines
5.0 KiB
C++
102 lines
5.0 KiB
C++
// Copyright (c) 2010 The Chromium Embedded Framework Authors. All rights
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
// can be found in the LICENSE file.
|
|
//
|
|
// -------------------------------------------------------------------------
|
|
//
|
|
// This file was generated by the CEF translator tool and should not edited
|
|
// by hand. See the translator.README.txt file in the tools directory for
|
|
// more information.
|
|
//
|
|
|
|
#ifndef _HANDLER_CTOCPP_H
|
|
#define _HANDLER_CTOCPP_H
|
|
|
|
#ifndef BUILDING_CEF_SHARED
|
|
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
|
#else // BUILDING_CEF_SHARED
|
|
|
|
#include "include/cef.h"
|
|
#include "include/cef_capi.h"
|
|
#include "libcef_dll/ctocpp/ctocpp.h"
|
|
|
|
// Wrap a C structure with a C++ class.
|
|
// This class may be instantiated and accessed DLL-side only.
|
|
class CefHandlerCToCpp
|
|
: public CefCToCpp<CefHandlerCToCpp, CefHandler, cef_handler_t>
|
|
{
|
|
public:
|
|
CefHandlerCToCpp(cef_handler_t* str)
|
|
: CefCToCpp<CefHandlerCToCpp, CefHandler, cef_handler_t>(str) {}
|
|
virtual ~CefHandlerCToCpp() {}
|
|
|
|
// CefHandler methods
|
|
virtual RetVal HandleBeforeCreated(CefRefPtr<CefBrowser> parentBrowser,
|
|
CefWindowInfo& windowInfo, bool popup,
|
|
const CefPopupFeatures& popupFeatures, CefRefPtr<CefHandler>& handler,
|
|
CefString& url, CefBrowserSettings& settings);
|
|
virtual RetVal HandleAfterCreated(CefRefPtr<CefBrowser> browser);
|
|
virtual RetVal HandleAddressChange(CefRefPtr<CefBrowser> browser,
|
|
CefRefPtr<CefFrame> frame, const CefString& url);
|
|
virtual RetVal HandleTitleChange(CefRefPtr<CefBrowser> browser,
|
|
const CefString& title);
|
|
virtual RetVal HandleBeforeBrowse(CefRefPtr<CefBrowser> browser,
|
|
CefRefPtr<CefFrame> frame, CefRefPtr<CefRequest> request,
|
|
NavType navType, bool isRedirect);
|
|
virtual RetVal HandleLoadStart(CefRefPtr<CefBrowser> browser,
|
|
CefRefPtr<CefFrame> frame, bool isMainContent);
|
|
virtual RetVal HandleLoadEnd(CefRefPtr<CefBrowser> browser,
|
|
CefRefPtr<CefFrame> frame, bool isMainContent);
|
|
virtual RetVal HandleLoadError(CefRefPtr<CefBrowser> browser,
|
|
CefRefPtr<CefFrame> frame, ErrorCode errorCode,
|
|
const CefString& failedUrl, CefString& errorText);
|
|
virtual RetVal HandleBeforeResourceLoad(CefRefPtr<CefBrowser> browser,
|
|
CefRefPtr<CefRequest> request, CefString& redirectUrl,
|
|
CefRefPtr<CefStreamReader>& resourceStream, CefString& mimeType,
|
|
int loadFlags);
|
|
virtual RetVal HandleProtocolExecution(CefRefPtr<CefBrowser> browser,
|
|
const CefString& url, bool* allow_os_execution);
|
|
virtual RetVal HandleDownloadResponse(CefRefPtr<CefBrowser> browser,
|
|
const CefString& mimeType, const CefString& fileName,
|
|
int64 contentLength, CefRefPtr<CefDownloadHandler>& handler);
|
|
virtual RetVal HandleAuthenticationRequest(CefRefPtr<CefBrowser> browser,
|
|
bool isProxy, const CefString& host, const CefString& realm,
|
|
const CefString& scheme, CefString& username, CefString& password);
|
|
virtual RetVal HandleBeforeMenu(CefRefPtr<CefBrowser> browser,
|
|
const MenuInfo& menuInfo);
|
|
virtual RetVal HandleGetMenuLabel(CefRefPtr<CefBrowser> browser,
|
|
MenuId menuId, CefString& label);
|
|
virtual RetVal HandleMenuAction(CefRefPtr<CefBrowser> browser, MenuId menuId);
|
|
virtual RetVal HandlePrintOptions(CefRefPtr<CefBrowser> browser,
|
|
CefPrintOptions& printOptions);
|
|
virtual RetVal HandlePrintHeaderFooter(CefRefPtr<CefBrowser> browser,
|
|
CefRefPtr<CefFrame> frame, CefPrintInfo& printInfo, const CefString& url,
|
|
const CefString& title, int currentPage, int maxPages,
|
|
CefString& topLeft, CefString& topCenter, CefString& topRight,
|
|
CefString& bottomLeft, CefString& bottomCenter, CefString& bottomRight);
|
|
virtual RetVal HandleJSAlert(CefRefPtr<CefBrowser> browser,
|
|
CefRefPtr<CefFrame> frame, const CefString& message);
|
|
virtual RetVal HandleJSConfirm(CefRefPtr<CefBrowser> browser,
|
|
CefRefPtr<CefFrame> frame, const CefString& message, bool& retval);
|
|
virtual RetVal HandleJSPrompt(CefRefPtr<CefBrowser> browser,
|
|
CefRefPtr<CefFrame> frame, const CefString& message,
|
|
const CefString& defaultValue, bool& retval, CefString& result);
|
|
virtual RetVal HandleJSBinding(CefRefPtr<CefBrowser> browser,
|
|
CefRefPtr<CefFrame> frame, CefRefPtr<CefV8Value> object);
|
|
virtual RetVal HandleBeforeWindowClose(CefRefPtr<CefBrowser> browser);
|
|
virtual RetVal HandleTakeFocus(CefRefPtr<CefBrowser> browser, bool reverse);
|
|
virtual RetVal HandleSetFocus(CefRefPtr<CefBrowser> browser, bool isWidget);
|
|
virtual RetVal HandleKeyEvent(CefRefPtr<CefBrowser> browser,
|
|
KeyEventType type, int code, int modifiers, bool isSystemKey);
|
|
virtual RetVal HandleTooltip(CefRefPtr<CefBrowser> browser, CefString& text);
|
|
virtual RetVal HandleConsoleMessage(CefRefPtr<CefBrowser> browser,
|
|
const CefString& message, const CefString& source, int line);
|
|
virtual RetVal HandleFindResult(CefRefPtr<CefBrowser> browser, int identifier,
|
|
int count, const CefRect& selectionRect, int activeMatchOrdinal,
|
|
bool finalUpdate);
|
|
};
|
|
|
|
#endif // BUILDING_CEF_SHARED
|
|
#endif // _HANDLER_CTOCPP_H
|
|
|