platform_constructor_list.h 527 B

123456789101112131415161718192021
  1. // Copyright 2014 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_OZONE_PLATFORM_CONSTRUCTOR_LIST_H_
  5. #define UI_OZONE_PLATFORM_CONSTRUCTOR_LIST_H_
  6. #include "ui/ozone/platform_list.h"
  7. namespace ui {
  8. template <class T>
  9. struct PlatformConstructorList {
  10. typedef T* (*Constructor)();
  11. static const Constructor kConstructors[kPlatformCount];
  12. };
  13. } // namespace ui
  14. #endif // UI_OZONE_PLATFORM_CONSTRUCTOR_LIST_H_