Add InspectableWebContentsDelegate.

This commit is contained in:
Cheng Zhao 2014-03-04 16:12:02 +08:00
parent 967efaad58
commit e3aaaf2643
5 changed files with 50 additions and 2 deletions

View file

@ -23,6 +23,7 @@ class DevToolsClientHost;
namespace brightray {
class InspectableWebContentsDelegate;
class InspectableWebContentsView;
class InspectableWebContentsImpl :
@ -43,6 +44,10 @@ class InspectableWebContentsImpl :
virtual void ShowDevTools() OVERRIDE;
virtual bool IsDevToolsViewShowing() OVERRIDE;
virtual void SetDelegate(InspectableWebContentsDelegate* delegate) {
delegate_ = delegate;
}
content::WebContents* devtools_web_contents() {
return devtools_web_contents_.get();
}
@ -101,6 +106,8 @@ class InspectableWebContentsImpl :
scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_;
InspectableWebContentsDelegate* delegate_;
DISALLOW_COPY_AND_ASSIGN(InspectableWebContentsImpl);
};