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

Unified Diff: chrome/browser/views/options/content_exceptions_table_view.cc

Issue 2858032: Display content settings applying to the current otr session only. (Closed)
Patch Set: updates Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/views/options/content_exceptions_table_view.cc
diff --git a/chrome/browser/views/options/content_exceptions_table_view.cc b/chrome/browser/views/options/content_exceptions_table_view.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0f7fa6a0e1250be580936e67611729ced9d3211e
--- /dev/null
+++ b/chrome/browser/views/options/content_exceptions_table_view.cc
@@ -0,0 +1,33 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/views/options/content_exceptions_table_view.h"
+
+#include "gfx/font.h"
+
+ContentExceptionsTableView::ContentExceptionsTableView(
+ ContentExceptionsTableModel* model,
+ const std::vector<TableColumn>& columns)
+ : views::TableView(model, columns, views::TEXT_ONLY, false, true, false),
+ exceptions_(model) {
+ SetCustomColorsEnabled(true);
+}
+
+bool ContentExceptionsTableView::GetCellColors(int model_row,
+ int column,
+ ItemColor* foreground,
+ ItemColor* background,
+ LOGFONT* logfont) {
+ if (!exceptions_->entry_is_off_the_record(model_row))
+ return false;
+
+ foreground->color_is_set = false;
+ background->color_is_set = false;
+
+ gfx::Font font;
+ font = font.DeriveFont(0, gfx::Font::ITALIC);
+ HFONT hf = font.hfont();
+ GetObject(hf, sizeof(LOGFONT), logfont);
+ return true;
+}
« no previous file with comments | « chrome/browser/views/options/content_exceptions_table_view.h ('k') | chrome/browser/views/options/content_filter_page_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698