OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_UI_VIEWS_OPTIONS_CONTENT_EXCEPTIONS_TABLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_OPTIONS_CONTENT_EXCEPTIONS_TABLE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_OPTIONS_CONTENT_EXCEPTIONS_TABLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_OPTIONS_CONTENT_EXCEPTIONS_TABLE_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/content_exceptions_table_model.h" | 9 #include "chrome/browser/content_exceptions_table_model.h" |
10 #include "views/controls/table/table_view.h" | 10 #include "views/controls/table/table_view.h" |
11 | 11 |
12 // A thin wrapper around TableView that displays off-the-record entries in | 12 // A thin wrapper around TableView that displays incognito entries in |
13 // italics. | 13 // italics. |
14 class ContentExceptionsTableView : public views::TableView { | 14 class ContentExceptionsTableView : public views::TableView { |
15 public: | 15 public: |
16 ContentExceptionsTableView(ContentExceptionsTableModel* model, | 16 ContentExceptionsTableView(ContentExceptionsTableModel* model, |
17 const std::vector<TableColumn>& columns); | 17 const std::vector<TableColumn>& columns); |
18 | 18 |
19 virtual ~ContentExceptionsTableView() {} | 19 virtual ~ContentExceptionsTableView() {} |
20 | 20 |
21 private: | 21 private: |
22 virtual bool GetCellColors(int model_row, | 22 virtual bool GetCellColors(int model_row, |
23 int column, | 23 int column, |
24 ItemColor* foreground, | 24 ItemColor* foreground, |
25 ItemColor* background, | 25 ItemColor* background, |
26 LOGFONT* logfont); | 26 LOGFONT* logfont); |
27 | 27 |
28 ContentExceptionsTableModel* exceptions_; | 28 ContentExceptionsTableModel* exceptions_; |
29 }; | 29 }; |
30 | 30 |
31 #endif // CHROME_BROWSER_UI_VIEWS_OPTIONS_CONTENT_EXCEPTIONS_TABLE_VIEW_H_ | 31 #endif // CHROME_BROWSER_UI_VIEWS_OPTIONS_CONTENT_EXCEPTIONS_TABLE_VIEW_H_ |
OLD | NEW |