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

Side by Side Diff: chrome/browser/ui/cocoa/pdf_password_dialog.mm

Issue 627043002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
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"
11 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_alert.h" 11 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_alert.h"
12 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh eet.h" 12 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh eet.h"
13 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" 13 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h"
14 #import "chrome/browser/ui/cocoa/key_equivalent_constants.h" 14 #import "chrome/browser/ui/cocoa/key_equivalent_constants.h"
15 #include "chrome/grit/generated_resources.h" 15 #include "chrome/grit/generated_resources.h"
16 #include "components/pdf/browser/pdf_web_contents_helper_client.h" 16 #include "components/pdf/browser/pdf_web_contents_helper_client.h"
17 #include "ui/base/l10n/l10n_util.h" 17 #include "ui/base/l10n/l10n_util.h"
18 18
19 @class PDFPasswordDialogMac; 19 @class PDFPasswordDialogMac;
20 20
21 namespace { 21 namespace {
22 22
23 class PDFPasswordDialogMacBridge : public ConstrainedWindowMacDelegate { 23 class PDFPasswordDialogMacBridge : public ConstrainedWindowMacDelegate {
24 public: 24 public:
25 explicit PDFPasswordDialogMacBridge(PDFPasswordDialogMac* dialog); 25 explicit PDFPasswordDialogMacBridge(PDFPasswordDialogMac* dialog);
26 virtual ~PDFPasswordDialogMacBridge(); 26 virtual ~PDFPasswordDialogMacBridge();
27 virtual void OnConstrainedWindowClosed(ConstrainedWindowMac* window) OVERRIDE; 27 virtual void OnConstrainedWindowClosed(ConstrainedWindowMac* window) override;
28 28
29 private: 29 private:
30 PDFPasswordDialogMac* dialog_; // weak 30 PDFPasswordDialogMac* dialog_; // weak
31 31
32 DISALLOW_COPY_AND_ASSIGN(PDFPasswordDialogMacBridge); 32 DISALLOW_COPY_AND_ASSIGN(PDFPasswordDialogMacBridge);
33 }; 33 };
34 34
35 } // namespace 35 } // namespace
36 36
37 @interface PDFPasswordDialogMac : NSObject { 37 @interface PDFPasswordDialogMac : NSObject {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698