| 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_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" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 virtual void Show() OVERRIDE; | 30 virtual void Show() OVERRIDE; |
| 31 virtual void Hide() OVERRIDE; | 31 virtual void Hide() OVERRIDE; |
| 32 virtual bool IsHiding() const OVERRIDE; | 32 virtual bool IsHiding() const OVERRIDE; |
| 33 | 33 |
| 34 // views::BubbleDelegateView: | 34 // views::BubbleDelegateView: |
| 35 virtual gfx::Size GetPreferredSize() OVERRIDE; | 35 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 36 virtual base::string16 GetWindowTitle() const OVERRIDE; | 36 virtual base::string16 GetWindowTitle() const OVERRIDE; |
| 37 virtual void Init() OVERRIDE; | 37 virtual void Init() OVERRIDE; |
| 38 | 38 |
| 39 // views::StyledLabelListener: | 39 // views::StyledLabelListener: |
| 40 virtual void StyledLabelLinkClicked(const ui::Range& range, int event_flags) | 40 virtual void StyledLabelLinkClicked(const gfx::Range& range, int event_flags) |
| 41 OVERRIDE; | 41 OVERRIDE; |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 friend base::WeakPtr<GeneratedCreditCardBubbleView> | 44 friend base::WeakPtr<GeneratedCreditCardBubbleView> |
| 45 GeneratedCreditCardBubbleView::Create( | 45 GeneratedCreditCardBubbleView::Create( |
| 46 const base::WeakPtr<GeneratedCreditCardBubbleController>& controller); | 46 const base::WeakPtr<GeneratedCreditCardBubbleController>& controller); |
| 47 | 47 |
| 48 explicit GeneratedCreditCardBubbleViews( | 48 explicit GeneratedCreditCardBubbleViews( |
| 49 const base::WeakPtr<GeneratedCreditCardBubbleController>& controller); | 49 const base::WeakPtr<GeneratedCreditCardBubbleController>& controller); |
| 50 | 50 |
| 51 // Releases focus capture (which is assumed on Show()). | 51 // Releases focus capture (which is assumed on Show()). |
| 52 void ReleaseCapture(); | 52 void ReleaseCapture(); |
| 53 | 53 |
| 54 // Controller that drives this bubble. May be invalid when hiding. | 54 // Controller that drives this bubble. May be invalid when hiding. |
| 55 base::WeakPtr<GeneratedCreditCardBubbleController> controller_; | 55 base::WeakPtr<GeneratedCreditCardBubbleController> controller_; |
| 56 | 56 |
| 57 // A timer used for releasing focus capture. | 57 // A timer used for releasing focus capture. |
| 58 base::OneShotTimer<GeneratedCreditCardBubbleViews> capture_timer_; | 58 base::OneShotTimer<GeneratedCreditCardBubbleViews> capture_timer_; |
| 59 | 59 |
| 60 base::WeakPtrFactory<GeneratedCreditCardBubbleViews> weak_ptr_factory_; | 60 base::WeakPtrFactory<GeneratedCreditCardBubbleViews> weak_ptr_factory_; |
| 61 | 61 |
| 62 DISALLOW_COPY_AND_ASSIGN(GeneratedCreditCardBubbleViews); | 62 DISALLOW_COPY_AND_ASSIGN(GeneratedCreditCardBubbleViews); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } // namespace autofill | 65 } // namespace autofill |
| 66 | 66 |
| 67 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_VIEWS_H
_ | 67 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_VIEWS_H
_ |
| OLD | NEW |