Searched refs:ctrl_size (Results 1 – 2 of 2) sorted by relevance
67 pp::Size ctrl_size; in Reconfigure() local69 device_scale_, &ctrl_size, &image_rc_, &text_rc_); in Reconfigure()70 pp::Rect rc(pp::Point(), ctrl_size); in Reconfigure()81 pp::Size* ctrl_size, in CalculateLayout() argument104 *ctrl_size = pp::Size( in CalculateLayout()112 if (ctrl_size->width() < background.size().width()) { in CalculateLayout()113 offset_x += (background.size().width() - ctrl_size->width()) / 2; in CalculateLayout()114 ctrl_size->set_width(background.size().width()); in CalculateLayout()116 if (ctrl_size->height() < background.size().height()) { in CalculateLayout()117 offset_y += (background.size().height() - ctrl_size->height()) / 2; in CalculateLayout()[all …]
44 pp::Size* ctrl_size,