| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/gfx/font.h" | |
| 11 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| 12 #include "app/l10n_util_win.h" | 11 #include "app/l10n_util_win.h" |
| 13 #include "app/win_util.h" | 12 #include "app/win_util.h" |
| 14 #include "base/i18n/rtl.h" | 13 #include "base/i18n/rtl.h" |
| 15 #include "base/logging.h" | 14 #include "base/logging.h" |
| 16 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
| 16 #include "gfx/font.h" |
| 17 #include "views/screen.h" | 17 #include "views/screen.h" |
| 18 #include "views/view.h" | 18 #include "views/view.h" |
| 19 #include "views/widget/root_view.h" | 19 #include "views/widget/root_view.h" |
| 20 #include "views/widget/widget.h" | 20 #include "views/widget/widget.h" |
| 21 | 21 |
| 22 namespace views { | 22 namespace views { |
| 23 | 23 |
| 24 static int tooltip_height_ = 0; | 24 static int tooltip_height_ = 0; |
| 25 | 25 |
| 26 // Default timeout for the tooltip displayed using keyboard. | 26 // Default timeout for the tooltip displayed using keyboard. |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 keyboard_tooltip_hwnd_ = NULL; | 377 keyboard_tooltip_hwnd_ = NULL; |
| 378 } | 378 } |
| 379 } | 379 } |
| 380 | 380 |
| 381 void TooltipManagerWin::DestroyKeyboardTooltipWindow(HWND window_to_destroy) { | 381 void TooltipManagerWin::DestroyKeyboardTooltipWindow(HWND window_to_destroy) { |
| 382 if (keyboard_tooltip_hwnd_ == window_to_destroy) | 382 if (keyboard_tooltip_hwnd_ == window_to_destroy) |
| 383 HideKeyboardTooltip(); | 383 HideKeyboardTooltip(); |
| 384 } | 384 } |
| 385 | 385 |
| 386 } // namespace views | 386 } // namespace views |
| OLD | NEW |