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 "ui/views/corewm/tooltip_aura.h" | 5 #include "ui/views/corewm/tooltip_aura.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "base/strings/string_split.h" | 8 #include "base/strings/string_split.h" |
8 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
9 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
10 #include "ui/aura/window_tree_host.h" | 11 #include "ui/aura/window_tree_host.h" |
11 #include "ui/gfx/canvas.h" | 12 #include "ui/gfx/canvas.h" |
12 #include "ui/gfx/render_text.h" | 13 #include "ui/gfx/render_text.h" |
13 #include "ui/gfx/screen.h" | 14 #include "ui/gfx/screen.h" |
14 #include "ui/gfx/text_elider.h" | 15 #include "ui/gfx/text_elider.h" |
15 #include "ui/gfx/text_utils.h" | 16 #include "ui/gfx/text_utils.h" |
16 #include "ui/native_theme/native_theme.h" | 17 #include "ui/native_theme/native_theme.h" |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 } | 214 } |
214 | 215 |
215 void TooltipAura::OnWidgetDestroying(views::Widget* widget) { | 216 void TooltipAura::OnWidgetDestroying(views::Widget* widget) { |
216 DCHECK_EQ(widget_, widget); | 217 DCHECK_EQ(widget_, widget); |
217 widget_ = NULL; | 218 widget_ = NULL; |
218 tooltip_window_ = NULL; | 219 tooltip_window_ = NULL; |
219 } | 220 } |
220 | 221 |
221 } // namespace corewm | 222 } // namespace corewm |
222 } // namespace views | 223 } // namespace views |
OLD | NEW |