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 #ifndef UI_VIEWS_WIDGET_TOOLTIP_MANAGER_WIN_H_ | 5 #ifndef UI_VIEWS_WIDGET_TOOLTIP_MANAGER_WIN_H_ |
6 #define UI_VIEWS_WIDGET_TOOLTIP_MANAGER_WIN_H_ | 6 #define UI_VIEWS_WIDGET_TOOLTIP_MANAGER_WIN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <commctrl.h> | 9 #include <commctrl.h> |
10 #include <string> | 10 #include <string> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // The View the mouse is under. This is null if the mouse isn't under a | 109 // The View the mouse is under. This is null if the mouse isn't under a |
110 // View. | 110 // View. |
111 View* last_tooltip_view_; | 111 View* last_tooltip_view_; |
112 | 112 |
113 // Whether or not the view under the mouse needs to be refreshed. If this | 113 // Whether or not the view under the mouse needs to be refreshed. If this |
114 // is true, when the tooltip is asked for the view under the mouse is | 114 // is true, when the tooltip is asked for the view under the mouse is |
115 // refreshed. | 115 // refreshed. |
116 bool last_view_out_of_sync_; | 116 bool last_view_out_of_sync_; |
117 | 117 |
118 // Text for tooltip from the view. | 118 // Text for tooltip from the view. |
119 string16 tooltip_text_; | 119 base::string16 tooltip_text_; |
120 | 120 |
121 // The clipped tooltip. | 121 // The clipped tooltip. |
122 string16 clipped_text_; | 122 base::string16 clipped_text_; |
123 | 123 |
124 // Number of lines in the tooltip. | 124 // Number of lines in the tooltip. |
125 int line_count_; | 125 int line_count_; |
126 | 126 |
127 // Width of the last tooltip. | 127 // Width of the last tooltip. |
128 int tooltip_width_; | 128 int tooltip_width_; |
129 | 129 |
130 DISALLOW_COPY_AND_ASSIGN(TooltipManagerWin); | 130 DISALLOW_COPY_AND_ASSIGN(TooltipManagerWin); |
131 }; | 131 }; |
132 | 132 |
133 } // namespace views | 133 } // namespace views |
134 | 134 |
135 #endif // UI_VIEWS_WIDGET_TOOLTIP_MANAGER_WIN_H_ | 135 #endif // UI_VIEWS_WIDGET_TOOLTIP_MANAGER_WIN_H_ |
OLD | NEW |