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

Side by Side Diff: chrome/browser/chromeos/login/default_images_view.h

Issue 7015041: [cros] Update default avatars and guest icon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments Created 9 years, 7 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_IMAGES_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_IMAGES_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_IMAGES_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_IMAGES_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "views/controls/button/button.h" 9 #include "views/controls/button/button.h"
10 #include "views/view.h" 10 #include "views/view.h"
(...skipping 24 matching lines...) Expand all
35 explicit DefaultImagesView(Delegate* delegate); 35 explicit DefaultImagesView(Delegate* delegate);
36 virtual ~DefaultImagesView(); 36 virtual ~DefaultImagesView();
37 37
38 // Initializes this view, its children and layout. 38 // Initializes this view, its children and layout.
39 void Init(); 39 void Init();
40 40
41 // Returns the index of the selected default image or -1 if there's no 41 // Returns the index of the selected default image or -1 if there's no
42 // selected image. 42 // selected image.
43 int GetDefaultImageIndex() const; 43 int GetDefaultImageIndex() const;
44 44
45 // Allows to specify the selected image index specifically.
46 void SetDefaultImageIndex(int index);
47
45 // Unselects the selected image if there's one. 48 // Unselects the selected image if there's one.
46 void ClearSelection(); 49 void ClearSelection();
47 50
48 // Overridden from views::View: 51 // Overridden from views::View:
49 virtual gfx::Size GetPreferredSize(); 52 virtual gfx::Size GetPreferredSize();
50 53
51 // Overridden from views::ButtonListener. 54 // Overridden from views::ButtonListener.
52 virtual void ButtonPressed(views::Button* sender, const views::Event& event); 55 virtual void ButtonPressed(views::Button* sender, const views::Event& event);
53 56
54 private: 57 private:
(...skipping 13 matching lines...) Expand all
68 Delegate* delegate_; 71 Delegate* delegate_;
69 72
70 DISALLOW_COPY_AND_ASSIGN(DefaultImagesView); 73 DISALLOW_COPY_AND_ASSIGN(DefaultImagesView);
71 }; 74 };
72 75
73 } // namespace chromeos 76 } // namespace chromeos
74 77
75 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_IMAGES_VIEW_H_ 78 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_IMAGES_VIEW_H_
76 79
77 80
OLDNEW
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/chromeos/login/default_images_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698