| 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_win.h" | 5 #include "ui/views/corewm/tooltip_win.h" |
| 6 | 6 |
| 7 #include <winuser.h> | 7 #include <winuser.h> |
| 8 | 8 |
| 9 #include "base/debug/stack_trace.h" | 9 #include "base/debug/stack_trace.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "ui/base/l10n/l10n_util_win.h" | 12 #include "ui/base/l10n/l10n_util_win.h" |
| 13 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
| 14 #include "ui/gfx/screen.h" | 14 #include "ui/gfx/screen.h" |
| 15 #include "ui/gfx/win/dpi.h" | 15 #include "ui/gfx/win/dpi.h" |
| 16 #include "ui/views/corewm/cursor_height_provider_win.h" | 16 #include "ui/views/corewm/cursor_height_provider_win.h" |
| 17 | 17 |
| 18 namespace views { | 18 namespace views { |
| 19 namespace corewm { | 19 namespace corewm { |
| 20 | 20 |
| 21 TooltipWin::TooltipWin(HWND parent) | 21 TooltipWin::TooltipWin(HWND parent) |
| 22 : parent_hwnd_(parent), | 22 : parent_hwnd_(parent), |
| 23 tooltip_hwnd_(NULL), | 23 tooltip_hwnd_(NULL), |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 SendMessage(tooltip_hwnd_, TTM_TRACKACTIVATE, FALSE, | 142 SendMessage(tooltip_hwnd_, TTM_TRACKACTIVATE, FALSE, |
| 143 reinterpret_cast<LPARAM>(&toolinfo_)); | 143 reinterpret_cast<LPARAM>(&toolinfo_)); |
| 144 } | 144 } |
| 145 | 145 |
| 146 bool TooltipWin::IsVisible() { | 146 bool TooltipWin::IsVisible() { |
| 147 return showing_; | 147 return showing_; |
| 148 } | 148 } |
| 149 | 149 |
| 150 } // namespace corewm | 150 } // namespace corewm |
| 151 } // namespace views | 151 } // namespace views |
| OLD | NEW |