diff options
Diffstat (limited to 'chrome/browser/browser_commands.cc')
-rw-r--r-- | chrome/browser/browser_commands.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/browser_commands.cc b/chrome/browser/browser_commands.cc index 12d70ce..cca8754 100644 --- a/chrome/browser/browser_commands.cc +++ b/chrome/browser/browser_commands.cc @@ -512,8 +512,8 @@ void Browser::ExecuteCommand(int id) { UserMetrics::RecordAction(L"ZoomPlus", profile_); TabContents* current_tab = GetSelectedTabContents(); if (current_tab->AsWebContents()) { - current_tab->AsWebContents()->render_view_host()->AlterTextSize( - text_zoom::TEXT_LARGER); + current_tab->AsWebContents()->render_view_host()->Zoom( + PageZoom::LARGER); } break; } @@ -522,8 +522,8 @@ void Browser::ExecuteCommand(int id) { UserMetrics::RecordAction(L"ZoomMinus", profile_); TabContents* current_tab = GetSelectedTabContents(); if (current_tab->AsWebContents()) { - current_tab->AsWebContents()->render_view_host()->AlterTextSize( - text_zoom::TEXT_SMALLER); + current_tab->AsWebContents()->render_view_host()->Zoom( + PageZoom::SMALLER); } break; } @@ -532,8 +532,8 @@ void Browser::ExecuteCommand(int id) { UserMetrics::RecordAction(L"ZoomNormal", profile_); TabContents* current_tab = GetSelectedTabContents(); if (current_tab->AsWebContents()) { - current_tab->AsWebContents()->render_view_host()->AlterTextSize( - text_zoom::TEXT_STANDARD); + current_tab->AsWebContents()->render_view_host()->Zoom( + PageZoom::STANDARD); } break; } |