| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include <X11/XF86keysym.h> | 8 #include <X11/XF86keysym.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 | 832 |
| 833 StatusBubble* BrowserWindowGtk::GetStatusBubble() { | 833 StatusBubble* BrowserWindowGtk::GetStatusBubble() { |
| 834 return status_bubble_.get(); | 834 return status_bubble_.get(); |
| 835 } | 835 } |
| 836 | 836 |
| 837 void BrowserWindowGtk::SelectedTabToolbarSizeChanged(bool is_animating) { | 837 void BrowserWindowGtk::SelectedTabToolbarSizeChanged(bool is_animating) { |
| 838 // On Windows, this is used for a performance optimization. | 838 // On Windows, this is used for a performance optimization. |
| 839 // http://code.google.com/p/chromium/issues/detail?id=12291 | 839 // http://code.google.com/p/chromium/issues/detail?id=12291 |
| 840 } | 840 } |
| 841 | 841 |
| 842 void BrowserWindowGtk::SelectedTabExtensionShelfSizeChanged() { |
| 843 NOTIMPLEMENTED(); |
| 844 } |
| 845 |
| 842 void BrowserWindowGtk::UpdateTitleBar() { | 846 void BrowserWindowGtk::UpdateTitleBar() { |
| 843 #if defined(OS_CHROMEOS) | 847 #if defined(OS_CHROMEOS) |
| 844 if (panel_controller_) | 848 if (panel_controller_) |
| 845 panel_controller_->UpdateTitleBar(); | 849 panel_controller_->UpdateTitleBar(); |
| 846 #endif | 850 #endif |
| 847 | 851 |
| 848 string16 title = browser_->GetWindowTitleForCurrentTab(); | 852 string16 title = browser_->GetWindowTitleForCurrentTab(); |
| 849 gtk_window_set_title(window_, UTF16ToUTF8(title).c_str()); | 853 gtk_window_set_title(window_, UTF16ToUTF8(title).c_str()); |
| 850 if (ShouldShowWindowIcon()) | 854 if (ShouldShowWindowIcon()) |
| 851 titlebar_->UpdateTitleAndIcon(); | 855 titlebar_->UpdateTitleAndIcon(); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 | 965 |
| 962 void BrowserWindowGtk::ConfirmAddSearchProvider(const TemplateURL* template_url, | 966 void BrowserWindowGtk::ConfirmAddSearchProvider(const TemplateURL* template_url, |
| 963 Profile* profile) { | 967 Profile* profile) { |
| 964 new EditSearchEngineDialog(window_, template_url, NULL, profile); | 968 new EditSearchEngineDialog(window_, template_url, NULL, profile); |
| 965 } | 969 } |
| 966 | 970 |
| 967 void BrowserWindowGtk::ToggleBookmarkBar() { | 971 void BrowserWindowGtk::ToggleBookmarkBar() { |
| 968 bookmark_utils::ToggleWhenVisible(browser_->profile()); | 972 bookmark_utils::ToggleWhenVisible(browser_->profile()); |
| 969 } | 973 } |
| 970 | 974 |
| 975 void BrowserWindowGtk::ToggleExtensionShelf() { |
| 976 NOTIMPLEMENTED(); |
| 977 } |
| 978 |
| 971 void BrowserWindowGtk::ShowAboutChromeDialog() { | 979 void BrowserWindowGtk::ShowAboutChromeDialog() { |
| 972 ShowAboutDialogForProfile(window_, browser_->profile()); | 980 ShowAboutDialogForProfile(window_, browser_->profile()); |
| 973 } | 981 } |
| 974 | 982 |
| 975 void BrowserWindowGtk::ShowTaskManager() { | 983 void BrowserWindowGtk::ShowTaskManager() { |
| 976 TaskManagerGtk::Show(); | 984 TaskManagerGtk::Show(); |
| 977 } | 985 } |
| 978 | 986 |
| 979 void BrowserWindowGtk::ShowBookmarkManager() { | 987 void BrowserWindowGtk::ShowBookmarkManager() { |
| 980 BookmarkManagerGtk::Show(browser_->profile()); | 988 BookmarkManagerGtk::Show(browser_->profile()); |
| (...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2084 // special-case the ones where the custom frame should be used. These names | 2092 // special-case the ones where the custom frame should be used. These names |
| 2085 // are taken from the WMs' source code. | 2093 // are taken from the WMs' source code. |
| 2086 return (wm_name == "Blackbox" || | 2094 return (wm_name == "Blackbox" || |
| 2087 wm_name == "compiz" || | 2095 wm_name == "compiz" || |
| 2088 wm_name == "e16" || // Enlightenment DR16 | 2096 wm_name == "e16" || // Enlightenment DR16 |
| 2089 wm_name == "KWin" || | 2097 wm_name == "KWin" || |
| 2090 wm_name == "Metacity" || | 2098 wm_name == "Metacity" || |
| 2091 wm_name == "Openbox" || | 2099 wm_name == "Openbox" || |
| 2092 wm_name == "Xfwm4"); | 2100 wm_name == "Xfwm4"); |
| 2093 } | 2101 } |
| OLD | NEW |