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

Unified Diff: chrome/browser/ui/gtk/browser_window_gtk.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: . Created 8 years, 4 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/gtk/browser_window_gtk.cc
diff --git a/chrome/browser/ui/gtk/browser_window_gtk.cc b/chrome/browser/ui/gtk/browser_window_gtk.cc
index 8f106730388764997c736c0a6c1f208b36eab793..c69d445030c94d0139da05cfef9bc38c3566a41d 100644
--- a/chrome/browser/ui/gtk/browser_window_gtk.cc
+++ b/chrome/browser/ui/gtk/browser_window_gtk.cc
@@ -840,16 +840,10 @@ void BrowserWindowGtk::SetStarredState(bool is_starred) {
toolbar_->GetLocationBarView()->SetStarred(is_starred);
}
-void BrowserWindowGtk::SetZoomIconState(ZoomController::ZoomIconState state) {
- toolbar_->GetLocationBarView()->SetZoomIconState(state);
-}
-
-void BrowserWindowGtk::SetZoomIconTooltipPercent(int zoom_percent) {
- toolbar_->GetLocationBarView()->SetZoomIconTooltipPercent(zoom_percent);
-}
-
-void BrowserWindowGtk::ShowZoomBubble(int zoom_percent) {
- toolbar_->GetLocationBarView()->ShowZoomBubble(zoom_percent);
+void BrowserWindowGtk::ZoomChangedForActiveTab(bool can_show_bubble) {
+ // TODO(dbeam): make sure |can_show_bubble| is forced to false when the wrench
+ // menu is showing.
+ toolbar_->GetLocationBarView()->ZoomChangedForActiveTab(can_show_bubble);
}
gfx::Rect BrowserWindowGtk::GetRestoredBounds() const {

Powered by Google App Engine
This is Rietveld 408576698