| 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 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 void BrowserWindowGtk::ShowSelectProfileDialog() { | 866 void BrowserWindowGtk::ShowSelectProfileDialog() { |
| 867 NOTIMPLEMENTED(); | 867 NOTIMPLEMENTED(); |
| 868 } | 868 } |
| 869 | 869 |
| 870 void BrowserWindowGtk::ShowNewProfileDialog() { | 870 void BrowserWindowGtk::ShowNewProfileDialog() { |
| 871 NOTIMPLEMENTED(); | 871 NOTIMPLEMENTED(); |
| 872 } | 872 } |
| 873 | 873 |
| 874 void BrowserWindowGtk::ShowRepostFormWarningDialog( | 874 void BrowserWindowGtk::ShowRepostFormWarningDialog( |
| 875 TabContents* tab_contents) { | 875 TabContents* tab_contents) { |
| 876 new RepostFormWarningGtk(GetNativeHandle(), &tab_contents->controller()); | 876 new RepostFormWarningGtk(GetNativeHandle(), tab_contents); |
| 877 } | 877 } |
| 878 | 878 |
| 879 void BrowserWindowGtk::ShowContentSettingsWindow( | 879 void BrowserWindowGtk::ShowContentSettingsWindow( |
| 880 ContentSettingsType content_type, | 880 ContentSettingsType content_type, |
| 881 Profile* profile) { | 881 Profile* profile) { |
| 882 ContentSettingsWindowGtk::Show(GetNativeHandle(), content_type, profile); | 882 ContentSettingsWindowGtk::Show(GetNativeHandle(), content_type, profile); |
| 883 } | 883 } |
| 884 | 884 |
| 885 void BrowserWindowGtk::ShowProfileErrorDialog(int message_id) { | 885 void BrowserWindowGtk::ShowProfileErrorDialog(int message_id) { |
| 886 std::string title = l10n_util::GetStringUTF8(IDS_PRODUCT_NAME); | 886 std::string title = l10n_util::GetStringUTF8(IDS_PRODUCT_NAME); |
| (...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2055 // are taken from the WMs' source code. | 2055 // are taken from the WMs' source code. |
| 2056 return (wm_name == "Blackbox" || | 2056 return (wm_name == "Blackbox" || |
| 2057 wm_name == "compiz" || | 2057 wm_name == "compiz" || |
| 2058 wm_name == "e16" || // Enlightenment DR16 | 2058 wm_name == "e16" || // Enlightenment DR16 |
| 2059 wm_name == "KWin" || | 2059 wm_name == "KWin" || |
| 2060 wm_name == "Metacity" || | 2060 wm_name == "Metacity" || |
| 2061 wm_name == "Mutter" || | 2061 wm_name == "Mutter" || |
| 2062 wm_name == "Openbox" || | 2062 wm_name == "Openbox" || |
| 2063 wm_name == "Xfwm4"); | 2063 wm_name == "Xfwm4"); |
| 2064 } | 2064 } |
| OLD | NEW |