summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/profile_menu_button.h
blob: e7fc4b6abf995d09111172df827091ed978f98fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright (c) 2011 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_PROFILE_MENU_BUTTON_H_
#define CHROME_BROWSER_UI_VIEWS_PROFILE_MENU_BUTTON_H_
#pragma once

#include <string>

#include "views/controls/button/menu_button.h"

namespace gfx {
class Canvas;
}

namespace views {

// ProfileMenuButton
//
// Shows the button for the multiprofile menu with an image layered
// underneath that displays the profile tag.

class ProfileMenuButton : public MenuButton {
 public:
  // Space between window controls and end of profile tag.
  static const int kProfileTagHorizontalSpacing = 5;

  ProfileMenuButton(ButtonListener* listener,
                    const std::wstring& text,
                    ViewMenuDelegate* menu_delegate);

  virtual ~ProfileMenuButton();

  // Override MenuButton to clamp text at kMaxTextWidth.
  virtual void SetText(const std::wstring& text) OVERRIDE;

 private:
  DISALLOW_COPY_AND_ASSIGN(ProfileMenuButton);
};

}  // namespace views

#endif  // CHROME_BROWSER_UI_VIEWS_PROFILE_MENU_BUTTON_H_