blob: e3a20789267bf714bc8606701db28bb9617f007d (
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
|
// Copyright 2013 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_PROFILES_AVATAR_MENU_ACTIONS_DESKTOP_H_
#define CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_DESKTOP_H_
#include <string>
#include "chrome/browser/profiles/avatar_menu_actions.h"
#include "chrome/browser/profiles/profile_metrics.h"
class Profile;
// This interface controls the behavior of avatar menu actions.
class AvatarMenuActionsDesktop : public AvatarMenuActions {
public:
AvatarMenuActionsDesktop();
virtual ~AvatarMenuActionsDesktop();
// AvatarMenuActions overrides:
virtual void AddNewProfile(ProfileMetrics::ProfileAdd type) OVERRIDE;
virtual void EditProfile(Profile* profile, size_t index) OVERRIDE;
virtual bool ShouldShowAddNewProfileLink() const OVERRIDE;
virtual bool ShouldShowEditProfileLink() const OVERRIDE;
virtual void ActiveBrowserChanged(Browser* browser) OVERRIDE;
private:
// Browser in which this avatar menu resides. Weak.
Browser* browser_;
// Special "override" logout URL used to let tests work.
std::string logout_override_;
DISALLOW_COPY_AND_ASSIGN(AvatarMenuActionsDesktop);
};
#endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_DESKTOP_H_
|