// 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 { public: CefHandlerCToCpp(cef_handler_t* str) : CefCToCpp(str) {} virtual ~CefHandlerCToCpp() {} // CefHandler methods virtual RetVal HandleBeforeCreated(CefRefPtr parentBrowser, CefWindowInfo& windowInfo, bool popup, const CefPopupFeatures& popupFeatures, CefRefPtr& handler, CefString& url, CefBrowserSettings& settings); virtual RetVal HandleAfterCreated(CefRefPtr browser); virtual RetVal HandleAddressChange(CefRefPtr browser, CefRefPtr frame, const CefString& url); virtual RetVal HandleTitleChange(CefRefPtr browser, const CefString& title); virtual RetVal HandleNavStateChange(CefRefPtr browser, bool canGoBack, bool canGoForward); virtual RetVal HandleBeforeBrowse(CefRefPtr browser, CefRefPtr frame, CefRefPtr request, NavType navType, bool isRedirect); virtual RetVal HandleLoadStart(CefRefPtr browser, CefRefPtr frame); virtual RetVal HandleLoadEnd(CefRefPtr browser, CefRefPtr frame, int httpStatusCode); virtual RetVal HandleLoadError(CefRefPtr browser, CefRefPtr frame, ErrorCode errorCode, const CefString& failedUrl, CefString& errorText); virtual RetVal HandleBeforeResourceLoad(CefRefPtr browser, CefRefPtr request, CefString& redirectUrl, CefRefPtr& resourceStream, CefString& mimeType, int loadFlags); virtual RetVal HandleProtocolExecution(CefRefPtr browser, const CefString& url, bool* allow_os_execution); virtual RetVal HandleDownloadResponse(CefRefPtr browser, const CefString& mimeType, const CefString& fileName, int64 contentLength, CefRefPtr& handler); virtual RetVal HandleAuthenticationRequest(CefRefPtr browser, bool isProxy, const CefString& host, const CefString& realm, const CefString& scheme, CefString& username, CefString& password); virtual RetVal HandleBeforeMenu(CefRefPtr browser, const MenuInfo& menuInfo); virtual RetVal HandleGetMenuLabel(CefRefPtr browser, MenuId menuId, CefString& label); virtual RetVal HandleMenuAction(CefRefPtr browser, MenuId menuId); virtual RetVal HandlePrintOptions(CefRefPtr browser, CefPrintOptions& printOptions); virtual RetVal HandlePrintHeaderFooter(CefRefPtr browser, CefRefPtr 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 browser, CefRefPtr frame, const CefString& message); virtual RetVal HandleJSConfirm(CefRefPtr browser, CefRefPtr frame, const CefString& message, bool& retval); virtual RetVal HandleJSPrompt(CefRefPtr browser, CefRefPtr frame, const CefString& message, const CefString& defaultValue, bool& retval, CefString& result); virtual RetVal HandleJSBinding(CefRefPtr browser, CefRefPtr frame, CefRefPtr object); virtual RetVal HandleBeforeWindowClose(CefRefPtr browser); virtual RetVal HandleTakeFocus(CefRefPtr browser, bool reverse); virtual RetVal HandleSetFocus(CefRefPtr browser, bool isWidget); virtual RetVal HandleKeyEvent(CefRefPtr browser, KeyEventType type, int code, int modifiers, bool isSystemKey); virtual RetVal HandleTooltip(CefRefPtr browser, CefString& text); virtual RetVal HandleStatus(CefRefPtr browser, const CefString& value, StatusType type); virtual RetVal HandleConsoleMessage(CefRefPtr browser, const CefString& message, const CefString& source, int line); virtual RetVal HandleFindResult(CefRefPtr browser, int identifier, int count, const CefRect& selectionRect, int activeMatchOrdinal, bool finalUpdate); virtual RetVal HandleGetRect(CefRefPtr browser, bool screen, CefRect& rect); virtual RetVal HandleGetScreenPoint(CefRefPtr browser, int viewX, int viewY, int& screenX, int& screenY); virtual RetVal HandlePopupChange(CefRefPtr browser, bool show, const CefRect& rect); virtual RetVal HandlePaint(CefRefPtr browser, PaintElementType type, const CefRect& dirtyRect, const void* buffer); virtual RetVal HandleCursorChange(CefRefPtr browser, CefCursorHandle cursor); }; #endif // BUILDING_CEF_SHARED #endif // _HANDLER_CTOCPP_H