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

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

Issue 2573383002: 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 3e0b1c44bca89feab0e00744b9c987f969cd5f97..1fe2827294ba4b0e0cd9bfa80860ead15a666421 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