| Index: chrome/browser/ui/browser_commands.cc
|
| diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
|
| index 37da6f327e5dbc11213e05c12733f9415a7b088f..86bfd288f81087fdeb732f68e3a7a81c877cb867 100644
|
| --- a/chrome/browser/ui/browser_commands.cc
|
| +++ b/chrome/browser/ui/browser_commands.cc
|
| @@ -578,6 +578,23 @@ void CloseTab(Browser* browser) {
|
| browser->tab_strip_model()->CloseSelectedTabs();
|
| }
|
|
|
| +bool CanZoomIn(content::WebContents* contents) {
|
| + bool dummy = false;
|
| + return contents->GetZoomPercent(&dummy, &dummy) !=
|
| + contents->GetMaximumZoomPercent() + 1;
|
| +}
|
| +
|
| +bool CanZoomOut(content::WebContents* contents) {
|
| + bool dummy = false;
|
| + return contents->GetZoomPercent(&dummy, &dummy) !=
|
| + contents->GetMinimumZoomPercent();
|
| +}
|
| +
|
| +bool ActualSize(content::WebContents* contents) {
|
| + bool dummy = false;
|
| + return contents->GetZoomPercent(&dummy, &dummy) != 100.0f;
|
| +}
|
| +
|
| void RestoreTab(Browser* browser) {
|
| content::RecordAction(UserMetricsAction("RestoreTab"));
|
| TabRestoreService* service =
|
|
|