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..a31ae8e8f9f9a34cb78c91d1c8840a6db9a55f47 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(); |
Alexei Svitkine (slow)
2014/10/30 13:49:42
IsAtDefaultZoom(contents) shouldn't negate the res
|
} |
TabStripModelDelegate::RestoreTabType GetRestoreTabType( |