]> khamidou — GitHub mirrors - electron.git/commitdiff
shorten names
authorMichael S. Barthelemy <msb@idiom.com>
Thu, 16 Jul 2015 18:31:01 +0000 (14:31 -0400)
committerMichael S. Barthelemy <msb@idiom.com>
Thu, 16 Jul 2015 18:31:01 +0000 (14:31 -0400)
atom/browser/api/atom_api_window.cc
atom/browser/api/atom_api_window.h
atom/browser/native_window.cc
atom/browser/native_window.h

index ae907b0669d53b8cab8cd1de0c560e237a930449..85fbcb872bc00fb0c4569f9030e7a03dfea17672 100644 (file)
@@ -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)
index 8c27f5b36a6f6a0e520f57c65227597adac32bd7..21f61b5d5e00a12071b2b2b8f98379038bf70269 100644 (file)
@@ -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);
index 8e21876fdfa3612180a4dd34d235b1489ecab111..5014c041cf7b911654b309aec0b675fbc454c887 100644 (file)
@@ -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;
 }
index 248a8a5338d71c6ebf80ce4dc80091776a31a53c..b73ff47dbdf78e4d3385433648d655cbd9298088 100644 (file)
@@ -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);