使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 479b1995ef435713c2cf4f0da8de3a6af6c30922
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#ifndef _BROWSER_CLIENT_APP_BROWSER_H_
#define _BROWSER_CLIENT_APP_BROWSER_H_
#include <set>
#include "Cef3ClientApp.h"
 
 
namespace browser {
 
// Client app implementation for the browser process.
class CCef3ClientAppBrowser : public CCef3ClientApp,
                         public CefBrowserProcessHandler,CefRenderProcessHandler {
 public:
  // Interface for browser delegates. All Delegates must be returned via
  // CreateDelegates. Do not perform work in the Delegate
  // constructor. See CefBrowserProcessHandler for documentation.
  class Delegate : public virtual CefBaseRefCounted {
   public:
    virtual void OnBeforeCommandLineProcessing(
        CefRefPtr<CCef3ClientAppBrowser> app,
        CefRefPtr<CefCommandLine> command_line) {}
 
    virtual void OnContextInitialized(CefRefPtr<CCef3ClientAppBrowser> app) {}
 
    virtual void OnBeforeChildProcessLaunch(
        CefRefPtr<CCef3ClientAppBrowser> app,
        CefRefPtr<CefCommandLine> command_line) {}
 
    virtual void OnRenderProcessThreadCreated(
        CefRefPtr<CCef3ClientAppBrowser> app,
        CefRefPtr<CefListValue> extra_info) {}
  };
 
  typedef std::set<CefRefPtr<Delegate> > DelegateSet;
 
  CCef3ClientAppBrowser();
 
 private:
  // Creates all of the Delegate objects. Implemented by cefclient in
  // client_app_delegates_browser.cc
  static void CreateDelegates(DelegateSet& delegates);
 
  // Create the Linux print handler. Implemented by cefclient in
  // client_app_delegates_browser.cc
  static CefRefPtr<CefPrintHandler> CreatePrintHandler();
 
  // CefApp methods.
  void OnBeforeCommandLineProcessing(
      const CefString& process_type,
      CefRefPtr<CefCommandLine> command_line) OVERRIDE;
  CefRefPtr<CefBrowserProcessHandler> GetBrowserProcessHandler() OVERRIDE {
    return this;
  }
 
  // CefBrowserProcessHandler methods.
  void OnContextInitialized() OVERRIDE;
  void OnBeforeChildProcessLaunch(
      CefRefPtr<CefCommandLine> command_line) OVERRIDE;
  void OnRenderProcessThreadCreated(
      CefRefPtr<CefListValue> extra_info) OVERRIDE;
  CefRefPtr<CefPrintHandler> GetPrintHandler() OVERRIDE {
    return print_handler_;
  }
 
 
 
 
  // Set of supported Delegates.
  DelegateSet delegates_;
 
  
 
  CefRefPtr<CefPrintHandler> print_handler_;
 
  IMPLEMENT_REFCOUNTING(CCef3ClientAppBrowser);
  DISALLOW_COPY_AND_ASSIGN(CCef3ClientAppBrowser);
};
 
}  // namespace browser
 
#endif  // _BROWSER_CLIENT_APP_BROWSER_H_