feat: expose content-bounds-updated event (#35533)
This commit is contained in:
parent
200153da8e
commit
9f97c3e50a
3 changed files with 73 additions and 6 deletions
|
@ -1180,8 +1180,9 @@ void WebContents::BeforeUnloadFired(content::WebContents* tab,
|
|||
|
||||
void WebContents::SetContentsBounds(content::WebContents* source,
|
||||
const gfx::Rect& rect) {
|
||||
for (ExtendedWebContentsObserver& observer : observers_)
|
||||
observer.OnSetContentBounds(rect);
|
||||
if (!Emit("content-bounds-updated", rect))
|
||||
for (ExtendedWebContentsObserver& observer : observers_)
|
||||
observer.OnSetContentBounds(rect);
|
||||
}
|
||||
|
||||
void WebContents::CloseContents(content::WebContents* source) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue