Use new devtools resizing strategy from Chrome 37.

This commit is contained in:
Cheng Zhao 2014-09-01 19:15:07 +08:00
parent f8c8c415eb
commit 4107089363
6 changed files with 35 additions and 90 deletions

View file

@ -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;