mirror of
https://github.com/electron/electron.git
synced 2026-01-23 14:28:17 -05:00
shorten names
This commit is contained in:
@@ -249,8 +249,8 @@ bool Window::IsFullscreen() {
|
||||
return window_->IsFullscreen();
|
||||
}
|
||||
|
||||
void Window::MaintainAspectRatioOfInteriorContent(double aspectRatio, double extraWidth, double extraHeight) {
|
||||
window_->MaintainAspectRatioOfInteriorContent(aspectRatio, gfx::Size(extraWidth, extraHeight));
|
||||
void Window::MaintainContentAspectRatio(double aspectRatio, double width, double height) {
|
||||
window_->MaintainContentAspectRatio(aspectRatio, gfx::Size(width, height));
|
||||
}
|
||||
|
||||
void Window::SetBounds(const gfx::Rect& bounds) {
|
||||
@@ -502,7 +502,7 @@ void Window::BuildPrototype(v8::Isolate* isolate,
|
||||
.SetMethod("isMinimized", &Window::IsMinimized)
|
||||
.SetMethod("setFullScreen", &Window::SetFullScreen)
|
||||
.SetMethod("isFullScreen", &Window::IsFullscreen)
|
||||
.SetMethod("maintainAspectRatioOfInteriorContent", &Window::MaintainAspectRatioOfInteriorContent)
|
||||
.SetMethod("maintainContentAspectRatio", &Window::MaintainContentAspectRatio)
|
||||
.SetMethod("getBounds", &Window::GetBounds)
|
||||
.SetMethod("setBounds", &Window::SetBounds)
|
||||
.SetMethod("getSize", &Window::GetSize)
|
||||
|
||||
@@ -95,7 +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 MaintainContentAspectRatio(double aspectRatio, double width, double height);
|
||||
void SetBounds(const gfx::Rect& bounds);
|
||||
gfx::Rect GetBounds();
|
||||
void SetSize(int width, int height);
|
||||
|
||||
@@ -203,7 +203,7 @@ gfx::Size NativeWindow::GetInteriorContentExtraSize() {
|
||||
return interiorContentExtraSize;
|
||||
}
|
||||
|
||||
void NativeWindow::MaintainAspectRatioOfInteriorContent(double aspectRatio, const gfx::Size& extraSize) {
|
||||
void NativeWindow::MaintainContentAspectRatio(double aspectRatio, const gfx::Size& extraSize) {
|
||||
interiorContentAspectRatio = aspectRatio;
|
||||
interiorContentExtraSize = extraSize;
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ class NativeWindow : public content::WebContentsObserver,
|
||||
virtual bool IsFullscreen() const = 0;
|
||||
double GetInteriorContentAspectRatio();
|
||||
virtual gfx::Size GetInteriorContentExtraSize();
|
||||
virtual void MaintainAspectRatioOfInteriorContent(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);
|
||||
|
||||
Reference in New Issue
Block a user