| 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 <dlfcn.h> | 7 #include <dlfcn.h> |
| 8 #include <gdk/gdkkeysyms.h> | 8 #include <gdk/gdkkeysyms.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 // the animations are running slowly and this function is called on | 877 // the animations are running slowly and this function is called on |
| 878 // a timer through LoadingAnimationCallback. | 878 // a timer through LoadingAnimationCallback. |
| 879 titlebar_->UpdateThrobber(web_contents); | 879 titlebar_->UpdateThrobber(web_contents); |
| 880 } | 880 } |
| 881 } | 881 } |
| 882 | 882 |
| 883 void BrowserWindowGtk::SetStarredState(bool is_starred) { | 883 void BrowserWindowGtk::SetStarredState(bool is_starred) { |
| 884 toolbar_->GetLocationBarView()->SetStarred(is_starred); | 884 toolbar_->GetLocationBarView()->SetStarred(is_starred); |
| 885 } | 885 } |
| 886 | 886 |
| 887 void BrowserWindowGtk::SetZoomIconState(ZoomController::ZoomIconState state) { | 887 void BrowserWindowGtk::ZoomChangedForActiveTab(bool can_show_bubble) { |
| 888 toolbar_->GetLocationBarView()->SetZoomIconState(state); | 888 // TODO(dbeam): make sure |can_show_bubble| is forced to false when the wrench |
| 889 } | 889 // menu is showing. |
| 890 | 890 toolbar_->GetLocationBarView()->ZoomChangedForActiveTab(can_show_bubble); |
| 891 void BrowserWindowGtk::SetZoomIconTooltipPercent(int zoom_percent) { | |
| 892 toolbar_->GetLocationBarView()->SetZoomIconTooltipPercent(zoom_percent); | |
| 893 } | |
| 894 | |
| 895 void BrowserWindowGtk::ShowZoomBubble(int zoom_percent) { | |
| 896 toolbar_->GetLocationBarView()->ShowZoomBubble(zoom_percent); | |
| 897 } | 891 } |
| 898 | 892 |
| 899 gfx::Rect BrowserWindowGtk::GetRestoredBounds() const { | 893 gfx::Rect BrowserWindowGtk::GetRestoredBounds() const { |
| 900 return restored_bounds_; | 894 return restored_bounds_; |
| 901 } | 895 } |
| 902 | 896 |
| 903 gfx::Rect BrowserWindowGtk::GetBounds() const { | 897 gfx::Rect BrowserWindowGtk::GetBounds() const { |
| 904 return bounds_; | 898 return bounds_; |
| 905 } | 899 } |
| 906 | 900 |
| (...skipping 1690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2597 wm_type == ui::WM_OPENBOX || | 2591 wm_type == ui::WM_OPENBOX || |
| 2598 wm_type == ui::WM_XFWM4); | 2592 wm_type == ui::WM_XFWM4); |
| 2599 } | 2593 } |
| 2600 | 2594 |
| 2601 // static | 2595 // static |
| 2602 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2596 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
| 2603 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2597 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
| 2604 browser_window_gtk->Init(); | 2598 browser_window_gtk->Init(); |
| 2605 return browser_window_gtk; | 2599 return browser_window_gtk; |
| 2606 } | 2600 } |
| OLD | NEW |