Merge pull request #5644 from leethomas/fix/osx-aspect-ratio
🍎 let Cocoa handle keeping aspect ratio on window resize
This commit is contained in:
commit
1b9bced8c0
3 changed files with 20 additions and 17 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue