Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Side by Side Diff: chrome/browser/profiles/fake_profile_info_interface.h

Issue 7647002: [Mac] Implement the avatar menu bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add test Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 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.
4
5 #ifndef CHROME_BROWSER_PROFILES_FAKE_PROFILE_INFO_INTERFACE_H_
6 #define CHROME_BROWSER_PROFILES_FAKE_PROFILE_INFO_INTERFACE_H_
7
8 #include <vector>
9
10 #include "base/string16.h"
11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/profiles/avatar_menu_model.h"
13 #include "chrome/browser/profiles/avatar_menu_model_observer.h"
14 #include "chrome/browser/profiles/profile_info_interface.h"
15 #include "chrome/common/chrome_notification_types.h"
16 #include "ui/gfx/image/image.h"
17
18 class FakeProfileInfo : public ProfileInfoInterface {
19 public:
20 FakeProfileInfo();
21 virtual ~FakeProfileInfo();
22
23 std::vector<AvatarMenuModel::Item*>* mock_profiles();
24
25 static gfx::Image& GetTestImage();
26
27 // ProfileInfoInterface:
28 virtual size_t GetNumberOfProfiles() const OVERRIDE;
29 virtual size_t GetIndexOfProfileWithPath(
30 const FilePath& profile_path) const OVERRIDE;
31 virtual string16 GetNameOfProfileAtIndex(size_t index) const OVERRIDE;
32 virtual FilePath GetPathOfProfileAtIndex(size_t index) const OVERRIDE;
33 virtual const gfx::Image& GetAvatarIconOfProfileAtIndex(
34 size_t index) const OVERRIDE;
35
36 private:
37 std::vector<AvatarMenuModel::Item*> profiles_;
38 };
39
40 #endif // CHROME_BROWSER_PROFILES_FAKE_PROFILE_INFO_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/avatar_menu_model_unittest.cc ('k') | chrome/browser/profiles/fake_profile_info_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698