Index: chrome/browser/ui/browser_commands.cc |
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc |
index 76c73ebf2732615c102e06616997d39516bce80f..e6635a658fbe9cb7696fdd359ce6d27769de4421 100644 |
--- a/chrome/browser/ui/browser_commands.cc |
+++ b/chrome/browser/ui/browser_commands.cc |
@@ -596,21 +596,21 @@ void CloseTab(Browser* browser) { |
browser->tab_strip_model()->CloseSelectedTabs(); |
} |
-bool CanZoomIn(content::WebContents* contents) { |
+bool IsAtMaximumZoom(content::WebContents* contents) { |
ZoomController* zoom_controller = ZoomController::FromWebContents(contents); |
return zoom_controller->GetZoomPercent() != |
contents->GetMaximumZoomPercent() + 1; |
} |
-bool CanZoomOut(content::WebContents* contents) { |
+bool IsAtMinimumZoom(content::WebContents* contents) { |
ZoomController* zoom_controller = ZoomController::FromWebContents(contents); |
return zoom_controller->GetZoomPercent() != |
contents->GetMinimumZoomPercent(); |
} |
-bool ActualSize(content::WebContents* contents) { |
+bool IsAtDefaultZoom(content::WebContents* contents) { |
ZoomController* zoom_controller = ZoomController::FromWebContents(contents); |
- return zoom_controller->GetZoomPercent() != 100.0f; |
+ return zoom_controller->IsAtDefaultZoom(); |
wjmaclean
2014/11/01 17:45:47
Thanks, this is definitely preferred.
|
} |
TabStripModelDelegate::RestoreTabType GetRestoreTabType( |