summaryrefslogtreecommitdiffstats
path: root/app/table_model.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-10 18:22:10 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-10 18:22:10 +0000
commitbb2d4f889359d68e27d0091f795003bd5578362b (patch)
treef635069081a9cca75dd875b7ebc37dd066f6e26f /app/table_model.h
parent8fbbe47f8271a1e2c112d1f8dd3ee5fb35a0edca (diff)
downloadchromium_src-bb2d4f889359d68e27d0091f795003bd5578362b.zip
chromium_src-bb2d4f889359d68e27d0091f795003bd5578362b.tar.gz
chromium_src-bb2d4f889359d68e27d0091f795003bd5578362b.tar.bz2
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
Diffstat (limited to 'app/table_model.h')
-rw-r--r--app/table_model.h7
1 files changed, 7 insertions, 0 deletions
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