| OLD | NEW |
| 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_COCOA_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_COCOA_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_COCOA_H_ |
| 7 | 7 |
| 8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
| 9 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_view.h" | 9 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_view.h" |
| 10 | 10 |
| 11 #ifdef __OBJC__ | 11 #ifdef __OBJC__ |
| 12 @class GeneratedCreditCardBubbleControllerCocoa; | 12 @class GeneratedCreditCardBubbleControllerCocoa; |
| 13 #else | 13 #else |
| 14 class GeneratedCreditCardBubbleControllerCocoa; | 14 class GeneratedCreditCardBubbleControllerCocoa; |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 namespace autofill { | 17 namespace autofill { |
| 18 | 18 |
| 19 class GeneratedCreditCardBubbleCocoa : public GeneratedCreditCardBubbleView { | 19 class GeneratedCreditCardBubbleCocoa : public GeneratedCreditCardBubbleView { |
| 20 public: | 20 public: |
| 21 virtual ~GeneratedCreditCardBubbleCocoa(); | 21 virtual ~GeneratedCreditCardBubbleCocoa(); |
| 22 | 22 |
| 23 // GeneratedCreditCardBubbleView interface. | 23 // GeneratedCreditCardBubbleView interface. |
| 24 virtual void Show() OVERRIDE; | 24 virtual void Show() override; |
| 25 virtual void Hide() OVERRIDE; | 25 virtual void Hide() override; |
| 26 virtual bool IsHiding() const OVERRIDE; | 26 virtual bool IsHiding() const override; |
| 27 | 27 |
| 28 // Callbacks. | 28 // Callbacks. |
| 29 void OnBubbleClosing(); | 29 void OnBubbleClosing(); |
| 30 void OnLinkClicked(); | 30 void OnLinkClicked(); |
| 31 | 31 |
| 32 base::WeakPtr<GeneratedCreditCardBubbleController> controller() { | 32 base::WeakPtr<GeneratedCreditCardBubbleController> controller() { |
| 33 return controller_; | 33 return controller_; |
| 34 } | 34 } |
| 35 | 35 |
| 36 private: | 36 private: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 49 // Factory to vend WeakPtr's to |this|. | 49 // Factory to vend WeakPtr's to |this|. |
| 50 base::WeakPtrFactory<GeneratedCreditCardBubbleCocoa> weak_ptr_factory_; | 50 base::WeakPtrFactory<GeneratedCreditCardBubbleCocoa> weak_ptr_factory_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(GeneratedCreditCardBubbleCocoa); | 52 DISALLOW_COPY_AND_ASSIGN(GeneratedCreditCardBubbleCocoa); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace autofill | 55 } // namespace autofill |
| 56 | 56 |
| 57 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_COCOA_H
_ | 57 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_COCOA_H
_ |
| 58 | 58 |
| OLD | NEW |