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

Unified Diff: chrome/browser/ui/views/frame/browser_view.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/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 2039a4490d0cf8abcf3048ee9ad2e1a1621b8c02..ed0b9aee832254e63478803e84aefc9320d6e213 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -699,17 +699,10 @@ void BrowserView::SetStarredState(bool is_starred) {
GetLocationBarView()->SetStarToggled(is_starred);
}
-void BrowserView::SetZoomIconState(
- ZoomController::ZoomIconState zoom_icon_state) {
- GetLocationBarView()->SetZoomIconState(zoom_icon_state);
-}
-
-void BrowserView::SetZoomIconTooltipPercent(int zoom_percent) {
- GetLocationBarView()->SetZoomIconTooltipPercent(zoom_percent);
-}
+void BrowserView::ZoomChangedForActiveTab(bool can_show_bubble) {
+ GetLocationBarView()->ZoomChangedForActiveTab(can_show_bubble);
-void BrowserView::ShowZoomBubble(int zoom_percent) {
- GetLocationBarView()->ShowZoomBubble(zoom_percent);
+ // TODO(dbeam): show a zoom bubble when the wrench menu's not showing.
}
gfx::Rect BrowserView::GetRestoredBounds() const {

Powered by Google App Engine
This is Rietveld 408576698