blob: d4fd2b19c30d2dd36077f51f93f379ad6fddb544 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/ash_export.h"
#include "ui/views/controls/label.h"
namespace views {
class View;
class Widget;
} // namespace views
namespace ash {
namespace login_views_utils {
// Wraps view in another view so the original view is sized to it's preferred
// size, regardless of the view's parent's layout manager.
ASH_EXPORT views::View* WrapViewForPreferredSize(views::View* view);
// Returns true if landscape constants should be used for UI shown in |widget|.
ASH_EXPORT bool ShouldShowLandscape(const views::Widget* widget);
// Returns true if |view| or any of its descendant views HasFocus.
ASH_EXPORT bool HasFocusInAnyChildView(views::View* view);
// Creates a standard text label for use in the login bubbles.
views::Label* CreateBubbleLabel(const base::string16& message, SkColor color);
} // namespace login_views_utils
} // namespace ash