Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: chrome/browser/ui/toolbar/wrench_menu_model.cc

Issue 11866004: Add scheme to HostZoomMap (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add namespace Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/toolbar/wrench_menu_model.h ('k') | chrome/browser/ui/views/wrench_menu.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/wrench_menu_model.h ('k') | chrome/browser/ui/views/wrench_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698