views: Use the quicker way of return content size
Converting content size to window size on high DPI systems will lose percise and have 1px offset sometimes.
This commit is contained in:
parent
279407f7a3
commit
a9b0111c3e
2 changed files with 5 additions and 0 deletions
|
@ -442,6 +442,10 @@ gfx::Rect NativeWindowViews::GetBounds() {
|
|||
return window_->GetWindowBoundsInScreen();
|
||||
}
|
||||
|
||||
gfx::Size NativeWindowViews::GetContentSize() {
|
||||
return web_view_->size();
|
||||
}
|
||||
|
||||
void NativeWindowViews::SetResizable(bool resizable) {
|
||||
#if defined(OS_WIN)
|
||||
// WS_MAXIMIZEBOX => Maximize button
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue