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 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 | 736 |
737 StatusBubble* BrowserWindowGtk::GetStatusBubble() { | 737 StatusBubble* BrowserWindowGtk::GetStatusBubble() { |
738 return status_bubble_.get(); | 738 return status_bubble_.get(); |
739 } | 739 } |
740 | 740 |
741 void BrowserWindowGtk::SelectedTabToolbarSizeChanged(bool is_animating) { | 741 void BrowserWindowGtk::SelectedTabToolbarSizeChanged(bool is_animating) { |
742 // On Windows, this is used for a performance optimization. | 742 // On Windows, this is used for a performance optimization. |
743 // http://code.google.com/p/chromium/issues/detail?id=12291 | 743 // http://code.google.com/p/chromium/issues/detail?id=12291 |
744 } | 744 } |
745 | 745 |
746 void BrowserWindowGtk::SelectedTabExtensionShelfSizeChanged() { | |
747 NOTIMPLEMENTED(); | |
748 } | |
749 | |
750 void BrowserWindowGtk::UpdateTitleBar() { | 746 void BrowserWindowGtk::UpdateTitleBar() { |
751 string16 title = browser_->GetWindowTitleForCurrentTab(); | 747 string16 title = browser_->GetWindowTitleForCurrentTab(); |
752 gtk_window_set_title(window_, UTF16ToUTF8(title).c_str()); | 748 gtk_window_set_title(window_, UTF16ToUTF8(title).c_str()); |
753 if (ShouldShowWindowIcon()) | 749 if (ShouldShowWindowIcon()) |
754 titlebar_->UpdateTitleAndIcon(); | 750 titlebar_->UpdateTitleAndIcon(); |
755 } | 751 } |
756 | 752 |
757 void BrowserWindowGtk::ShelfVisibilityChanged() { | 753 void BrowserWindowGtk::ShelfVisibilityChanged() { |
758 MaybeShowBookmarkBar(browser_->GetSelectedTabContents(), false); | 754 MaybeShowBookmarkBar(browser_->GetSelectedTabContents(), false); |
759 } | 755 } |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 | 903 |
908 void BrowserWindowGtk::ConfirmAddSearchProvider(const TemplateURL* template_url, | 904 void BrowserWindowGtk::ConfirmAddSearchProvider(const TemplateURL* template_url, |
909 Profile* profile) { | 905 Profile* profile) { |
910 new EditSearchEngineDialog(window_, template_url, NULL, profile); | 906 new EditSearchEngineDialog(window_, template_url, NULL, profile); |
911 } | 907 } |
912 | 908 |
913 void BrowserWindowGtk::ToggleBookmarkBar() { | 909 void BrowserWindowGtk::ToggleBookmarkBar() { |
914 bookmark_utils::ToggleWhenVisible(browser_->profile()); | 910 bookmark_utils::ToggleWhenVisible(browser_->profile()); |
915 } | 911 } |
916 | 912 |
917 void BrowserWindowGtk::ToggleExtensionShelf() { | |
918 NOTIMPLEMENTED(); | |
919 } | |
920 | |
921 views::Window* BrowserWindowGtk::ShowAboutChromeDialog() { | 913 views::Window* BrowserWindowGtk::ShowAboutChromeDialog() { |
922 ShowAboutDialogForProfile(window_, browser_->profile()); | 914 ShowAboutDialogForProfile(window_, browser_->profile()); |
923 return NULL; | 915 return NULL; |
924 } | 916 } |
925 | 917 |
926 void BrowserWindowGtk::ShowUpdateChromeDialog() { | 918 void BrowserWindowGtk::ShowUpdateChromeDialog() { |
927 UpdateRecommendedDialog::Show(window_); | 919 UpdateRecommendedDialog::Show(window_); |
928 } | 920 } |
929 | 921 |
930 void BrowserWindowGtk::ShowTaskManager() { | 922 void BrowserWindowGtk::ShowTaskManager() { |
(...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2173 // special-case the ones where the custom frame should be used. These names | 2165 // special-case the ones where the custom frame should be used. These names |
2174 // are taken from the WMs' source code. | 2166 // are taken from the WMs' source code. |
2175 return (wm_name == "Blackbox" || | 2167 return (wm_name == "Blackbox" || |
2176 wm_name == "compiz" || | 2168 wm_name == "compiz" || |
2177 wm_name == "e16" || // Enlightenment DR16 | 2169 wm_name == "e16" || // Enlightenment DR16 |
2178 wm_name == "Metacity" || | 2170 wm_name == "Metacity" || |
2179 wm_name == "Mutter" || | 2171 wm_name == "Mutter" || |
2180 wm_name == "Openbox" || | 2172 wm_name == "Openbox" || |
2181 wm_name == "Xfwm4"); | 2173 wm_name == "Xfwm4"); |
2182 } | 2174 } |
OLD | NEW |