metadata_header_macros.h 964 B

12345678910111213141516171819202122
  1. // Copyright 2019 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_METADATA_METADATA_HEADER_MACROS_H_
  5. #define UI_BASE_METADATA_METADATA_HEADER_MACROS_H_
  6. #include "ui/base/metadata/metadata_macros_internal.h"
  7. // Generate Metadata's accessor functions and internal class declaration.
  8. // This should be used in a header file of the View class or its subclasses.
  9. #define METADATA_HEADER(class_name) \
  10. METADATA_ACCESSORS_INTERNAL(class_name) \
  11. METADATA_CLASS_INTERNAL(class_name, __FILE__, __LINE__)
  12. // A version of METADATA_HEADER for View, the root of the metadata hierarchy.
  13. // Here METADATA_ACCESSORS_INTERNAL_BASE is called.
  14. #define METADATA_HEADER_BASE(class_name) \
  15. METADATA_ACCESSORS_INTERNAL_BASE(class_name) \
  16. METADATA_CLASS_INTERNAL(class_name, __FILE__, __LINE__)
  17. #endif // UI_BASE_METADATA_METADATA_HEADER_MACROS_H_