Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: ui/views/widget/tooltip_manager_win.h

Issue 24883002: Uses and returns the fractional width in text eliding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix round-down problems Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« ui/gfx/canvas.h ('K') | « ui/views/widget/tooltip_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Text for tooltip from the view. 119 // Text for tooltip from the view.
120 string16 tooltip_text_; 120 string16 tooltip_text_;
121 121
122 // The clipped tooltip. 122 // The clipped tooltip.
123 string16 clipped_text_; 123 string16 clipped_text_;
124 124
125 // Number of lines in the tooltip. 125 // Number of lines in the tooltip.
126 int line_count_; 126 int line_count_;
127 127
128 // Width of the last tooltip. 128 // Width of the last tooltip.
129 int tooltip_width_; 129 float tooltip_width_;
130 130
131 DISALLOW_COPY_AND_ASSIGN(TooltipManagerWin); 131 DISALLOW_COPY_AND_ASSIGN(TooltipManagerWin);
132 }; 132 };
133 133
134 } // namespace views 134 } // namespace views
135 135
136 #endif // UI_VIEWS_WIDGET_TOOLTIP_MANAGER_WIN_H_ 136 #endif // UI_VIEWS_WIDGET_TOOLTIP_MANAGER_WIN_H_
OLDNEW
« ui/gfx/canvas.h ('K') | « ui/views/widget/tooltip_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698