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

Unified Diff: chrome/browser/ui/browser.cc

Issue 10736028: Refactor browser window zoom handling and enable zoom icon on all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index d97dc29d64f3d8ffe0c59e5098fb9808912dd02a..fb443ce4c47747aa9c3dff074b50040b8f57152e 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1731,21 +1731,10 @@ void Browser::URLStarredChanged(TabContents* source, bool starred) {
///////////////////////////////////////////////////////////////////////////////
// Browser, ZoomObserver implementation:
-void Browser::OnZoomIconChanged(TabContents* source,
- ZoomController::ZoomIconState state) {
- if (source == chrome::GetActiveTabContents(this))
- window_->SetZoomIconState(state);
-}
-
-void Browser::OnZoomChanged(TabContents* source,
- int zoom_percent,
- bool can_show_bubble) {
+void Browser::OnZoomChanged(TabContents* source, bool can_show_bubble) {
if (source == chrome::GetActiveTabContents(this)) {
- window_->SetZoomIconTooltipPercent(zoom_percent);
-
// Only show the zoom bubble for zoom changes in the active window.
- if (can_show_bubble && window_->IsActive())
- window_->ShowZoomBubble(zoom_percent);
+ window_->ZoomChangedForActiveTab(can_show_bubble && window_->IsActive());
Kyle Horimoto 2012/07/24 20:08:11 Also, is there a better method name we can think o
Evan Stade 2012/07/24 20:12:49 I think it's fine because "active" is the term tha
}
}

Powered by Google App Engine
This is Rietveld 408576698