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

Side by Side Diff: chrome/browser/ui/gtk/browser_window_gtk.cc

Issue 10831372: Revert 152080 - 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 unified diff | Download patch | Annotate | Revision Log
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/gtk/browser_window_gtk.h" 5 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 // the animations are running slowly and this function is called on 833 // the animations are running slowly and this function is called on
834 // a timer through LoadingAnimationCallback. 834 // a timer through LoadingAnimationCallback.
835 titlebar_->UpdateThrobber(web_contents); 835 titlebar_->UpdateThrobber(web_contents);
836 } 836 }
837 } 837 }
838 838
839 void BrowserWindowGtk::SetStarredState(bool is_starred) { 839 void BrowserWindowGtk::SetStarredState(bool is_starred) {
840 toolbar_->GetLocationBarView()->SetStarred(is_starred); 840 toolbar_->GetLocationBarView()->SetStarred(is_starred);
841 } 841 }
842 842
843 void BrowserWindowGtk::ZoomChangedForActiveTab(bool can_show_bubble) { 843 void BrowserWindowGtk::SetZoomIconState(ZoomController::ZoomIconState state) {
844 toolbar_->GetLocationBarView()->ZoomChangedForActiveTab(can_show_bubble); 844 toolbar_->GetLocationBarView()->SetZoomIconState(state);
845 }
846
847 void BrowserWindowGtk::SetZoomIconTooltipPercent(int zoom_percent) {
848 toolbar_->GetLocationBarView()->SetZoomIconTooltipPercent(zoom_percent);
849 }
850
851 void BrowserWindowGtk::ShowZoomBubble(int zoom_percent) {
852 toolbar_->GetLocationBarView()->ShowZoomBubble(zoom_percent);
845 } 853 }
846 854
847 gfx::Rect BrowserWindowGtk::GetRestoredBounds() const { 855 gfx::Rect BrowserWindowGtk::GetRestoredBounds() const {
848 return restored_bounds_; 856 return restored_bounds_;
849 } 857 }
850 858
851 gfx::Rect BrowserWindowGtk::GetBounds() const { 859 gfx::Rect BrowserWindowGtk::GetBounds() const {
852 return bounds_; 860 return bounds_;
853 } 861 }
854 862
(...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after
2544 wm_type == ui::WM_OPENBOX || 2552 wm_type == ui::WM_OPENBOX ||
2545 wm_type == ui::WM_XFWM4); 2553 wm_type == ui::WM_XFWM4);
2546 } 2554 }
2547 2555
2548 // static 2556 // static
2549 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { 2557 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) {
2550 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); 2558 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser);
2551 browser_window_gtk->Init(); 2559 browser_window_gtk->Init();
2552 return browser_window_gtk; 2560 return browser_window_gtk;
2553 } 2561 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.h ('k') | chrome/browser/ui/gtk/location_bar_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698