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

Unified Diff: chrome/browser/views/jsmessage_box_dialog.cc

Issue 93112: Make messages in javascript's alert copyable.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/views/controls/message_box_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/jsmessage_box_dialog.cc
===================================================================
--- chrome/browser/views/jsmessage_box_dialog.cc (revision 14268)
+++ chrome/browser/views/jsmessage_box_dialog.cc (working copy)
@@ -24,6 +24,8 @@
message_text, default_prompt_text)) {
DCHECK(message_box_view_);
+ message_box_view_->AddAccelerator(
+ views::Accelerator('C', false, true, false));
if (display_suppress_checkbox) {
message_box_view_->SetCheckBoxLabel(
l10n_util::GetString(IDS_JAVASCRIPT_MESSAGEBOX_SUPPRESS_OPTION));
@@ -89,7 +91,6 @@
}
bool JavascriptMessageBoxDialog::Accept() {
-
parent_->OnAccept(message_box_view_->GetInputText(),
message_box_view_->IsCheckBoxSelected());
return true;
« no previous file with comments | « no previous file | chrome/views/controls/message_box_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698