60 lines
1.2 KiB
C++
60 lines
1.2 KiB
C++
//
|
|
// CefViewBrowserAppDelegate.h
|
|
// CefViewCore
|
|
//
|
|
// Created by Sheen Tian on 2020/6/11.
|
|
//
|
|
|
|
#ifndef CefViewBrowserAppDelegate_h
|
|
#define CefViewBrowserAppDelegate_h
|
|
#pragma once
|
|
|
|
#pragma region stl_headers
|
|
#include <memory>
|
|
#pragma endregion
|
|
|
|
#include <CefViewCoreGlobal.h>
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
class CefViewBrowserAppDelegateInterface
|
|
{
|
|
public:
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
typedef std::shared_ptr<CefViewBrowserAppDelegateInterface> RefPtr;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
typedef std::weak_ptr<CefViewBrowserAppDelegateInterface> WeakPtr;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
virtual ~CefViewBrowserAppDelegateInterface(){};
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="process_type"></param>
|
|
/// <param name="command_line"></param>
|
|
virtual void onBeforeCommandLineProcessing(const CefString& process_type, CefRefPtr<CefCommandLine> command_line) = 0;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="command_line"></param>
|
|
virtual void onBeforeChildProcessLaunch(CefRefPtr<CefCommandLine> command_line) = 0;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="delay_ms"></param>
|
|
virtual void onScheduleMessageLoopWork(int64_t delay_ms) = 0;
|
|
};
|
|
|
|
#endif
|