/*!
 * VisualEditor DataModel BoldAnnotation class.
 *
 * @copyright See AUTHORS.txt
 */

/**
 * DataModel bold annotation.
 *
 * Represents `<b>` and `<strong>` tags.
 *
 * @class
 * @extends ve.dm.TextStyleAnnotation
 * @constructor
 * @param {Object} element
 */
ve.dm.BoldAnnotation = function VeDmBoldAnnotation() {
	// Parent constructor
	ve.dm.BoldAnnotation.super.apply( this, arguments );
};

/* Inheritance */

OO.inheritClass( ve.dm.BoldAnnotation, ve.dm.TextStyleAnnotation );

/* Static Properties */

ve.dm.BoldAnnotation.static.name = 'textStyle/bold';

ve.dm.BoldAnnotation.static.matchTagNames = [ 'b', 'strong' ];

ve.dm.BoldAnnotation.static.inferFromView = true;

ve.dm.BoldAnnotation.static.description = OO.ui.deferMsg( 'visualeditor-annotationbutton-bold-tooltip' );

/* Registration */

ve.dm.modelRegistry.register( ve.dm.BoldAnnotation );