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

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

Issue 1227003: Automation provider IsBookmarkBarVisible() always returned yes!... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/gtk/browser_window_gtk.h" 5 #include "chrome/browser/gtk/browser_window_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 bool should_restore_state) { 778 bool should_restore_state) {
779 toolbar_->UpdateTabContents(contents, should_restore_state); 779 toolbar_->UpdateTabContents(contents, should_restore_state);
780 } 780 }
781 781
782 void BrowserWindowGtk::FocusToolbar() { 782 void BrowserWindowGtk::FocusToolbar() {
783 NOTIMPLEMENTED(); 783 NOTIMPLEMENTED();
784 } 784 }
785 785
786 bool BrowserWindowGtk::IsBookmarkBarVisible() const { 786 bool BrowserWindowGtk::IsBookmarkBarVisible() const {
787 return browser_->SupportsWindowFeature(Browser::FEATURE_BOOKMARKBAR) && 787 return browser_->SupportsWindowFeature(Browser::FEATURE_BOOKMARKBAR) &&
788 bookmark_bar_.get(); 788 bookmark_bar_.get() &&
789 browser_->profile()->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar);
789 } 790 }
790 791
791 bool BrowserWindowGtk::IsBookmarkBarAnimating() const { 792 bool BrowserWindowGtk::IsBookmarkBarAnimating() const {
792 if (IsBookmarkBarSupported() && bookmark_bar_->IsAnimating()) 793 if (IsBookmarkBarSupported() && bookmark_bar_->IsAnimating())
793 return true; 794 return true;
794 return false; 795 return false;
795 } 796 }
796 797
797 bool BrowserWindowGtk::IsToolbarVisible() const { 798 bool BrowserWindowGtk::IsToolbarVisible() const {
798 return IsToolbarSupported(); 799 return IsToolbarSupported();
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after
2048 // are taken from the WMs' source code. 2049 // are taken from the WMs' source code.
2049 return (wm_name == "Blackbox" || 2050 return (wm_name == "Blackbox" ||
2050 wm_name == "compiz" || 2051 wm_name == "compiz" ||
2051 wm_name == "e16" || // Enlightenment DR16 2052 wm_name == "e16" || // Enlightenment DR16
2052 wm_name == "KWin" || 2053 wm_name == "KWin" ||
2053 wm_name == "Metacity" || 2054 wm_name == "Metacity" ||
2054 wm_name == "Mutter" || 2055 wm_name == "Mutter" ||
2055 wm_name == "Openbox" || 2056 wm_name == "Openbox" ||
2056 wm_name == "Xfwm4"); 2057 wm_name == "Xfwm4");
2057 } 2058 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698