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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (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 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 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_COCOA_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/browser/ui/autofill/autofill_dialog_view_tester.h" 9 #include "chrome/browser/ui/autofill/autofill_dialog_view_tester.h"
10 10
11 @class AutofillDialogWindowController; 11 @class AutofillDialogWindowController;
12 12
13 namespace autofill { 13 namespace autofill {
14 14
15 class AutofillDialogCocoa; 15 class AutofillDialogCocoa;
16 16
17 class AutofillDialogViewTesterCocoa: public AutofillDialogViewTester { 17 class AutofillDialogViewTesterCocoa: public AutofillDialogViewTester {
18 public: 18 public:
19 explicit AutofillDialogViewTesterCocoa(AutofillDialogCocoa* dialog); 19 explicit AutofillDialogViewTesterCocoa(AutofillDialogCocoa* dialog);
20 virtual ~AutofillDialogViewTesterCocoa(); 20 ~AutofillDialogViewTesterCocoa() override;
21 21
22 // TestableAutofillDialogView implementation: 22 // TestableAutofillDialogView implementation:
23 virtual void SubmitForTesting() override; 23 void SubmitForTesting() override;
24 virtual void CancelForTesting() override; 24 void CancelForTesting() override;
25 virtual base::string16 GetTextContentsOfInput(ServerFieldType type) override; 25 base::string16 GetTextContentsOfInput(ServerFieldType type) override;
26 virtual void SetTextContentsOfInput(ServerFieldType type, 26 void SetTextContentsOfInput(ServerFieldType type,
27 const base::string16& contents) override; 27 const base::string16& contents) override;
28 virtual void SetTextContentsOfSuggestionInput( 28 void SetTextContentsOfSuggestionInput(DialogSection section,
29 DialogSection section, 29 const base::string16& text) override;
30 const base::string16& text) override; 30 void ActivateInput(ServerFieldType type) override;
31 virtual void ActivateInput(ServerFieldType type) override; 31 gfx::Size GetSize() const override;
32 virtual gfx::Size GetSize() const override; 32 content::WebContents* GetSignInWebContents() override;
33 virtual content::WebContents* GetSignInWebContents() override; 33 bool IsShowingOverlay() const override;
34 virtual bool IsShowingOverlay() const override; 34 bool IsShowingSection(DialogSection section) const override;
35 virtual bool IsShowingSection(DialogSection section) const override;
36 35
37 private: 36 private:
38 AutofillDialogWindowController* controller() const; 37 AutofillDialogWindowController* controller() const;
39 38
40 AutofillDialogCocoa* dialog_; 39 AutofillDialogCocoa* dialog_;
41 40
42 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViewTesterCocoa); 41 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViewTesterCocoa);
43 }; 42 };
44 43
45 44
46 } // autofill 45 } // autofill
47 46
48 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_COCOA_H_ 47 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_COCOA_H_
49 48
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698