WebAppBrowser.h 603 B

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #include "WebApp.h"
  3. namespace Atomic
  4. {
  5. class WebAppBrowser : public WebApp, public CefBrowserProcessHandler
  6. {
  7. public:
  8. WebAppBrowser();
  9. // CefApp methods.
  10. void OnBeforeCommandLineProcessing(const CefString& process_type, CefRefPtr<CefCommandLine> command_line) OVERRIDE;
  11. CefRefPtr<CefBrowserProcessHandler> GetBrowserProcessHandler() OVERRIDE
  12. {
  13. return this;
  14. }
  15. // CefBrowserProcessHandler methods.
  16. void OnContextInitialized() OVERRIDE;
  17. private:
  18. DISALLOW_COPY_AND_ASSIGN(WebAppBrowser);
  19. IMPLEMENT_REFCOUNTING(WebAppBrowser);
  20. };
  21. }