mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 241258.
- Update tracing implementation to use the new file-based approach (issue #1157). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1549 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -19,12 +19,12 @@ const char kPromptTextId[] = "cef_prompt_text";
|
||||
|
||||
// If there's a text entry in the dialog, get the text from the first one and
|
||||
// return it.
|
||||
string16 GetPromptText(GtkDialog* dialog) {
|
||||
base::string16 GetPromptText(GtkDialog* dialog) {
|
||||
GtkWidget* widget = static_cast<GtkWidget*>(
|
||||
g_object_get_data(G_OBJECT(dialog), kPromptTextId));
|
||||
if (widget)
|
||||
return UTF8ToUTF16(gtk_entry_get_text(GTK_ENTRY(widget)));
|
||||
return string16();
|
||||
return base::string16();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
@@ -32,9 +32,9 @@ string16 GetPromptText(GtkDialog* dialog) {
|
||||
CefJavaScriptDialog::CefJavaScriptDialog(
|
||||
CefJavaScriptDialogManager* creator,
|
||||
content::JavaScriptMessageType message_type,
|
||||
const string16& display_url,
|
||||
const string16& message_text,
|
||||
const string16& default_prompt_text,
|
||||
const base::string16& display_url,
|
||||
const base::string16& message_text,
|
||||
const base::string16& default_prompt_text,
|
||||
const content::JavaScriptDialogManager::DialogClosedCallback& callback)
|
||||
: creator_(creator),
|
||||
callback_(callback) {
|
||||
@@ -123,7 +123,7 @@ void CefJavaScriptDialog::OnResponse(GtkWidget* dialog, int response_id) {
|
||||
break;
|
||||
case GTK_RESPONSE_CANCEL:
|
||||
case GTK_RESPONSE_DELETE_EVENT:
|
||||
callback_.Run(false, string16());
|
||||
callback_.Run(false, base::string16());
|
||||
break;
|
||||
default:
|
||||
NOTREACHED();
|
||||
|
Reference in New Issue
Block a user