mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-14 04:29:04 +03:00
fcc012eb11
This is how we will handle replies from dialogs presented in the browser process.
27 lines
935 B
C++
27 lines
935 B
C++
#ifndef ATOM_CEF_RENDER_PROCESS_HANDLER_H_
|
|
#define ATOM_CEF_RENDER_PROCESS_HANDLER_H_
|
|
#pragma once
|
|
|
|
#include "include/cef_app.h"
|
|
|
|
class AtomCefRenderProcessHandler : public CefRenderProcessHandler {
|
|
|
|
virtual void OnWebKitInitialized() OVERRIDE;
|
|
virtual void OnContextCreated(CefRefPtr<CefBrowser> browser,
|
|
CefRefPtr<CefFrame> frame,
|
|
CefRefPtr<CefV8Context> context) OVERRIDE;
|
|
virtual bool OnProcessMessageReceived(CefRefPtr<CefBrowser> browser,
|
|
CefProcessId source_process,
|
|
CefRefPtr<CefProcessMessage> message) OVERRIDE;
|
|
|
|
|
|
|
|
void Reload(CefRefPtr<CefBrowser> browser);
|
|
bool CallMessageReceivedHandler(CefRefPtr<CefV8Context> context, CefRefPtr<CefProcessMessage> message);
|
|
|
|
IMPLEMENT_REFCOUNTING(AtomCefRenderProcessHandler);
|
|
};
|
|
|
|
#endif // ATOM_CEF_RENDER_PROCESS_HANDLER_H_
|
|
|