Add InspectableWebContentsDelegate.
This commit is contained in:
parent
967efaad58
commit
e3aaaf2643
5 changed files with 50 additions and 2 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue