Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: chrome/browser/gtk/browser_window_gtk.cc

Issue 660434: Make repost form warning tab-modal on Gtk. (Closed)
Patch Set: Fixed a small bug when two tabmodal dialogs were shown. Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/gtk/repost_form_warning_gtk.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/repost_form_warning_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698