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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 239093007: Update Windows UI on system color changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 6 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/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 0c12b674779321fb445f2618f5ecc060e294bc4b..9c6ed4dd34f362f7df3e9e36dd132e16387029b9 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -124,7 +124,6 @@
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/rect_conversions.h"
-#include "ui/gfx/sys_color_change_listener.h"
#include "ui/views/controls/button/menu_button.h"
#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/controls/webview/webview.h"
@@ -421,7 +420,6 @@ BrowserView::BrowserView()
#if defined(OS_CHROMEOS)
scroll_end_effect_controller_(ScrollEndEffectController::Create()),
#endif
- color_change_listener_(this),
activate_modal_dialog_factory_(this) {
}
@@ -1843,6 +1841,12 @@ void BrowserView::GetAccessibleState(ui::AXViewState* state) {
state->role = ui::AX_ROLE_CLIENT;
}
+void BrowserView::OnNativeThemeChanged(const ui::NativeTheme* theme) {
+ ClientView::OnNativeThemeChanged(theme);
+ UserChangedTheme();
+ chrome::MaybeShowInvertBubbleView(this);
sky 2014/04/24 22:52:01 estade's patch made it show that you'll hit this o
msw 2014/04/25 00:14:51 I just ran my local Chromium build with a clean pr
+}
+
///////////////////////////////////////////////////////////////////////////////
// BrowserView, ui::AcceleratorTarget overrides:
@@ -1900,10 +1904,6 @@ bool BrowserView::DrawInfoBarArrows(int* x) const {
return true;
}
-void BrowserView::OnSysColorChange() {
- chrome::MaybeShowInvertBubbleView(this);
-}
-
void BrowserView::InitViews() {
GetWidget()->AddObserver(this);

Powered by Google App Engine
This is Rietveld 408576698