From bb2d4f889359d68e27d0091f795003bd5578362b Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Mon, 10 May 2010 18:22:10 +0000 Subject: Add tooltip support to Windows tables. This doesn't actually make use of the functionality yet, but we get a nice benefit for free: by turning this on, we automatically get "labeltips" (see comments in the code) for all elided items in tables. BUG=43259 TEST=Hover any elided item in a table and it should display a tooltip with the full item text atop it. Review URL: http://codereview.chromium.org/2012006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46832 0039d316-1c4b-4281-b951-d872f2087c98 --- app/table_model.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/table_model.h') diff --git a/app/table_model.h b/app/table_model.h index b2a07a1..82bb9af 100644 --- a/app/table_model.h +++ b/app/table_model.h @@ -40,6 +40,13 @@ class TableModel { // no bitmap. virtual SkBitmap GetIcon(int row); + // Returns the tooltip, if any, to show for a particular row. If there are + // multiple columns in the row, this will only be shown when hovering over + // column zero. + virtual std::wstring GetTooltip(int row) { + return std::wstring(); + } + // Returns true if the TableView has groups. Groups provide a way to visually // delineate the rows in a table view. When groups are enabled table view // shows a visual separator for each group, followed by all the rows in -- cgit v1.1