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_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 Loading... |
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_ |
OLD | NEW |