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

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

Issue 342048: Show a warning when the history files can't be read correctly.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 1120
1121 void BrowserWindowGtk::ShowNewProfileDialog() { 1121 void BrowserWindowGtk::ShowNewProfileDialog() {
1122 NOTIMPLEMENTED(); 1122 NOTIMPLEMENTED();
1123 } 1123 }
1124 1124
1125 void BrowserWindowGtk::ShowRepostFormWarningDialog( 1125 void BrowserWindowGtk::ShowRepostFormWarningDialog(
1126 TabContents* tab_contents) { 1126 TabContents* tab_contents) {
1127 new RepostFormWarningGtk(GetNativeHandle(), &tab_contents->controller()); 1127 new RepostFormWarningGtk(GetNativeHandle(), &tab_contents->controller());
1128 } 1128 }
1129 1129
1130 void BrowserWindowGtk::ShowHistoryTooNewDialog() { 1130 void BrowserWindowGtk::ShowProfileErrorDialog(int message_id) {
1131 std::string title = l10n_util::GetStringUTF8(IDS_PRODUCT_NAME); 1131 std::string title = l10n_util::GetStringUTF8(IDS_PRODUCT_NAME);
1132 std::string message = l10n_util::GetStringUTF8(IDS_PROFILE_TOO_NEW_ERROR); 1132 std::string message = l10n_util::GetStringUTF8(message_id);
1133 GtkWidget* dialog = gtk_message_dialog_new(window_, 1133 GtkWidget* dialog = gtk_message_dialog_new(window_,
1134 static_cast<GtkDialogFlags>(0), GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, 1134 static_cast<GtkDialogFlags>(0), GTK_MESSAGE_WARNING, GTK_BUTTONS_OK,
1135 "%s", message.c_str()); 1135 "%s", message.c_str());
1136 gtk_window_set_title(GTK_WINDOW(dialog), title.c_str()); 1136 gtk_window_set_title(GTK_WINDOW(dialog), title.c_str());
1137 g_signal_connect(dialog, "response", G_CALLBACK(gtk_widget_destroy), NULL); 1137 g_signal_connect(dialog, "response", G_CALLBACK(gtk_widget_destroy), NULL);
1138 gtk_widget_show_all(dialog); 1138 gtk_widget_show_all(dialog);
1139 } 1139 }
1140 1140
1141 void BrowserWindowGtk::ShowThemeInstallBubble() { 1141 void BrowserWindowGtk::ShowThemeInstallBubble() {
1142 ThemeInstallBubbleViewGtk::Show(window_); 1142 ThemeInstallBubbleViewGtk::Show(window_);
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after
2315 // are taken from the WMs' source code. 2315 // are taken from the WMs' source code.
2316 return (wm_name == "Blackbox" || 2316 return (wm_name == "Blackbox" ||
2317 wm_name == "compiz" || 2317 wm_name == "compiz" ||
2318 wm_name == "e16" || // Enlightenment DR16 2318 wm_name == "e16" || // Enlightenment DR16
2319 wm_name == "KWin" || 2319 wm_name == "KWin" ||
2320 wm_name == "Metacity" || 2320 wm_name == "Metacity" ||
2321 wm_name == "Mutter" || 2321 wm_name == "Mutter" ||
2322 wm_name == "Openbox" || 2322 wm_name == "Openbox" ||
2323 wm_name == "Xfwm4"); 2323 wm_name == "Xfwm4");
2324 } 2324 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698