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