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

Unified Diff: chrome/browser/chromeos/login/username_view.h

Issue 5966008: Show hand cursor only on small user pods and labels (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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 side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698