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

Unified Diff: ui/gfx/sys_color_change_listener.h

Issue 854713003: More old files deletion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tryjobs? Created 5 years, 11 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 | « ui/gfx/skia_util.cc ('k') | ui/gfx/sys_color_change_listener.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/sys_color_change_listener.h
diff --git a/ui/gfx/sys_color_change_listener.h b/ui/gfx/sys_color_change_listener.h
deleted file mode 100644
index 31afd0cc49fc8417df054ecd0fd6a26c86dfa98f..0000000000000000000000000000000000000000
--- a/ui/gfx/sys_color_change_listener.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2012 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 UI_GFX_SYS_COLOR_CHANGE_LISTENER_H_
-#define UI_GFX_SYS_COLOR_CHANGE_LISTENER_H_
-
-#include "base/basictypes.h"
-#include "third_party/skia/include/core/SkColor.h"
-#include "ui/gfx/gfx_export.h"
-
-namespace gfx {
-
-// Returns true only if Chrome should use an inverted color scheme - which is
-// only true if the system has high-contrast mode enabled and and is using a
-// light-on-dark color scheme. To be notified when this status changes, use
-// ScopedSysColorChangeListener, below.
-GFX_EXPORT bool IsInvertedColorScheme();
-
-// Interface for classes that want to listen to system color changes.
-class GFX_EXPORT SysColorChangeListener {
- public:
- virtual void OnSysColorChange() = 0;
-
- protected:
- virtual ~SysColorChangeListener() {}
-};
-
-// Create an instance of this class in any object that wants to listen
-// for system color changes.
-class GFX_EXPORT ScopedSysColorChangeListener {
- public:
- explicit ScopedSysColorChangeListener(SysColorChangeListener* listener);
- ~ScopedSysColorChangeListener();
-
- private:
- SysColorChangeListener* listener_;
-
- DISALLOW_COPY_AND_ASSIGN(ScopedSysColorChangeListener);
-};
-
-} // namespace gfx;
-
-#endif // UI_GFX_SYS_COLOR_CHANGE_LISTENER_H_
« no previous file with comments | « ui/gfx/skia_util.cc ('k') | ui/gfx/sys_color_change_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698