linux_ui_base.cc 559 B

1234567891011121314151617181920
  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. #include "ui/linux/linux_ui_base.h"
  5. #include "ui/native_theme/native_theme.h"
  6. namespace ui {
  7. LinuxUiBase::LinuxUiBase() = default;
  8. LinuxUiBase::~LinuxUiBase() = default;
  9. ui::NativeTheme* LinuxUiBase::GetNativeTheme(bool use_system_theme) const {
  10. return use_system_theme ? GetNativeThemeImpl()
  11. : ui::NativeTheme::GetInstanceForNativeUi();
  12. }
  13. } // namespace ui