blob: 06afd4b0b03cfba782ea540a0c57c0767bb9d152 [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.
#ifndef CHROME_BROWSER_UI_VIEWS_BUBBLE_ANCHOR_UTIL_VIEWS_H_
#define CHROME_BROWSER_UI_VIEWS_BUBBLE_ANCHOR_UTIL_VIEWS_H_
#include "chrome/browser/ui/bubble_anchor_util.h"
#include "ui/views/bubble/bubble_border.h"
namespace views {
class Button;
class View;
}
class Browser;
namespace bubble_anchor_util {
struct AnchorConfiguration {
views::View* anchor_view = nullptr;
views::Button* highlighted_button = nullptr;
views::BubbleBorder::Arrow bubble_arrow = views::BubbleBorder::TOP_LEFT;
};
// Returns:
// - The PageInfo |anchor| View.
// - The view the be highlighted for |browser|, or null if it should not be
// used.
// - The arrow position for the PageInfo bubble.
AnchorConfiguration GetPageInfoAnchorConfiguration(Browser* browser,
Anchor = kLocationBar);
} // namespace bubble_anchor_util
#endif // CHROME_BROWSER_UI_VIEWS_BUBBLE_ANCHOR_UTIL_VIEWS_H_