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