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 #include "chrome/browser/ui/views/autofill/tooltip_icon.h" | 5 #include "chrome/browser/ui/views/autofill/tooltip_icon.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/macros.h" |
8 #include "base/timer/timer.h" | 8 #include "base/timer/timer.h" |
9 #include "chrome/browser/ui/views/autofill/info_bubble.h" | 9 #include "chrome/browser/ui/views/autofill/info_bubble.h" |
10 #include "ui/accessibility/ax_view_state.h" | 10 #include "ui/accessibility/ax_view_state.h" |
11 #include "ui/gfx/paint_vector_icon.h" | 11 #include "ui/gfx/paint_vector_icon.h" |
12 #include "ui/gfx/vector_icons_public.h" | 12 #include "ui/gfx/vector_icons_public.h" |
13 #include "ui/views/bubble/bubble_frame_view.h" | 13 #include "ui/views/bubble/bubble_frame_view.h" |
14 #include "ui/views/mouse_watcher_view_host.h" | 14 #include "ui/views/mouse_watcher_view_host.h" |
15 #include "ui/views/painter.h" | 15 #include "ui/views/painter.h" |
16 | 16 |
17 namespace autofill { | 17 namespace autofill { |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 void TooltipIcon::OnWidgetDestroyed(views::Widget* widget) { | 140 void TooltipIcon::OnWidgetDestroyed(views::Widget* widget) { |
141 observer_.Remove(widget); | 141 observer_.Remove(widget); |
142 | 142 |
143 SetDrawAsHovered(false); | 143 SetDrawAsHovered(false); |
144 mouse_watcher_.reset(); | 144 mouse_watcher_.reset(); |
145 bubble_ = NULL; | 145 bubble_ = NULL; |
146 } | 146 } |
147 | 147 |
148 } // namespace autofill | 148 } // namespace autofill |
OLD | NEW |