os_exchange_data_provider_factory.h 755 B

123456789101112131415161718192021222324
  1. // Copyright 2016 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_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_FACTORY_H_
  5. #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_FACTORY_H_
  6. #include <memory>
  7. #include "base/component_export.h"
  8. #include "ui/base/dragdrop/os_exchange_data_provider.h"
  9. namespace ui {
  10. // Builds platform specific OSExchangeDataProviders.
  11. class COMPONENT_EXPORT(UI_BASE) OSExchangeDataProviderFactory {
  12. public:
  13. // Creates a Provider based on the current platform.
  14. static std::unique_ptr<OSExchangeDataProvider> CreateProvider();
  15. };
  16. } // namespace ui
  17. #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_FACTORY_H_