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

Unified Diff: chrome/browser/ui/input_window_dialog_gtk.cc

Issue 8438037: Change 'Add Page' to show a simple input dialog with --use-more-webui. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/input_window_dialog.h ('k') | chrome/browser/ui/input_window_dialog_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/input_window_dialog_gtk.cc
diff --git a/chrome/browser/ui/input_window_dialog_gtk.cc b/chrome/browser/ui/input_window_dialog_gtk.cc
index f7168a128709ec6e9862ccf1f98bb945efc13b5f..53236a7741e8415d9a8711acba9c7a67d44f6394 100644
--- a/chrome/browser/ui/input_window_dialog_gtk.cc
+++ b/chrome/browser/ui/input_window_dialog_gtk.cc
@@ -73,15 +73,19 @@ void InputWindowDialogGtk::Close() {
void InputWindowDialogGtk::OnEntryChanged(GtkEditable* entry) {
string16 value(UTF8ToUTF16(gtk_entry_get_text(GTK_ENTRY(entry))));
+ InputWindowDialog::InputTexts texts;
+ texts.push_back(value);
gtk_dialog_set_response_sensitive(GTK_DIALOG(dialog_),
GTK_RESPONSE_ACCEPT,
- delegate_->IsValid(value));
+ delegate_->IsValid(texts));
}
void InputWindowDialogGtk::OnResponse(GtkWidget* dialog, int response_id) {
if (response_id == GTK_RESPONSE_ACCEPT) {
string16 value(UTF8ToUTF16(gtk_entry_get_text(GTK_ENTRY(input_))));
- delegate_->InputAccepted(value);
+ InputTexts texts;
+ texts.push_back(value);
+ delegate_->InputAccepted(texts);
} else {
delegate_->InputCanceled();
}
« no previous file with comments | « chrome/browser/ui/input_window_dialog.h ('k') | chrome/browser/ui/input_window_dialog_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698