| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 @end | 133 @end |
| 134 | 134 |
| 135 void ShowPDFPasswordDialog(content::WebContents* web_contents, | 135 void ShowPDFPasswordDialog(content::WebContents* web_contents, |
| 136 const base::string16& prompt, | 136 const base::string16& prompt, |
| 137 const pdf::PasswordDialogClosedCallback& callback) { | 137 const pdf::PasswordDialogClosedCallback& callback) { |
| 138 [[PDFPasswordDialogMac alloc] initWithWebContents:web_contents | 138 [[PDFPasswordDialogMac alloc] initWithWebContents:web_contents |
| 139 prompt:prompt | 139 prompt:prompt |
| 140 callback:callback]; | 140 callback:callback]; |
| 141 } | 141 } |
| OLD | NEW |