| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
| 8 | 8 |
| 9 #include <dlfcn.h> | 9 #include <dlfcn.h> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 | 905 |
| 906 void BrowserWindowGtk::FocusChromeOSStatus() { | 906 void BrowserWindowGtk::FocusChromeOSStatus() { |
| 907 NOTIMPLEMENTED(); | 907 NOTIMPLEMENTED(); |
| 908 } | 908 } |
| 909 | 909 |
| 910 void BrowserWindowGtk::RotatePaneFocus(bool forwards) { | 910 void BrowserWindowGtk::RotatePaneFocus(bool forwards) { |
| 911 NOTIMPLEMENTED(); | 911 NOTIMPLEMENTED(); |
| 912 } | 912 } |
| 913 | 913 |
| 914 bool BrowserWindowGtk::IsBookmarkBarVisible() const { | 914 bool BrowserWindowGtk::IsBookmarkBarVisible() const { |
| 915 return (browser_->SupportsWindowFeature(Browser::FEATURE_BOOKMARKBAR) && | 915 return browser_->SupportsWindowFeature(Browser::FEATURE_BOOKMARKBAR) && |
| 916 bookmark_bar_.get() && | 916 bookmark_bar_.get() && |
| 917 browser_->profile()->GetPrefs()->GetBoolean( | 917 browser_->profile()->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar); |
| 918 prefs::kShowBookmarkBar) && | |
| 919 browser_->profile()->GetPrefs()->GetBoolean( | |
| 920 prefs::kEnableBookmarkBar)); | |
| 921 } | 918 } |
| 922 | 919 |
| 923 bool BrowserWindowGtk::IsBookmarkBarAnimating() const { | 920 bool BrowserWindowGtk::IsBookmarkBarAnimating() const { |
| 924 if (IsBookmarkBarSupported() && bookmark_bar_->IsAnimating()) | 921 if (IsBookmarkBarSupported() && bookmark_bar_->IsAnimating()) |
| 925 return true; | 922 return true; |
| 926 return false; | 923 return false; |
| 927 } | 924 } |
| 928 | 925 |
| 929 bool BrowserWindowGtk::IsTabStripEditable() const { | 926 bool BrowserWindowGtk::IsTabStripEditable() const { |
| 930 return !tabstrip()->IsDragSessionActive() && | 927 return !tabstrip()->IsDragSessionActive() && |
| (...skipping 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2374 // are taken from the WMs' source code. | 2371 // are taken from the WMs' source code. |
| 2375 return (wm_name == "Blackbox" || | 2372 return (wm_name == "Blackbox" || |
| 2376 wm_name == "compiz" || | 2373 wm_name == "compiz" || |
| 2377 wm_name == "Compiz" || | 2374 wm_name == "Compiz" || |
| 2378 wm_name == "e16" || // Enlightenment DR16 | 2375 wm_name == "e16" || // Enlightenment DR16 |
| 2379 wm_name == "Metacity" || | 2376 wm_name == "Metacity" || |
| 2380 wm_name == "Mutter" || | 2377 wm_name == "Mutter" || |
| 2381 wm_name == "Openbox" || | 2378 wm_name == "Openbox" || |
| 2382 wm_name == "Xfwm4"); | 2379 wm_name == "Xfwm4"); |
| 2383 } | 2380 } |
| OLD | NEW |