blob: aa609097ea71de5ef5ad195c65535d3b394964cb [file] [log] [blame]
Tom Anderson80d3ad42022-05-03 12:09:271// 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 Anderson4ee83742022-07-14 20:58:415#ifndef UI_LINUX_LINUX_UI_FACTORY_H_
6#define UI_LINUX_LINUX_UI_FACTORY_H_
Tom Anderson80d3ad42022-05-03 12:09:277
Tom Anderson074a5d412022-08-30 18:54:538#include "base/component_export.h"
Tom Andersond6ecb872022-09-02 19:13:039#include "base/features.h"
Tom Anderson80d3ad42022-05-03 12:09:2710
Tom Anderson992d9872022-07-14 21:24:5011namespace ui {
12
13class LinuxUi;
Tom Anderson074a5d412022-08-30 18:54:5314enum class SystemTheme : int;
Tom Anderson80d3ad42022-05-03 12:09:2715
Tom Andersond6ecb872022-09-02 19:13:0316// TODO(https://crbug.com/1317782): Remove in M110.
17COMPONENT_EXPORT(LINUX_UI_FACTORY)
18extern const base::Feature kAllowQt;
19
Tom Anderson074a5d412022-08-30 18:54:5320// 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.
22COMPONENT_EXPORT(LINUX_UI_FACTORY)
23LinuxUi* GetDefaultLinuxUi();
24
25COMPONENT_EXPORT(LINUX_UI_FACTORY)
26LinuxUi* GetLinuxUi(SystemTheme system_theme);
27
28COMPONENT_EXPORT(LINUX_UI_FACTORY)
29SystemTheme GetDefaultSystemTheme();
Tom Anderson992d9872022-07-14 21:24:5030
31} // namespace ui
Tom Anderson80d3ad42022-05-03 12:09:2732
Tom Anderson4ee83742022-07-14 20:58:4133#endif // UI_LINUX_LINUX_UI_FACTORY_H_