OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |