#include "chrome/browser/ui/views/location_bar/location_bar_layout.h"
#include "base/memory/raw_ptr.h"
#include "chrome/browser/themes/theme_properties.h"
#include "components/lens/lens_features.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/views/view.h"
struct DecorationInfo { … };
DecorationInfo::DecorationInfo(int y,
int height,
bool auto_collapse,
double max_fraction,
int intra_item_padding,
int edge_item_padding,
views::View* view)
: … { … }
LocationBarLayout::LocationBarLayout(Position position, int item_edit_padding)
: … { … }
LocationBarLayout::~LocationBarLayout() { … }
void LocationBarLayout::AddDecoration(int y,
int height,
bool auto_collapse,
double max_fraction,
int intra_item_padding,
int edge_item_padding,
views::View* view) { … }
void LocationBarLayout::LayoutPass1(int* entry_width, int reserved_width) { … }
void LocationBarLayout::LayoutPass2(int* entry_width) { … }
void LocationBarLayout::LayoutPass3(gfx::Rect* bounds, int* available_width) { … }