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

Side by Side Diff: chrome/browser/views/bookmark_table_view.h

Issue 113441: ChromeFont->gfx::Font... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 years, 7 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
« no previous file with comments | « chrome/browser/views/bookmark_bar_view.cc ('k') | chrome/browser/views/bookmark_table_view.cc » ('j') | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_VIEWS_BOOKMARK_TABLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_BOOKMARK_TABLE_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_BOOKMARK_TABLE_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_BOOKMARK_TABLE_VIEW_H_
7 7
8 #include "chrome/browser/bookmarks/bookmark_drag_data.h" 8 #include "chrome/browser/bookmarks/bookmark_drag_data.h"
9 #include "chrome/browser/bookmarks/bookmark_drop_info.h" 9 #include "chrome/browser/bookmarks/bookmark_drop_info.h"
10 #include "views/controls/menu/menu.h" 10 #include "views/controls/menu/menu.h"
11 #include "views/controls/table/table_view.h" 11 #include "views/controls/table/table_view.h"
12 12
13 class BookmarkModel; 13 class BookmarkModel;
14 class BookmarkNode; 14 class BookmarkNode;
15 class BookmarkTableModel; 15 class BookmarkTableModel;
16 class ChromeFont; 16 namespace gfx {
17 class Font;
18 }
17 class OSExchangeData; 19 class OSExchangeData;
18 class PrefService; 20 class PrefService;
19 class Profile; 21 class Profile;
20 22
21 // A TableView implementation that shows a BookmarkTableModel. 23 // A TableView implementation that shows a BookmarkTableModel.
22 // BookmarkTableView provides drag and drop support as well as showing a 24 // BookmarkTableView provides drag and drop support as well as showing a
23 // separate set of columns when showing search results. 25 // separate set of columns when showing search results.
24 class BookmarkTableView : public views::TableView { 26 class BookmarkTableView : public views::TableView {
25 public: 27 public:
26 BookmarkTableView(Profile* profile, BookmarkTableModel* model); 28 BookmarkTableView(Profile* profile, BookmarkTableModel* model);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // See ShowPathColumn for details. 139 // See ShowPathColumn for details.
138 void UpdateColumns(); 140 void UpdateColumns();
139 141
140 // Draws the alt_text_. Does nothing if there is no alt_text_. 142 // Draws the alt_text_. Does nothing if there is no alt_text_.
141 void PaintAltText(); 143 void PaintAltText();
142 144
143 // Returns the bounds of the alt text. 145 // Returns the bounds of the alt text.
144 gfx::Rect GetAltTextBounds(); 146 gfx::Rect GetAltTextBounds();
145 147
146 // Returns the font used for alt text. 148 // Returns the font used for alt text.
147 ChromeFont GetAltTextFont(); 149 gfx::Font GetAltTextFont();
148 150
149 Profile* profile_; 151 Profile* profile_;
150 152
151 BookmarkNode* parent_node_; 153 BookmarkNode* parent_node_;
152 154
153 scoped_ptr<DropInfo> drop_info_; 155 scoped_ptr<DropInfo> drop_info_;
154 156
155 bool show_path_column_; 157 bool show_path_column_;
156 158
157 std::wstring alt_text_; 159 std::wstring alt_text_;
158 160
159 DISALLOW_COPY_AND_ASSIGN(BookmarkTableView); 161 DISALLOW_COPY_AND_ASSIGN(BookmarkTableView);
160 }; 162 };
161 163
162 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_TABLE_VIEW_H_ 164 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_TABLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/bookmark_bar_view.cc ('k') | chrome/browser/views/bookmark_table_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698