Use observer to provide OnRendererUnresponsive
This commit is contained in:
parent
bffb31c337
commit
a3124e8873
4 changed files with 19 additions and 14 deletions
|
@ -49,6 +49,13 @@ class WebViewGuestDelegate;
|
|||
|
||||
namespace api {
|
||||
|
||||
// Certain events are only in WebContentsDelegate, provide our own Observer to
|
||||
// dispatch those events.
|
||||
class ExtendedWebContentsObserver {
|
||||
virtual void OnRendererResponsive() {}
|
||||
};
|
||||
|
||||
// Wrapper around the content::WebContents.
|
||||
class WebContents : public mate::TrackableObject<WebContents>,
|
||||
public CommonWebContentsDelegate,
|
||||
public content::WebContentsObserver {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue