mirror of
https://github.com/electron/electron.git
synced 2026-01-28 16:58:21 -05:00
notify delegate when devtools is loaded
This commit is contained in:
@@ -368,6 +368,9 @@ void InspectableWebContentsImpl::LoadCompleted() {
|
||||
// If the devtools can dock, "SetIsDocked" will be called by devtools itself.
|
||||
if (!can_dock_)
|
||||
SetIsDocked(DispatchCallback(), false);
|
||||
|
||||
if (view_->GetDelegate())
|
||||
view_->GetDelegate()->DevToolsLoaded();
|
||||
}
|
||||
|
||||
void InspectableWebContentsImpl::SetInspectedPageBounds(const gfx::Rect& rect) {
|
||||
|
||||
@@ -12,6 +12,7 @@ class InspectableWebContentsViewDelegate {
|
||||
virtual void DevToolsFocused() {}
|
||||
virtual void DevToolsOpened() {}
|
||||
virtual void DevToolsClosed() {}
|
||||
virtual void DevToolsLoaded() {}
|
||||
|
||||
// Returns the icon of devtools window.
|
||||
virtual gfx::ImageSkia GetDevToolsWindowIcon();
|
||||
|
||||
Reference in New Issue
Block a user