Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / chromeos / profiles / avatar_menu_actions_chromeos.h
blob75420f85f5b69ad7dcb26ea1cfc526c205004cda
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_PROFILES_AVATAR_MENU_ACTIONS_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_PROFILES_AVATAR_MENU_ACTIONS_CHROMEOS_H_
8 #include "chrome/browser/profiles/avatar_menu_actions.h"
10 #include <string>
12 class Browser;
14 namespace chromeos {
16 // This interface controls the behavior of avatar menu actions on ChromeOS.
17 class AvatarMenuActionsChromeOS : public AvatarMenuActions {
18 public:
19 AvatarMenuActionsChromeOS();
20 ~AvatarMenuActionsChromeOS() override;
22 // AvatarMenuActions overrides:
23 void AddNewProfile(ProfileMetrics::ProfileAdd type) override;
24 void EditProfile(Profile* profile, size_t index) override;
25 bool ShouldShowAddNewProfileLink() const override;
26 bool ShouldShowEditProfileLink() const override;
27 void ActiveBrowserChanged(Browser* browser) override;
29 private:
30 // Browser in which this avatar menu resides. Weak.
31 Browser* browser_;
33 DISALLOW_COPY_AND_ASSIGN(AvatarMenuActionsChromeOS);
36 } // namespace chromeos
38 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_AVATAR_MENU_ACTIONS_CHROMEOS_H_