Merge pull request #5644 from leethomas/fix/osx-aspect-ratio

🍎  let Cocoa handle keeping aspect ratio on window resize
This commit is contained in:
Cheng Zhao 2016-05-23 08:15:44 +00:00
commit 1b9bced8c0
3 changed files with 20 additions and 17 deletions

View file

@ -191,7 +191,7 @@ class NativeWindow : public base::SupportsUserData,
// Set the aspect ratio when resizing window.
double GetAspectRatio();
gfx::Size GetAspectRatioExtraSize();
void SetAspectRatio(double aspect_ratio, const gfx::Size& extra_size);
virtual void SetAspectRatio(double aspect_ratio, const gfx::Size& extra_size);
base::WeakPtr<NativeWindow> GetWeakPtr() {
return weak_factory_.GetWeakPtr();