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

Side by Side Diff: chrome/browser/ui/views/autofill/generated_credit_card_bubble_views.h

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (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_VIEWS_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_VIEWS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_view.h" 11 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_view.h"
12 #include "ui/views/bubble/bubble_delegate.h" 12 #include "ui/views/bubble/bubble_delegate.h"
13 #include "ui/views/controls/styled_label_listener.h" 13 #include "ui/views/controls/styled_label_listener.h"
14 14
15 namespace autofill { 15 namespace autofill {
16 16
17 class GeneratedCreditCardBubbleController; 17 class GeneratedCreditCardBubbleController;
18 18
19 // Views toolkit implementation of the GeneratedCreditCardBubbleView (an 19 // Views toolkit implementation of the GeneratedCreditCardBubbleView (an
20 // educational bubble shown after a successful generation of a new credit card 20 // educational bubble shown after a successful generation of a new credit card
21 // number). 21 // number).
22 class GeneratedCreditCardBubbleViews : public GeneratedCreditCardBubbleView, 22 class GeneratedCreditCardBubbleViews : public GeneratedCreditCardBubbleView,
23 public views::BubbleDelegateView, 23 public views::BubbleDelegateView,
24 public views::StyledLabelListener { 24 public views::StyledLabelListener {
25 public: 25 public:
26 virtual ~GeneratedCreditCardBubbleViews(); 26 virtual ~GeneratedCreditCardBubbleViews();
27 27
28 // GeneratedCreditCardBubbleView: 28 // GeneratedCreditCardBubbleView:
29 virtual void Show() OVERRIDE; 29 virtual void Show() override;
30 virtual void Hide() OVERRIDE; 30 virtual void Hide() override;
31 virtual bool IsHiding() const OVERRIDE; 31 virtual bool IsHiding() const override;
32 32
33 // views::BubbleDelegateView: 33 // views::BubbleDelegateView:
34 virtual gfx::Size GetPreferredSize() const OVERRIDE; 34 virtual gfx::Size GetPreferredSize() const override;
35 virtual base::string16 GetWindowTitle() const OVERRIDE; 35 virtual base::string16 GetWindowTitle() const override;
36 virtual void Init() OVERRIDE; 36 virtual void Init() override;
37 37
38 // views::StyledLabelListener: 38 // views::StyledLabelListener:
39 virtual void StyledLabelLinkClicked(const gfx::Range& range, int event_flags) 39 virtual void StyledLabelLinkClicked(const gfx::Range& range, int event_flags)
40 OVERRIDE; 40 override;
41 41
42 private: 42 private:
43 friend base::WeakPtr<GeneratedCreditCardBubbleView> 43 friend base::WeakPtr<GeneratedCreditCardBubbleView>
44 GeneratedCreditCardBubbleView::Create( 44 GeneratedCreditCardBubbleView::Create(
45 const base::WeakPtr<GeneratedCreditCardBubbleController>& controller); 45 const base::WeakPtr<GeneratedCreditCardBubbleController>& controller);
46 46
47 explicit GeneratedCreditCardBubbleViews( 47 explicit GeneratedCreditCardBubbleViews(
48 const base::WeakPtr<GeneratedCreditCardBubbleController>& controller); 48 const base::WeakPtr<GeneratedCreditCardBubbleController>& controller);
49 49
50 // Controller that drives this bubble. May be invalid when hiding. 50 // Controller that drives this bubble. May be invalid when hiding.
51 base::WeakPtr<GeneratedCreditCardBubbleController> controller_; 51 base::WeakPtr<GeneratedCreditCardBubbleController> controller_;
52 52
53 base::WeakPtrFactory<GeneratedCreditCardBubbleViews> weak_ptr_factory_; 53 base::WeakPtrFactory<GeneratedCreditCardBubbleViews> weak_ptr_factory_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(GeneratedCreditCardBubbleViews); 55 DISALLOW_COPY_AND_ASSIGN(GeneratedCreditCardBubbleViews);
56 }; 56 };
57 57
58 } // namespace autofill 58 } // namespace autofill
59 59
60 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_VIEWS_H _ 60 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_VIEWS_H _
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill/expanding_textfield.h ('k') | chrome/browser/ui/views/autofill/info_bubble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698