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

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: Created 8 years, 7 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 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 // the animations are running slowly and this function is called on 880 // the animations are running slowly and this function is called on
881 // a timer through LoadingAnimationCallback. 881 // a timer through LoadingAnimationCallback.
882 titlebar_->UpdateThrobber(web_contents); 882 titlebar_->UpdateThrobber(web_contents);
883 } 883 }
884 } 884 }
885 885
886 void BrowserWindowGtk::SetStarredState(bool is_starred) { 886 void BrowserWindowGtk::SetStarredState(bool is_starred) {
887 toolbar_->GetLocationBarView()->SetStarred(is_starred); 887 toolbar_->GetLocationBarView()->SetStarred(is_starred);
888 } 888 }
889 889
890 void BrowserWindowGtk::SetZoomIconState(ZoomTabHelper::ZoomIconState state,
891 int zoomPercent) {
892 // TODO(khorimoto): Implement this.
893 }
894
895 void BrowserWindowGtk::ShowZoomBubble(int zoomPercent) {
896 // TODO(khorimoto): Implement this.
897 }
898
890 gfx::Rect BrowserWindowGtk::GetRestoredBounds() const { 899 gfx::Rect BrowserWindowGtk::GetRestoredBounds() const {
891 return restored_bounds_; 900 return restored_bounds_;
892 } 901 }
893 902
894 gfx::Rect BrowserWindowGtk::GetBounds() const { 903 gfx::Rect BrowserWindowGtk::GetBounds() const {
895 return bounds_; 904 return bounds_;
896 } 905 }
897 906
898 bool BrowserWindowGtk::IsMaximized() const { 907 bool BrowserWindowGtk::IsMaximized() const {
899 return (state_ & GDK_WINDOW_STATE_MAXIMIZED); 908 return (state_ & GDK_WINDOW_STATE_MAXIMIZED);
(...skipping 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after
2601 wm_type == ui::WM_OPENBOX || 2610 wm_type == ui::WM_OPENBOX ||
2602 wm_type == ui::WM_XFWM4); 2611 wm_type == ui::WM_XFWM4);
2603 } 2612 }
2604 2613
2605 // static 2614 // static
2606 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { 2615 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) {
2607 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); 2616 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser);
2608 browser_window_gtk->Init(); 2617 browser_window_gtk->Init();
2609 return browser_window_gtk; 2618 return browser_window_gtk;
2610 } 2619 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698