1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23

ash / auth / views / auth_view_utils.cc [blame]

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ash/auth/views/auth_view_utils.h"

#include "ash/login/ui/non_accessible_view.h"
#include "ui/views/view.h"

namespace ash {

views::View* AddVerticalSpace(views::View* view, int height) {
  auto* spacer = view->AddChildView(std::make_unique<NonAccessibleView>());
  spacer->SetPreferredSize(gfx::Size(1, height));
  return spacer;
}

views::View* AddHorizontalSpace(views::View* view, int width) {
  auto* spacer = view->AddChildView(std::make_unique<NonAccessibleView>());
  spacer->SetPreferredSize(gfx::Size(width, 1));
  return spacer;
}
}  // namespace ash