#include "content/public/browser/notification_source.h"
#include "content/public/browser/notification_types.h"
#include "content/public/browser/render_view_host.h"
+#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_view.h"
#include "content/public/browser/render_process_host.h"
#include "grit/xwalk_resources.h"
delete this;
}
-NativeAppWindow* Runtime::window() const {
- return window_;
+content::RenderProcessHost* Runtime::GetRenderProcessHost() {
+ return web_contents_->GetRenderProcessHost();
}
//////////////////////////////////////////////////////
return source;
}
-void Runtime::LoadingStateChanged(content::WebContents* source) {
+void Runtime::LoadingStateChanged(content::WebContents* source,
+ bool to_different_document) {
}
void Runtime::ToggleFullscreenModeForTab(content::WebContents* web_contents,
void Runtime::WebContentsCreated(
content::WebContents* source_contents,
- int64 source_frame_id,
+ int opener_render_frame_id,
const base::string16& frame_name,
const GURL& target_url,
content::WebContents* new_contents) {
web_contents, request, callback);
}
-void Runtime::RenderProcessGone(base::TerminationStatus status) {
- content::RenderProcessHost* rph = web_contents_->GetRenderProcessHost();
- VLOG(1) << "RenderProcess id: " << rph->GetID() << " is gone!";
- XWalkRunner::GetInstance()->OnRenderProcessHostGone(rph);
-}
-
void Runtime::ApplyWindowDefaultParams(NativeAppWindow::CreateParams* params) {
if (!params->delegate)
params->delegate = this;