return window_->IsFullscreen();
}
-void Window::MaintainContentAspectRatio(double aspectRatio, double width, double height) {
+void Window::MaintainContentAspectRatio(double aspectRatio,
+ double width, double height) {
window_->MaintainContentAspectRatio(aspectRatio, gfx::Size(width, height));
}
.SetMethod("isMinimized", &Window::IsMinimized)
.SetMethod("setFullScreen", &Window::SetFullScreen)
.SetMethod("isFullScreen", &Window::IsFullscreen)
- .SetMethod("maintainContentAspectRatio", &Window::MaintainContentAspectRatio)
+ .SetMethod("maintainContentAspectRatio",
+ &Window::MaintainContentAspectRatio)
.SetMethod("getBounds", &Window::GetBounds)
.SetMethod("setBounds", &Window::SetBounds)
.SetMethod("getSize", &Window::GetSize)
bool IsMinimized();
void SetFullScreen(bool fullscreen);
bool IsFullscreen();
- void MaintainContentAspectRatio(double aspectRatio, double width, double height);
+ void MaintainContentAspectRatio(double aspectRatio,
+ double width, double height);
void SetBounds(const gfx::Rect& bounds);
gfx::Rect GetBounds();
void SetSize(int width, int height);
return interiorContentExtraSize;
}
-void NativeWindow::MaintainContentAspectRatio(double aspectRatio, const gfx::Size& extraSize) {
+void NativeWindow::MaintainContentAspectRatio(double aspectRatio,
+ const gfx::Size& extraSize) {
interiorContentAspectRatio = aspectRatio;
interiorContentExtraSize = extraSize;
}
virtual bool IsFullscreen() const = 0;
double GetInteriorContentAspectRatio();
virtual gfx::Size GetInteriorContentExtraSize();
- virtual void MaintainContentAspectRatio(double aspectRatio, const gfx::Size& extraSize);
+ virtual void MaintainContentAspectRatio(double aspectRatio,
+ const gfx::Size& extraSize);
virtual void SetBounds(const gfx::Rect& bounds) = 0;
virtual gfx::Rect GetBounds() = 0;
virtual void SetSize(const gfx::Size& size);