Avi Drissman | 3e1a26c | 2022-09-15 20:26:03 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors |
Tom Anderson | a5901e24 | 2019-10-24 21:24:57 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Tom Anderson | a49b45a | 2022-07-14 22:54:30 | [diff] [blame] | 5 | #ifndef UI_LINUX_CURSOR_THEME_MANAGER_OBSERVER_H_ |
| 6 | #define UI_LINUX_CURSOR_THEME_MANAGER_OBSERVER_H_ |
Tom Anderson | a5901e24 | 2019-10-24 21:24:57 | [diff] [blame] | 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include "base/observer_list_types.h" |
Tom Anderson | a5901e24 | 2019-10-24 21:24:57 | [diff] [blame] | 11 | |
| 12 | namespace ui { |
| 13 | |
Henrique Ferreiro | 2e84712 | 2020-06-25 11:03:53 | [diff] [blame] | 14 | class CursorThemeManagerObserver : public base::CheckedObserver { |
Tom Anderson | a5901e24 | 2019-10-24 21:24:57 | [diff] [blame] | 15 | public: |
Tom Anderson | 4aeb18b3 | 2019-12-12 00:35:15 | [diff] [blame] | 16 | // |cursor_theme_name| will be nonempty. |
Tom Anderson | a5901e24 | 2019-10-24 21:24:57 | [diff] [blame] | 17 | virtual void OnCursorThemeNameChanged( |
| 18 | const std::string& cursor_theme_name) = 0; |
Tom Anderson | 4aeb18b3 | 2019-12-12 00:35:15 | [diff] [blame] | 19 | |
| 20 | // |cursor_theme_size| will be nonzero. |
Tom Anderson | a5901e24 | 2019-10-24 21:24:57 | [diff] [blame] | 21 | virtual void OnCursorThemeSizeChanged(int cursor_theme_size) = 0; |
| 22 | |
| 23 | protected: |
Henrique Ferreiro | be46974 | 2020-06-24 07:31:54 | [diff] [blame] | 24 | ~CursorThemeManagerObserver() override = default; |
Tom Anderson | a5901e24 | 2019-10-24 21:24:57 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | } // namespace ui |
| 28 | |
Tom Anderson | a49b45a | 2022-07-14 22:54:30 | [diff] [blame] | 29 | #endif // UI_LINUX_CURSOR_THEME_MANAGER_OBSERVER_H_ |