Tom Anderson | 80d3ad4 | 2022-05-03 12:09:27 | [diff] [blame] | 1 | // Copyright 2022 The Chromium Authors. All rights reserved. |
| 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 | 4ee8374 | 2022-07-14 20:58:41 | [diff] [blame] | 5 | #ifndef UI_LINUX_LINUX_UI_FACTORY_H_ |
| 6 | #define UI_LINUX_LINUX_UI_FACTORY_H_ |
Tom Anderson | 80d3ad4 | 2022-05-03 12:09:27 | [diff] [blame] | 7 | |
Tom Anderson | 074a5d41 | 2022-08-30 18:54:53 | [diff] [blame^] | 8 | #include "base/component_export.h" |
Tom Anderson | 80d3ad4 | 2022-05-03 12:09:27 | [diff] [blame] | 9 | |
Tom Anderson | 992d987 | 2022-07-14 21:24:50 | [diff] [blame] | 10 | namespace ui { |
| 11 | |
| 12 | class LinuxUi; |
Tom Anderson | 074a5d41 | 2022-08-30 18:54:53 | [diff] [blame^] | 13 | enum class SystemTheme : int; |
Tom Anderson | 80d3ad4 | 2022-05-03 12:09:27 | [diff] [blame] | 14 | |
Tom Anderson | 074a5d41 | 2022-08-30 18:54:53 | [diff] [blame^] | 15 | // Returns a LinuxUi for the default toolkit. May create a LinuxUi instance if |
| 16 | // one does not exist. May return nullptr if no toolkits are available. |
| 17 | COMPONENT_EXPORT(LINUX_UI_FACTORY) |
| 18 | LinuxUi* GetDefaultLinuxUi(); |
| 19 | |
| 20 | COMPONENT_EXPORT(LINUX_UI_FACTORY) |
| 21 | LinuxUi* GetLinuxUi(SystemTheme system_theme); |
| 22 | |
| 23 | COMPONENT_EXPORT(LINUX_UI_FACTORY) |
| 24 | SystemTheme GetDefaultSystemTheme(); |
Tom Anderson | 992d987 | 2022-07-14 21:24:50 | [diff] [blame] | 25 | |
| 26 | } // namespace ui |
Tom Anderson | 80d3ad4 | 2022-05-03 12:09:27 | [diff] [blame] | 27 | |
Tom Anderson | 4ee8374 | 2022-07-14 20:58:41 | [diff] [blame] | 28 | #endif // UI_LINUX_LINUX_UI_FACTORY_H_ |