Add InspectableWebContents::GetDevToolsWebContents

This commit is contained in:
Cheng Zhao 2015-06-05 14:33:37 +08:00
parent 9ab9b392d6
commit d1e70e7826
5 changed files with 27 additions and 21 deletions

View file

@ -46,6 +46,7 @@ class InspectableWebContentsImpl :
InspectableWebContentsView* GetView() const override;
content::WebContents* GetWebContents() const override;
content::WebContents* GetDevToolsWebContents() const override;
void SetDelegate(InspectableWebContentsDelegate* delegate) override;
InspectableWebContentsDelegate* GetDelegate() const override;
@ -64,10 +65,6 @@ class InspectableWebContentsImpl :
gfx::Rect GetDevToolsBounds() const;
void SaveDevToolsBounds(const gfx::Rect& bounds);
content::WebContents* devtools_web_contents() {
return devtools_web_contents_.get();
}
private:
// DevToolsEmbedderMessageDispacher::Delegate
void ActivateWindow() override;