blob: cd1aff8e137d27fbb5c6416fda6896b2e8cc1de7 [file] [log] [blame]
// Copyright 2019 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 <stddef.h>
#include <memory>
#include "base/macros.h"
#include "chrome/browser/ui/views/profiles/profile_menu_view_base.h"
namespace views {
class Button;
class Browser;
// TODO( Separation of providing content for different
// menus and the UI effort to view it between this class and
// |ProfileMenuViewBase| is in progress.
// This bubble view is displayed when the user clicks on the avatar button in
// incognito mode and displays the incognito menu.
class IncognitoMenuView : public ProfileMenuViewBase {
IncognitoMenuView(views::Button* anchor_button,
const gfx::Rect& anchor_rect,
gfx::NativeView parent_window,
Browser* browser);
~IncognitoMenuView() override;
// views::BubbleDialogDelegateView:
void Init() override;
base::string16 GetAccessibleWindowTitle() const override;
// views::ButtonListener:
void ButtonPressed(views::Button* sender, const ui::Event& event) override;
void Reset();
// Adds the incognito window count view.
void AddIncognitoWindowCountView();
views::Button* exit_button_;