add function maintainAspectRatioOfInteriorContent to BrowserWindow in order to enforce an aspect ratio for an electron window

This commit is contained in:
Michael S. Barthelemy 2015-07-16 13:54:51 -04:00
parent ca2cb9c9ba
commit 666aca7803
5 changed files with 53 additions and 0 deletions

View file

@ -95,6 +95,7 @@ class Window : public mate::TrackableObject<Window>,
bool IsMinimized();
void SetFullScreen(bool fullscreen);
bool IsFullscreen();
void MaintainAspectRatioOfInteriorContent(double aspectRatio, double extraWidth, double extraHeight);
void SetBounds(const gfx::Rect& bounds);
gfx::Rect GetBounds();
void SetSize(int width, int height);