/// \file simple_app.h /// \ingroup WebGui /// \author Sergey Linev /// \date 2017-06-29 /// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback /// is welcome! // Copyright (c) 2013 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. /************************************************************************* * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_cef_simple_app #define ROOT_cef_simple_app #include "include/cef_app.h" #include "gui_handler.h" #include "osr_handler.h" class THttpServer; // Implement application-level callbacks for the browser process. class SimpleApp : public CefApp, public CefBrowserProcessHandler /*, public CefRenderProcessHandler */ { protected: std::string fCefMain; /// fOsrHandler; /// fGuiHandler; /// GetBrowserProcessHandler() OVERRIDE { return this; } // virtual CefRefPtr GetRenderProcessHandler() OVERRIDE { return this; } virtual void OnRegisterCustomSchemes(CefRawPtr registrar) OVERRIDE; // CefBrowserProcessHandler methods: virtual void OnContextInitialized() OVERRIDE; virtual void OnBeforeCommandLineProcessing(const CefString &process_type, CefRefPtr command_line) OVERRIDE; virtual void OnBeforeChildProcessLaunch(CefRefPtr command_line) OVERRIDE; void StartWindow(const std::string &url, bool batch, CefRect &rect); // CefRenderProcessHandler methods // virtual void OnContextCreated(CefRefPtr browser, CefRefPtr frame, // CefRefPtr context) OVERRIDE; private: // Include the default reference counting implementation. IMPLEMENT_REFCOUNTING(SimpleApp); DISALLOW_COPY_AND_ASSIGN(SimpleApp); }; #endif // ROOT_cef_simple_app