| 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_VIEWS_AUTOFILL_NEW_CREDIT_CARD_BUBBLE_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_NEW_CREDIT_CARD_BUBBLE_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_NEW_CREDIT_CARD_BUBBLE_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_NEW_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" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 public views::BubbleDelegateView, | 22 public views::BubbleDelegateView, |
| 23 public views::LinkListener { | 23 public views::LinkListener { |
| 24 public: | 24 public: |
| 25 virtual ~NewCreditCardBubbleViews(); | 25 virtual ~NewCreditCardBubbleViews(); |
| 26 | 26 |
| 27 // NewCreditCardBubbleView: | 27 // NewCreditCardBubbleView: |
| 28 virtual void Show() OVERRIDE; | 28 virtual void Show() OVERRIDE; |
| 29 virtual void Hide() OVERRIDE; | 29 virtual void Hide() OVERRIDE; |
| 30 | 30 |
| 31 // views::BubbleDelegateView: | 31 // views::BubbleDelegateView: |
| 32 virtual gfx::Size GetPreferredSize() OVERRIDE; | 32 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
| 33 virtual base::string16 GetWindowTitle() const OVERRIDE; | 33 virtual base::string16 GetWindowTitle() const OVERRIDE; |
| 34 virtual void Init() OVERRIDE; | 34 virtual void Init() OVERRIDE; |
| 35 virtual gfx::Rect GetBubbleBounds() OVERRIDE; | 35 virtual gfx::Rect GetBubbleBounds() OVERRIDE; |
| 36 | 36 |
| 37 // views::LinkListener: | 37 // views::LinkListener: |
| 38 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 38 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 friend base::WeakPtr<NewCreditCardBubbleView> NewCreditCardBubbleView::Create( | 41 friend base::WeakPtr<NewCreditCardBubbleView> NewCreditCardBubbleView::Create( |
| 42 NewCreditCardBubbleController* controller); | 42 NewCreditCardBubbleController* controller); |
| 43 | 43 |
| 44 explicit NewCreditCardBubbleViews( | 44 explicit NewCreditCardBubbleViews( |
| 45 NewCreditCardBubbleController* controller); | 45 NewCreditCardBubbleController* controller); |
| 46 | 46 |
| 47 // Controller that drives this bubble. Never NULL; outlives this class. | 47 // Controller that drives this bubble. Never NULL; outlives this class. |
| 48 NewCreditCardBubbleController* controller_; | 48 NewCreditCardBubbleController* controller_; |
| 49 | 49 |
| 50 base::WeakPtrFactory<NewCreditCardBubbleView> weak_ptr_factory_; | 50 base::WeakPtrFactory<NewCreditCardBubbleView> weak_ptr_factory_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(NewCreditCardBubbleViews); | 52 DISALLOW_COPY_AND_ASSIGN(NewCreditCardBubbleViews); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace autofill | 55 } // namespace autofill |
| 56 | 56 |
| 57 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_NEW_CREDIT_CARD_BUBBLE_VIEWS_H_ | 57 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_NEW_CREDIT_CARD_BUBBLE_VIEWS_H_ |
| OLD | NEW |