Chromium Code Reviews| 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..45ef5d2eef6687f3299660101c66daf9390b4f7c 100644 |
| --- a/chrome/browser/chromeos/login/username_view.h |
| +++ b/chrome/browser/chromeos/login/username_view.h |
| @@ -37,7 +37,14 @@ class UsernameView : public views::Label { |
| // |CreateShapedUsernameView| to match the login page style. |
| explicit UsernameView(const std::wstring& username); |
| + void set_use_small_shape(bool use) { use_small_shape_ = use; } |
| + bool get_use_small_shape() const { return use_small_shape_; } |
|
Dmitry Polukhin
2010/12/27 08:25:06
Getter shoudn't have get in its name. Comment abou
glotov
2010/12/30 15:54:52
Done.
|
| + |
| 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 +55,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); |
| }; |