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

Unified Diff: chrome/browser/themes/theme_service_win.h

Issue 1771933002: Revert of Monitor the system native frame color on Win 10. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « chrome/browser/themes/theme_service_factory.cc ('k') | chrome/browser/themes/theme_service_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/themes/theme_service_win.h
diff --git a/chrome/browser/themes/theme_service_win.h b/chrome/browser/themes/theme_service_win.h
deleted file mode 100644
index 0f0473df7d8937d65fbabdcaee1bf811282e766a..0000000000000000000000000000000000000000
--- a/chrome/browser/themes/theme_service_win.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_THEMES_THEME_SERVICE_WIN_H_
-#define CHROME_BROWSER_THEMES_THEME_SERVICE_WIN_H_
-
-#include "base/win/registry.h"
-#include "chrome/browser/themes/theme_service.h"
-
-class ThemeServiceWin : public ThemeService {
- public:
- ThemeServiceWin();
- ~ThemeServiceWin() override;
-
- private:
- // ThemeService:
- bool ShouldUseNativeFrame() const override;
- SkColor GetDefaultColor(int id, bool incognito) const override;
-
- // Returns true if the window frame color is determined by the DWM, i.e. this
- // is a native frame on Windows 10.
- bool ShouldUseDwmFrameColor() const;
-
- // Callback executed when |dwm_key_| is updated. This re-reads the active
- // frame color and updates |dwm_frame_color_|.
- void OnDwmKeyUpdated();
-
- // Registry key containing the params that determine the DWM frame color.
- // This is only initialized on Windows 10.
- scoped_ptr<base::win::RegKey> dwm_key_;
-
- // The DWM frame color, if available; white otherwise.
- SkColor dwm_frame_color_;
-
- DISALLOW_COPY_AND_ASSIGN(ThemeServiceWin);
-};
-
-#endif // CHROME_BROWSER_THEMES_THEME_SERVICE_WIN_H_
« no previous file with comments | « chrome/browser/themes/theme_service_factory.cc ('k') | chrome/browser/themes/theme_service_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698