Add 2.0 comment about setZoomLevelLimits
authorKevin Sawicki <kevinsawicki@gmail.com>
Tue, 22 Nov 2016 16:09:14 +0000 (08:09 -0800)
committerKevin Sawicki <kevinsawicki@gmail.com>
Tue, 22 Nov 2016 16:09:14 +0000 (08:09 -0800)
atom/renderer/api/atom_api_web_frame.cc

index 455073c14cd9f148845f19a5c2bc3970e7ab4ac2..fcfc50cf7f134e73105e66037fbce8470d4d8043 100644 (file)
@@ -231,7 +231,6 @@ void WebFrame::BuildPrototype(
       .SetMethod("getZoomLevel", &WebFrame::GetZoomLevel)
       .SetMethod("setZoomFactor", &WebFrame::SetZoomFactor)
       .SetMethod("getZoomFactor", &WebFrame::GetZoomFactor)
-      .SetMethod("setZoomLevelLimits", &WebFrame::SetVisualZoomLevelLimits)
       .SetMethod("setVisualZoomLevelLimits",
                  &WebFrame::SetVisualZoomLevelLimits)
       .SetMethod("setLayoutZoomLevelLimits",
@@ -252,7 +251,9 @@ void WebFrame::BuildPrototype(
       .SetMethod("insertText", &WebFrame::InsertText)
       .SetMethod("executeJavaScript", &WebFrame::ExecuteJavaScript)
       .SetMethod("getResourceUsage", &WebFrame::GetResourceUsage)
-      .SetMethod("clearCache", &WebFrame::ClearCache);
+      .SetMethod("clearCache", &WebFrame::ClearCache)
+      // TODO(kevinsawicki): Remove in 2.0, deprecate before then with warnings
+      .SetMethod("setZoomLevelLimits", &WebFrame::SetVisualZoomLevelLimits);
 }
 
 }  // namespace api