views: Use new devtools resizing strategy.

This commit is contained in:
Cheng Zhao 2014-09-01 20:08:31 +08:00
parent 2a8691d981
commit f013a98920

View file

@ -162,12 +162,9 @@ void InspectableWebContentsViewViews::Layout() {
}
gfx::Size container_size(width(), height());
gfx::Rect old_devtools_bounds(devtools_web_view_->bounds());
gfx::Rect old_contents_bounds(contents_web_view_->bounds());
gfx::Rect new_devtools_bounds;
gfx::Rect new_contents_bounds;
ApplyDevToolsContentsResizingStrategy(strategy_, container_size,
old_devtools_bounds, old_contents_bounds,
&new_devtools_bounds, &new_contents_bounds);
// DevTools cares about the specific position, so we have to compensate RTL