[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/2php/cefpython/cefpython53/src/subprocess/v8function_handler.h [Back]  [Original]

// Copyright (c) 2012-2014 The CEF Python authors. All rights reserved.
// License: New BSD License.
// Website: http://code.google.com/p/cefpython/

#pragma once
#include "include/cef_v8.h"
#include "util.h"

class CefPythonApp;

class V8FunctionHandler 
        : public CefV8Handler {
public:
    V8FunctionHandler(CefRefPtr cefPythonApp,
                      int pythonCallbackId)
            : cefPythonApp_(cefPythonApp),
              pythonCallbackId_(pythonCallbackId) {
    }
    virtual bool Execute(const CefString& name,
                        CefRefPtr object,
                        const CefV8ValueList& arguments,
                        CefRefPtr& retval,
                        CefString& exception) OVERRIDE;
protected:
    CefRefPtr cefPythonApp_;
    int pythonCallbackId_;
private:
  IMPLEMENT_REFCOUNTING(V8FunctionHandler);
};

Web Proxy Viewer  |  New URL  |  Original Page