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 | d6ecb87 | 2022-09-02 19:13:03 | [diff] [blame^] | 9 | #include "base/features.h" |
Tom Anderson | 80d3ad4 | 2022-05-03 12:09:27 | [diff] [blame] | 10 | |
Tom Anderson | 992d987 | 2022-07-14 21:24:50 | [diff] [blame] | 11 | namespace ui { |
| 12 | |
| 13 | class LinuxUi; |
Tom Anderson | 074a5d41 | 2022-08-30 18:54:53 | [diff] [blame] | 14 | enum class SystemTheme : int; |
Tom Anderson | 80d3ad4 | 2022-05-03 12:09:27 | [diff] [blame] | 15 | |
Tom Anderson | d6ecb87 | 2022-09-02 19:13:03 | [diff] [blame^] | 16 | // TODO(https://crbug.com/1317782): Remove in M110. |
| 17 | COMPONENT_EXPORT(LINUX_UI_FACTORY) |
| 18 | extern const base::Feature kAllowQt; |
| 19 | |
Tom Anderson | 074a5d41 | 2022-08-30 18:54:53 | [diff] [blame] | 20 | // Returns a LinuxUi for the default toolkit. May create a LinuxUi instance if |
| 21 | // one does not exist. May return nullptr if no toolkits are available. |
| 22 | COMPONENT_EXPORT(LINUX_UI_FACTORY) |
| 23 | LinuxUi* GetDefaultLinuxUi(); |
| 24 | |
| 25 | COMPONENT_EXPORT(LINUX_UI_FACTORY) |
| 26 | LinuxUi* GetLinuxUi(SystemTheme system_theme); |
| 27 | |
| 28 | COMPONENT_EXPORT(LINUX_UI_FACTORY) |
| 29 | SystemTheme GetDefaultSystemTheme(); |
Tom Anderson | 992d987 | 2022-07-14 21:24:50 | [diff] [blame] | 30 | |
| 31 | } // namespace ui |
Tom Anderson | 80d3ad4 | 2022-05-03 12:09:27 | [diff] [blame] | 32 | |
Tom Anderson | 4ee8374 | 2022-07-14 20:58:41 | [diff] [blame] | 33 | #endif // UI_LINUX_LINUX_UI_FACTORY_H_ |