| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/guestview/webview/javascript_dialog_helper.h" | 5 #include "chrome/browser/guestview/webview/javascript_dialog_helper.h" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/browser/guestview/guestview_constants.h" | 9 #include "chrome/browser/guestview/guestview_constants.h" |
| 10 #include "chrome/browser/guestview/webview/webview_constants.h" | 10 #include "chrome/browser/guestview/webview/webview_constants.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 content::WebContents* web_contents) { | 95 content::WebContents* web_contents) { |
| 96 } | 96 } |
| 97 | 97 |
| 98 void JavaScriptDialogHelper::OnPermissionResponse( | 98 void JavaScriptDialogHelper::OnPermissionResponse( |
| 99 const DialogClosedCallback& callback, | 99 const DialogClosedCallback& callback, |
| 100 bool allow, | 100 bool allow, |
| 101 const std::string& user_input) { | 101 const std::string& user_input) { |
| 102 callback.Run(allow && webview_guest_->attached(), | 102 callback.Run(allow && webview_guest_->attached(), |
| 103 base::UTF8ToUTF16(user_input)); | 103 base::UTF8ToUTF16(user_input)); |
| 104 } | 104 } |
| OLD | NEW |