Add InspectableWebContentsDelegate.
This commit is contained in:
parent
967efaad58
commit
e3aaaf2643
5 changed files with 50 additions and 2 deletions
26
brightray/browser/inspectable_web_contents_delegate.h
Normal file
26
brightray/browser/inspectable_web_contents_delegate.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
#ifndef BRIGHTRAY_INSPECTABLE_WEB_CONTENTS_DELEGATE_H_
|
||||
#define BRIGHTRAY_INSPECTABLE_WEB_CONTENTS_DELEGATE_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace brightray {
|
||||
|
||||
class InspectableWebContentsDelegate {
|
||||
public:
|
||||
virtual ~InspectableWebContentsDelegate() {}
|
||||
|
||||
// Called when the devtools is going to change the dock side, returning true
|
||||
// to override the default behavior.
|
||||
// Receiver should set |succeed| to |false| if it failed to handle this.
|
||||
virtual bool DevToolsSetDockSide(const std::string& side, bool* succeed) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Called when the devtools is going to be showed, returning true to override
|
||||
// the default behavior.
|
||||
virtual bool DevToolsShow(const std::string& side) { return false; }
|
||||
};
|
||||
|
||||
} // namespace brightray
|
||||
|
||||
#endif // BRIGHTRAY_INSPECTABLE_WEB_CONTENTS_DELEGATE_H_
|
Loading…
Add table
Add a link
Reference in a new issue