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

Unified Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 173642: Set the focus ring color to match the Gtk theme focus color. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: connect to notification Created 11 years, 4 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
« no previous file with comments | « no previous file | chrome/common/gtk_util.cc » ('j') | chrome/common/render_messages.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents.cc
===================================================================
--- chrome/browser/tab_contents/tab_contents.cc (revision 25076)
+++ chrome/browser/tab_contents/tab_contents.cc (working copy)
@@ -71,6 +71,7 @@
#if defined(OS_LINUX)
#include "chrome/browser/gtk/create_application_shortcuts_dialog_gtk.h"
+#include "chrome/browser/gtk/gtk_theme_provider.h"
#endif // defined(OS_LINUX)
// Cross-Site Navigations
@@ -289,6 +290,8 @@
NotificationService::AllSources());
registrar_.Add(this, NotificationType::RENDER_WIDGET_HOST_DESTROYED,
NotificationService::AllSources());
+ registrar_.Add(this, NotificationType::BROWSER_THEME_CHANGED,
+ NotificationService::AllSources());
// Keep a global copy of the previous search string (if any).
static string16 global_last_search = string16();
@@ -2467,6 +2470,12 @@
break;
}
+ case NotificationType::BROWSER_THEME_CHANGED: {
+#if defined(OS_LINUX)
+ render_view_host()->SyncRendererPrefs();
+#endif
+ }
+
default:
NOTREACHED();
}
« no previous file with comments | « no previous file | chrome/common/gtk_util.cc » ('j') | chrome/common/render_messages.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698