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

@ -28,6 +28,7 @@ class InspectableWebContents {
virtual InspectableWebContentsView* GetView() const = 0;
virtual content::WebContents* GetWebContents() const = 0;
virtual content::WebContents* GetDevToolsWebContents() const = 0;
// The delegate manages its own life.
virtual void SetDelegate(InspectableWebContentsDelegate* delegate) = 0;
@ -40,9 +41,9 @@ class InspectableWebContents {
virtual void AttachTo(const scoped_refptr<content::DevToolsAgentHost>&) = 0;
virtual void Detach() = 0;
virtual void CallClientFunction(const std::string& function_name,
const base::Value* arg1,
const base::Value* arg2,
const base::Value* arg3) = 0;
const base::Value* arg1 = nullptr,
const base::Value* arg2 = nullptr,
const base::Value* arg3 = nullptr) = 0;
};
} // namespace brightray