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

Unified Diff: chrome/browser/ui/libgtk2ui/gtk2_ui.h

Issue 1845343005: Makes MaterialDesignController initialization explicit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avoids a need to use AllowReinitialization Created 4 years, 8 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/ui/libgtk2ui/gtk2_ui.h
diff --git a/chrome/browser/ui/libgtk2ui/gtk2_ui.h b/chrome/browser/ui/libgtk2ui/gtk2_ui.h
index 3dda6d284439b9bc9908411b2862f9e0a6478845..f11a1a774ca10376dfecd74c73bfc8ea1b8b77b2 100644
--- a/chrome/browser/ui/libgtk2ui/gtk2_ui.h
+++ b/chrome/browser/ui/libgtk2ui/gtk2_ui.h
@@ -73,6 +73,7 @@ class Gtk2UI : public views::LinuxUI {
// ui::LinuxUI:
void Initialize() override;
+ void UpdateWithLocalState() override;
gfx::Image GetThemeImageNamed(int id) const override;
bool GetTint(int id, color_utils::HSL* tint) const override;
bool GetColor(int id, SkColor* color) const override;
@@ -130,6 +131,9 @@ class Gtk2UI : public views::LinuxUI {
// ThemeService interface and the colors we send to webkit.
void LoadGtkValues();
+ // Updates colors if necessary after possible modification of command line.
+ void UpdateColors();
Evan Stade 2016/04/06 21:43:44 can you mark all the changes that should be revert
varkha 2016/04/06 21:55:17 Will do. MDC::Initialize might not go away, at lea
varkha 2016/04/07 17:02:37 Done.
+
// Reads in explicit theme frame colors from the ChromeGtkFrame style class
// or generates them per our fallback algorithm.
SkColor BuildFrameColors();

Powered by Google App Engine
This is Rietveld 408576698