return true;
}
-void EWebView::HandleRendererProcessCrash() {
- InitializeContent();
-
+void EWebView::InvokeWebProcessCrashedCallback() {
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
const char* last_url = GetURL();
bool callback_handled = false;
SmartCallback<EWebViewCallbacks::WebProcessCrashed>().call(&callback_handled);
LoadHTMLString(kRendererCrashedHTMLMessage, NULL, last_url);
}
+void EWebView::HandleRendererProcessCrash() {
+ BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
+ base::Bind(&EWebView::InvokeWebProcessCrashedCallback,
+ base::Unretained(this)));
+}
+
void EWebView::InitializeContent() {
int width, height;
evas_object_geometry_get(evas_object_, 0, 0, &width, &height);
bool HandleTextSelectionUp(int x, int y);
void HandleRendererProcessCrash();
+ void InvokeWebProcessCrashedCallback();
void HandlePostponedGesture(int x, int y, ui::EventType type);
private:
void InitializeContent();