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

Unified Diff: chrome/browser/ui/cocoa/pdf_password_dialog.mm

Issue 477263003: pdf: Create a separate component for using the pdf pepper plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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
Index: chrome/browser/ui/cocoa/pdf_password_dialog.mm
diff --git a/chrome/browser/ui/cocoa/pdf_password_dialog.mm b/chrome/browser/ui/cocoa/pdf_password_dialog.mm
index a7f75a86d918a46e539ce8d4861742c745715faa..fe9f54fdae493b27f1d4d1433ee5f8029d4caa7a 100644
--- a/chrome/browser/ui/cocoa/pdf_password_dialog.mm
+++ b/chrome/browser/ui/cocoa/pdf_password_dialog.mm
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/pdf/pdf_tab_helper.h"
-
#import <Cocoa/Cocoa.h>
#include "base/mac/scoped_nsobject.h"
@@ -14,6 +12,7 @@
#import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sheet.h"
#import "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h"
#import "chrome/browser/ui/cocoa/key_equivalent_constants.h"
+#include "components/pdf/browser/pdf_tab_helper_delegate.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
@@ -39,7 +38,7 @@ class PDFPasswordDialogMacBridge : public ConstrainedWindowMacDelegate {
@private
content::WebContents* webContents_;
base::string16 prompt_;
- PasswordDialogClosedCallback callback_;
+ pdf::PasswordDialogClosedCallback callback_;
base::scoped_nsobject<NSSecureTextField> passwordField_;
@@ -49,7 +48,7 @@ class PDFPasswordDialogMacBridge : public ConstrainedWindowMacDelegate {
}
- (id)initWithWebContents:(content::WebContents*)webContents
prompt:(base::string16)prompt
- callback:(PasswordDialogClosedCallback)callback;
+ callback:(pdf::PasswordDialogClosedCallback)callback;
- (void)onOKButton:(id)sender;
- (void)onCancelButton:(id)sender;
@end
@@ -74,7 +73,7 @@ void PDFPasswordDialogMacBridge::OnConstrainedWindowClosed(
- (id)initWithWebContents:(content::WebContents*)webContents
prompt:(base::string16)prompt
- callback:(PasswordDialogClosedCallback)callback {
+ callback:(pdf::PasswordDialogClosedCallback)callback {
if ((self = [super init])) {
webContents_ = webContents;
prompt_ = prompt;
@@ -135,7 +134,7 @@ void PDFPasswordDialogMacBridge::OnConstrainedWindowClosed(
void ShowPDFPasswordDialog(content::WebContents* web_contents,
const base::string16& prompt,
- const PasswordDialogClosedCallback& callback) {
+ const pdf::PasswordDialogClosedCallback& callback) {
[[PDFPasswordDialogMac alloc] initWithWebContents:web_contents
prompt:prompt
callback:callback];

Powered by Google App Engine
This is Rietveld 408576698