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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 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
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_TOOLTIP_ICON_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_TOOLTIP_ICON_H_
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_TOOLTIP_ICON_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_TOOLTIP_ICON_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/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Whether the mouse is inside this tooltip. 64 // Whether the mouse is inside this tooltip.
65 bool mouse_inside_; 65 bool mouse_inside_;
66 66
67 // A bubble shown on hover. Weak; owns itself. NULL while hiding. 67 // A bubble shown on hover. Weak; owns itself. NULL while hiding.
68 InfoBubble* bubble_; 68 InfoBubble* bubble_;
69 69
70 // The position of the bubble's arrow. 70 // The position of the bubble's arrow.
71 views::BubbleBorder::Arrow bubble_arrow_; 71 views::BubbleBorder::Arrow bubble_arrow_;
72 72
73 // A timer to delay showing |bubble_|. 73 // A timer to delay showing |bubble_|.
74 base::OneShotTimer<TooltipIcon> show_timer_; 74 base::OneShotTimer show_timer_;
75 75
76 // A watcher that keeps |bubble_| open if the user's mouse enters it. 76 // A watcher that keeps |bubble_| open if the user's mouse enters it.
77 scoped_ptr<views::MouseWatcher> mouse_watcher_; 77 scoped_ptr<views::MouseWatcher> mouse_watcher_;
78 78
79 ScopedObserver<views::Widget, TooltipIcon> observer_; 79 ScopedObserver<views::Widget, TooltipIcon> observer_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(TooltipIcon); 81 DISALLOW_COPY_AND_ASSIGN(TooltipIcon);
82 }; 82 };
83 83
84 } // namespace autofill 84 } // namespace autofill
85 85
86 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_TOOLTIP_ICON_H_ 86 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_TOOLTIP_ICON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698