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

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

Issue 23890011: rAc: revert 3 second dismissal immunity on generated card bubble (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/views/autofill/generated_credit_card_bubble_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/timer/timer.h"
12 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_view.h" 11 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_view.h"
13 #include "ui/views/bubble/bubble_delegate.h" 12 #include "ui/views/bubble/bubble_delegate.h"
14 #include "ui/views/controls/styled_label_listener.h" 13 #include "ui/views/controls/styled_label_listener.h"
15 14
16 namespace autofill { 15 namespace autofill {
17 16
18 class GeneratedCreditCardBubbleController; 17 class GeneratedCreditCardBubbleController;
19 18
20 // Views toolkit implementation of the GeneratedCreditCardBubbleView (an 19 // Views toolkit implementation of the GeneratedCreditCardBubbleView (an
21 // 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
(...skipping 19 matching lines...) Expand all
41 OVERRIDE; 40 OVERRIDE;
42 41
43 private: 42 private:
44 friend base::WeakPtr<GeneratedCreditCardBubbleView> 43 friend base::WeakPtr<GeneratedCreditCardBubbleView>
45 GeneratedCreditCardBubbleView::Create( 44 GeneratedCreditCardBubbleView::Create(
46 const base::WeakPtr<GeneratedCreditCardBubbleController>& controller); 45 const base::WeakPtr<GeneratedCreditCardBubbleController>& controller);
47 46
48 explicit GeneratedCreditCardBubbleViews( 47 explicit GeneratedCreditCardBubbleViews(
49 const base::WeakPtr<GeneratedCreditCardBubbleController>& controller); 48 const base::WeakPtr<GeneratedCreditCardBubbleController>& controller);
50 49
51 // Releases focus capture (which is assumed on Show()).
52 void ReleaseCapture();
53
54 // Controller that drives this bubble. May be invalid when hiding. 50 // Controller that drives this bubble. May be invalid when hiding.
55 base::WeakPtr<GeneratedCreditCardBubbleController> controller_; 51 base::WeakPtr<GeneratedCreditCardBubbleController> controller_;
56 52
57 // A timer used for releasing focus capture.
58 base::OneShotTimer<GeneratedCreditCardBubbleViews> capture_timer_;
59
60 base::WeakPtrFactory<GeneratedCreditCardBubbleViews> weak_ptr_factory_; 53 base::WeakPtrFactory<GeneratedCreditCardBubbleViews> weak_ptr_factory_;
61 54
62 DISALLOW_COPY_AND_ASSIGN(GeneratedCreditCardBubbleViews); 55 DISALLOW_COPY_AND_ASSIGN(GeneratedCreditCardBubbleViews);
63 }; 56 };
64 57
65 } // namespace autofill 58 } // namespace autofill
66 59
67 #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 | « no previous file | chrome/browser/ui/views/autofill/generated_credit_card_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698