summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/bookmark_table_view.h
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-11 03:59:44 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-11 03:59:44 +0000
commitb24740e3b9555bc7b28b602a588a36665882602e (patch)
tree1f5714dc4f932b4707455717d68f1eced18c1052 /chrome/browser/views/bookmark_table_view.h
parent4831051e6bce5f55c3954bea208c0ce118ea25ff (diff)
downloadchromium_src-b24740e3b9555bc7b28b602a588a36665882602e.zip
chromium_src-b24740e3b9555bc7b28b602a588a36665882602e.tar.gz
chromium_src-b24740e3b9555bc7b28b602a588a36665882602e.tar.bz2
Fixes a handful of related bookmark manager bugs/requests:
. Adds a search field before the text field. . When the search node is selected and there are no results or no search text, a descriptive label is drawn on top of the table telling the user what's happening. . In the bookmark menus Edit... is now Rename... for folders. BUG=5272 5319 5273 4165 TEST=see individual bugs Review URL: http://codereview.chromium.org/13724 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6777 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/bookmark_table_view.h')
-rw-r--r--chrome/browser/views/bookmark_table_view.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/browser/views/bookmark_table_view.h b/chrome/browser/views/bookmark_table_view.h
index 40dc81e..9568bb4 100644
--- a/chrome/browser/views/bookmark_table_view.h
+++ b/chrome/browser/views/bookmark_table_view.h
@@ -13,6 +13,7 @@
class BookmarkModel;
class BookmarkNode;
class BookmarkTableModel;
+class ChromeFont;
class OSExchangeData;
class PrefService;
class Profile;
@@ -47,6 +48,10 @@ class BookmarkTableView : public views::TableView {
// Saves the widths of the table columns.
void SaveColumnConfiguration();
+ // Sets the text to display on top of the table. This is useful if the table
+ // is empty and you want to inform the user why.
+ void SetAltText(const std::wstring& alt_text);
+
protected:
// Overriden to draw a drop indicator when dropping between rows.
virtual void PostPaint();
@@ -134,6 +139,15 @@ class BookmarkTableView : public views::TableView {
// See ShowPathColumn for details.
void UpdateColumns();
+ // Draws the alt_text_. Does nothing if there is no alt_text_.
+ void PaintAltText();
+
+ // Returns the bounds of the alt text.
+ gfx::Rect GetAltTextBounds();
+
+ // Returns the font used for alt text.
+ ChromeFont GetAltTextFont();
+
Profile* profile_;
BookmarkNode* parent_node_;
@@ -142,6 +156,8 @@ class BookmarkTableView : public views::TableView {
bool show_path_column_;
+ std::wstring alt_text_;
+
DISALLOW_COPY_AND_ASSIGN(BookmarkTableView);
};