OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/toolbar/wrench_menu_model.h" | 5 #include "chrome/browser/ui/toolbar/wrench_menu_model.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 int zoom_percent = 100; | 715 int zoom_percent = 100; |
716 if (browser_->tab_strip_model()->GetActiveWebContents()) { | 716 if (browser_->tab_strip_model()->GetActiveWebContents()) { |
717 zoom_percent = | 717 zoom_percent = |
718 browser_->tab_strip_model()->GetActiveWebContents()->GetZoomPercent( | 718 browser_->tab_strip_model()->GetActiveWebContents()->GetZoomPercent( |
719 &enable_increment, &enable_decrement); | 719 &enable_increment, &enable_decrement); |
720 } | 720 } |
721 zoom_label_ = l10n_util::GetStringFUTF16( | 721 zoom_label_ = l10n_util::GetStringFUTF16( |
722 IDS_ZOOM_PERCENT, base::IntToString16(zoom_percent)); | 722 IDS_ZOOM_PERCENT, base::IntToString16(zoom_percent)); |
723 } | 723 } |
724 | 724 |
725 void WrenchMenuModel::OnZoomLevelChanged(const std::string& host) { | 725 void WrenchMenuModel::OnZoomLevelChanged( |
| 726 const content::HostZoomMap::ZoomLevelChange& change) { |
726 UpdateZoomControls(); | 727 UpdateZoomControls(); |
727 } | 728 } |
OLD | NEW |