| Index: chrome/browser/chromeos/login/username_view.h
|
| diff --git a/chrome/browser/chromeos/login/username_view.h b/chrome/browser/chromeos/login/username_view.h
|
| index 3ea81aac6aebea5be968147454bcc434e049f5ef..b2acd5a150d199c7496e3a5b25e415f474d12915 100644
|
| --- a/chrome/browser/chromeos/login/username_view.h
|
| +++ b/chrome/browser/chromeos/login/username_view.h
|
| @@ -35,9 +35,17 @@ class UsernameView : public views::Label {
|
| protected:
|
| // Constructs username view for the given |username|. Consider using
|
| // |CreateShapedUsernameView| to match the login page style.
|
| - explicit UsernameView(const std::wstring& username);
|
| + UsernameView(const std::wstring& username, bool use_small_shape);
|
| +
|
| + // True indicates that this UsernameView is used for a user pod not
|
| + // currently selected.
|
| + bool use_small_shape() const { return use_small_shape_; }
|
|
|
| private:
|
| + // Overriden from View.
|
| + gfx::NativeCursor GetCursorForPoint(
|
| + views::Event::EventType event_type,
|
| + const gfx::Point& p);
|
|
|
| // Paints username to the bitmap with the bounds given.
|
| void PaintUsername(const gfx::Rect& bounds);
|
| @@ -48,6 +56,9 @@ class UsernameView : public views::Label {
|
| // Holds margins width (depends on the height).
|
| int margin_width_;
|
|
|
| + // Whether the shape for the smaller view should be used.
|
| + bool use_small_shape_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(UsernameView);
|
| };
|
|
|
|
|