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

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

Issue 10444040: Tracks changes to zoom icon and zoom percentage. Notifies browser window if the icon should be chan… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Changed delegate to observer Created 8 years, 6 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
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 <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 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 // the animations are running slowly and this function is called on 879 // the animations are running slowly and this function is called on
880 // a timer through LoadingAnimationCallback. 880 // a timer through LoadingAnimationCallback.
881 titlebar_->UpdateThrobber(web_contents); 881 titlebar_->UpdateThrobber(web_contents);
882 } 882 }
883 } 883 }
884 884
885 void BrowserWindowGtk::SetStarredState(bool is_starred) { 885 void BrowserWindowGtk::SetStarredState(bool is_starred) {
886 toolbar_->GetLocationBarView()->SetStarred(is_starred); 886 toolbar_->GetLocationBarView()->SetStarred(is_starred);
887 } 887 }
888 888
889 void BrowserWindowGtk::SetZoomIconState(ZoomController::ZoomIconState state) {
890 // TODO(khorimoto): Implement this.
891 }
892
893 void BrowserWindowGtk::SetZoomIconTooltipPercent(int zoom_percent) {
894 // TODO(khorimoto): Implement this.
895 }
896
897 void BrowserWindowGtk::ShowZoomBubble(int zoomPercent) {
tfarina 2012/06/01 00:47:53 nit: zoom_percent
Kyle Horimoto 2012/06/01 18:04:50 Done.
898 // TODO(khorimoto): Implement this.
899 }
900
889 gfx::Rect BrowserWindowGtk::GetRestoredBounds() const { 901 gfx::Rect BrowserWindowGtk::GetRestoredBounds() const {
890 return restored_bounds_; 902 return restored_bounds_;
891 } 903 }
892 904
893 gfx::Rect BrowserWindowGtk::GetBounds() const { 905 gfx::Rect BrowserWindowGtk::GetBounds() const {
894 return bounds_; 906 return bounds_;
895 } 907 }
896 908
897 bool BrowserWindowGtk::IsMaximized() const { 909 bool BrowserWindowGtk::IsMaximized() const {
898 return (state_ & GDK_WINDOW_STATE_MAXIMIZED); 910 return (state_ & GDK_WINDOW_STATE_MAXIMIZED);
(...skipping 1690 matching lines...) Expand 10 before | Expand all | Expand 10 after
2589 wm_type == ui::WM_OPENBOX || 2601 wm_type == ui::WM_OPENBOX ||
2590 wm_type == ui::WM_XFWM4); 2602 wm_type == ui::WM_XFWM4);
2591 } 2603 }
2592 2604
2593 // static 2605 // static
2594 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { 2606 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) {
2595 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); 2607 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser);
2596 browser_window_gtk->Init(); 2608 browser_window_gtk->Init();
2597 return browser_window_gtk; 2609 return browser_window_gtk;
2598 } 2610 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698