| 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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 | 921 |
| 922 void BrowserWindowGtk::FocusChromeOSStatus() { | 922 void BrowserWindowGtk::FocusChromeOSStatus() { |
| 923 NOTIMPLEMENTED(); | 923 NOTIMPLEMENTED(); |
| 924 } | 924 } |
| 925 | 925 |
| 926 void BrowserWindowGtk::RotatePaneFocus(bool forwards) { | 926 void BrowserWindowGtk::RotatePaneFocus(bool forwards) { |
| 927 NOTIMPLEMENTED(); | 927 NOTIMPLEMENTED(); |
| 928 } | 928 } |
| 929 | 929 |
| 930 bool BrowserWindowGtk::IsBookmarkBarVisible() const { | 930 bool BrowserWindowGtk::IsBookmarkBarVisible() const { |
| 931 return (browser_->SupportsWindowFeature(Browser::FEATURE_BOOKMARKBAR) && | 931 return browser_->SupportsWindowFeature(Browser::FEATURE_BOOKMARKBAR) && |
| 932 bookmark_bar_.get() && | 932 bookmark_bar_.get() && |
| 933 browser_->profile()->GetPrefs()->GetBoolean( | 933 browser_->profile()->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar); |
| 934 prefs::kShowBookmarkBar) && | |
| 935 browser_->profile()->GetPrefs()->GetBoolean( | |
| 936 prefs::kEnableBookmarkBar)); | |
| 937 } | 934 } |
| 938 | 935 |
| 939 bool BrowserWindowGtk::IsBookmarkBarAnimating() const { | 936 bool BrowserWindowGtk::IsBookmarkBarAnimating() const { |
| 940 if (IsBookmarkBarSupported() && bookmark_bar_->IsAnimating()) | 937 if (IsBookmarkBarSupported() && bookmark_bar_->IsAnimating()) |
| 941 return true; | 938 return true; |
| 942 return false; | 939 return false; |
| 943 } | 940 } |
| 944 | 941 |
| 945 bool BrowserWindowGtk::IsTabStripEditable() const { | 942 bool BrowserWindowGtk::IsTabStripEditable() const { |
| 946 return !tabstrip()->IsDragSessionActive() && | 943 return !tabstrip()->IsDragSessionActive() && |
| (...skipping 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2390 // are taken from the WMs' source code. | 2387 // are taken from the WMs' source code. |
| 2391 return (wm_name == "Blackbox" || | 2388 return (wm_name == "Blackbox" || |
| 2392 wm_name == "compiz" || | 2389 wm_name == "compiz" || |
| 2393 wm_name == "Compiz" || | 2390 wm_name == "Compiz" || |
| 2394 wm_name == "e16" || // Enlightenment DR16 | 2391 wm_name == "e16" || // Enlightenment DR16 |
| 2395 wm_name == "Metacity" || | 2392 wm_name == "Metacity" || |
| 2396 wm_name == "Mutter" || | 2393 wm_name == "Mutter" || |
| 2397 wm_name == "Openbox" || | 2394 wm_name == "Openbox" || |
| 2398 wm_name == "Xfwm4"); | 2395 wm_name == "Xfwm4"); |
| 2399 } | 2396 } |
| OLD | NEW |