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 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
892 bool BrowserWindowGtk::IsBookmarkBarAnimating() const { | 892 bool BrowserWindowGtk::IsBookmarkBarAnimating() const { |
893 if (IsBookmarkBarSupported() && bookmark_bar_->IsAnimating()) | 893 if (IsBookmarkBarSupported() && bookmark_bar_->IsAnimating()) |
894 return true; | 894 return true; |
895 return false; | 895 return false; |
896 } | 896 } |
897 | 897 |
898 bool BrowserWindowGtk::IsToolbarVisible() const { | 898 bool BrowserWindowGtk::IsToolbarVisible() const { |
899 return IsToolbarSupported(); | 899 return IsToolbarSupported(); |
900 } | 900 } |
901 | 901 |
902 gfx::Rect BrowserWindowGtk::GetRootWindowResizerRect() const { | |
903 return gfx::Rect(); | |
904 } | |
905 | |
906 void BrowserWindowGtk::ConfirmAddSearchProvider(const TemplateURL* template_url, | 902 void BrowserWindowGtk::ConfirmAddSearchProvider(const TemplateURL* template_url, |
907 Profile* profile) { | 903 Profile* profile) { |
908 new EditSearchEngineDialog(window_, template_url, NULL, profile); | 904 new EditSearchEngineDialog(window_, template_url, NULL, profile); |
909 } | 905 } |
910 | 906 |
911 void BrowserWindowGtk::ToggleBookmarkBar() { | 907 void BrowserWindowGtk::ToggleBookmarkBar() { |
912 bookmark_utils::ToggleWhenVisible(browser_->profile()); | 908 bookmark_utils::ToggleWhenVisible(browser_->profile()); |
913 } | 909 } |
914 | 910 |
915 views::Window* BrowserWindowGtk::ShowAboutChromeDialog() { | 911 views::Window* BrowserWindowGtk::ShowAboutChromeDialog() { |
(...skipping 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2258 // special-case the ones where the custom frame should be used. These names | 2254 // special-case the ones where the custom frame should be used. These names |
2259 // are taken from the WMs' source code. | 2255 // are taken from the WMs' source code. |
2260 return (wm_name == "Blackbox" || | 2256 return (wm_name == "Blackbox" || |
2261 wm_name == "compiz" || | 2257 wm_name == "compiz" || |
2262 wm_name == "e16" || // Enlightenment DR16 | 2258 wm_name == "e16" || // Enlightenment DR16 |
2263 wm_name == "Metacity" || | 2259 wm_name == "Metacity" || |
2264 wm_name == "Mutter" || | 2260 wm_name == "Mutter" || |
2265 wm_name == "Openbox" || | 2261 wm_name == "Openbox" || |
2266 wm_name == "Xfwm4"); | 2262 wm_name == "Xfwm4"); |
2267 } | 2263 } |
OLD | NEW |