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

Side by Side Diff: chrome/browser/ui/autofill/generated_credit_card_bubble_controller.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 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 #ifndef CHROME_BROWSER_UI_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_CONTROLLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // GeneratedCreditCardBubbleController 45 // GeneratedCreditCardBubbleController
46 // 46 //
47 // A class to control showing and hiding a bubble after a credit card is 47 // A class to control showing and hiding a bubble after a credit card is
48 // generated. 48 // generated.
49 // 49 //
50 //////////////////////////////////////////////////////////////////////////////// 50 ////////////////////////////////////////////////////////////////////////////////
51 class GeneratedCreditCardBubbleController 51 class GeneratedCreditCardBubbleController
52 : public content::WebContentsObserver, 52 : public content::WebContentsObserver,
53 public content::WebContentsUserData<GeneratedCreditCardBubbleController> { 53 public content::WebContentsUserData<GeneratedCreditCardBubbleController> {
54 public: 54 public:
55 virtual ~GeneratedCreditCardBubbleController(); 55 ~GeneratedCreditCardBubbleController() override;
56 56
57 // Registers preferences this class cares about. 57 // Registers preferences this class cares about.
58 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); 58 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry);
59 59
60 // Show a bubble to educate the user about generated (fronting) cards and how 60 // Show a bubble to educate the user about generated (fronting) cards and how
61 // they are used to bill their original (backing) card. 61 // they are used to bill their original (backing) card.
62 static void Show(content::WebContents* contents, 62 static void Show(content::WebContents* contents,
63 const base::string16& fronting_card_name, 63 const base::string16& fronting_card_name,
64 const base::string16& backing_card_name); 64 const base::string16& backing_card_name);
65 65
66 // content::WebContentsObserver: 66 // content::WebContentsObserver:
67 virtual void DidNavigateMainFrame( 67 void DidNavigateMainFrame(
68 const content::LoadCommittedDetails& details, 68 const content::LoadCommittedDetails& details,
69 const content::FrameNavigateParams& params) override; 69 const content::FrameNavigateParams& params) override;
70 70
71 // Returns whether |bubble_| is currently in the process of hiding. 71 // Returns whether |bubble_| is currently in the process of hiding.
72 bool IsHiding() const; 72 bool IsHiding() const;
73 73
74 // Returns the image that should be shown as an icon in the omnibox. 74 // Returns the image that should be shown as an icon in the omnibox.
75 gfx::Image AnchorIcon() const; 75 gfx::Image AnchorIcon() const;
76 76
77 // The title of the bubble. 77 // The title of the bubble.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 // A weak pointer factory for |Create()|. 165 // A weak pointer factory for |Create()|.
166 base::WeakPtrFactory<GeneratedCreditCardBubbleController> weak_ptr_factory_; 166 base::WeakPtrFactory<GeneratedCreditCardBubbleController> weak_ptr_factory_;
167 167
168 DISALLOW_COPY_AND_ASSIGN(GeneratedCreditCardBubbleController); 168 DISALLOW_COPY_AND_ASSIGN(GeneratedCreditCardBubbleController);
169 }; 169 };
170 170
171 } // namespace autofill 171 } // namespace autofill
172 172
173 #endif // CHROME_BROWSER_UI_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_CONTROLLER_H_ 173 #endif // CHROME_BROWSER_UI_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698