Use new devtools resizing strategy from Chrome 37.
This commit is contained in:
parent
f8c8c415eb
commit
4107089363
6 changed files with 35 additions and 90 deletions
|
@ -212,9 +212,8 @@ void InspectableWebContentsImpl::CloseWindow() {
|
|||
devtools_web_contents()->DispatchBeforeUnload(false);
|
||||
}
|
||||
|
||||
void InspectableWebContentsImpl::SetContentsResizingStrategy(
|
||||
const gfx::Insets& insets, const gfx::Size& min_size) {
|
||||
DevToolsContentsResizingStrategy strategy(insets, min_size);
|
||||
void InspectableWebContentsImpl::SetInspectedPageBounds(const gfx::Rect& rect) {
|
||||
DevToolsContentsResizingStrategy strategy(rect);
|
||||
if (contents_resizing_strategy_.Equals(strategy))
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue