linux_ui_delegate_stub.h 868 B

1234567891011121314151617181920212223242526272829
  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. #ifndef UI_LINUX_LINUX_UI_DELEGATE_STUB_H_
  5. #define UI_LINUX_LINUX_UI_DELEGATE_STUB_H_
  6. #include "ui/linux/linux_ui_delegate.h"
  7. namespace ui {
  8. class COMPONENT_EXPORT(LINUX_UI) LinuxUiDelegateStub
  9. : public ui::LinuxUiDelegate {
  10. public:
  11. LinuxUiDelegateStub();
  12. LinuxUiDelegateStub(const LinuxUiDelegateStub&) = delete;
  13. LinuxUiDelegateStub& operator=(const LinuxUiDelegateStub&) = delete;
  14. ~LinuxUiDelegateStub() override;
  15. // LinuxUiDelegate:
  16. LinuxUiBackend GetBackend() const override;
  17. bool ExportWindowHandle(
  18. gfx::AcceleratedWidget window_id,
  19. base::OnceCallback<void(std::string)> callback) override;
  20. };
  21. } // namespace ui
  22. #endif // UI_LINUX_LINUX_UI_DELEGATE_STUB_H_