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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_result_view.cc

Issue 2578443002: Refresh appearance of omnibox results when native theme changes. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_result_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/omnibox/omnibox_result_view.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_result_view.cc b/chrome/browser/ui/views/omnibox/omnibox_result_view.cc
index fa8546b2a3bc2085ffa7ee17df23aee16f2064b0..a91113692703a538094cd399bf96c4a9f21c8028 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_result_view.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_result_view.cc
@@ -301,6 +301,11 @@ void OmniboxResultView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
: match_.contents);
}
+void OmniboxResultView::OnNativeThemeChanged(const ui::NativeTheme* theme) {
+ Invalidate();
+ SchedulePaint();
+}
+
////////////////////////////////////////////////////////////////////////////////
// OmniboxResultView, protected:
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_result_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698