Merge CursorThemeManager into LinuxUi
R=sky
Bug: 1317782
Change-Id: I9e6c03c18d19c755fa0557266fbeb26aa142ff42
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3755638
Commit-Queue: Thomas Anderson <[email protected]>
Reviewed-by: Scott Violet <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1024473}
diff --git a/ui/linux/cursor_theme_manager_observer.h b/ui/linux/cursor_theme_manager_observer.h
new file mode 100644
index 0000000..ab7e9f5
--- /dev/null
+++ b/ui/linux/cursor_theme_manager_observer.h
@@ -0,0 +1,29 @@
+// Copyright 2019 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_LINUX_CURSOR_THEME_MANAGER_OBSERVER_H_
+#define UI_LINUX_CURSOR_THEME_MANAGER_OBSERVER_H_
+
+#include <string>
+
+#include "base/observer_list_types.h"
+
+namespace ui {
+
+class CursorThemeManagerObserver : public base::CheckedObserver {
+ public:
+ // |cursor_theme_name| will be nonempty.
+ virtual void OnCursorThemeNameChanged(
+ const std::string& cursor_theme_name) = 0;
+
+ // |cursor_theme_size| will be nonzero.
+ virtual void OnCursorThemeSizeChanged(int cursor_theme_size) = 0;
+
+ protected:
+ ~CursorThemeManagerObserver() override = default;
+};
+
+} // namespace ui
+
+#endif // UI_LINUX_CURSOR_THEME_MANAGER_OBSERVER_H_