| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "views/widget/tooltip_manager_win.h" | 5 #include "views/widget/tooltip_manager_win.h" |
| 6 | 6 |
| 7 #include <windowsx.h> | 7 #include <windowsx.h> |
| 8 #include <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "gfx/font.h" | |
| 14 #include "ui/base/l10n/l10n_util_win.h" | 13 #include "ui/base/l10n/l10n_util_win.h" |
| 14 #include "ui/gfx/font.h" |
| 15 #include "views/screen.h" | 15 #include "views/screen.h" |
| 16 #include "views/view.h" | 16 #include "views/view.h" |
| 17 #include "views/widget/monitor_win.h" | 17 #include "views/widget/monitor_win.h" |
| 18 #include "views/widget/root_view.h" | 18 #include "views/widget/root_view.h" |
| 19 #include "views/widget/widget.h" | 19 #include "views/widget/widget.h" |
| 20 | 20 |
| 21 namespace views { | 21 namespace views { |
| 22 | 22 |
| 23 static int tooltip_height_ = 0; | 23 static int tooltip_height_ = 0; |
| 24 | 24 |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 keyboard_tooltip_hwnd_ = NULL; | 374 keyboard_tooltip_hwnd_ = NULL; |
| 375 } | 375 } |
| 376 } | 376 } |
| 377 | 377 |
| 378 void TooltipManagerWin::DestroyKeyboardTooltipWindow(HWND window_to_destroy) { | 378 void TooltipManagerWin::DestroyKeyboardTooltipWindow(HWND window_to_destroy) { |
| 379 if (keyboard_tooltip_hwnd_ == window_to_destroy) | 379 if (keyboard_tooltip_hwnd_ == window_to_destroy) |
| 380 HideKeyboardTooltip(); | 380 HideKeyboardTooltip(); |
| 381 } | 381 } |
| 382 | 382 |
| 383 } // namespace views | 383 } // namespace views |
| OLD | NEW |