OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DROP_SHADOW_LABEL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DROP_SHADOW_LABEL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DROP_SHADOW_LABEL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DROP_SHADOW_LABEL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/gfx/font.h" | 9 #include "ui/gfx/font.h" |
10 #include "views/controls/label.h" | 10 #include "views/controls/label.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 // Overridden to paint the text differently from the base class. | 37 // Overridden to paint the text differently from the base class. |
38 virtual void PaintText(gfx::Canvas* canvas, | 38 virtual void PaintText(gfx::Canvas* canvas, |
39 const string16& text, | 39 const string16& text, |
40 const gfx::Rect& text_bounds, | 40 const gfx::Rect& text_bounds, |
41 int flags) OVERRIDE; | 41 int flags) OVERRIDE; |
42 | 42 |
43 protected: | 43 protected: |
44 virtual gfx::Size GetTextSize() const OVERRIDE; | 44 virtual gfx::Size GetTextSize() const OVERRIDE; |
45 | 45 |
46 private: | 46 private: |
47 void Init(); | |
48 | |
49 int drop_shadow_size_; | 47 int drop_shadow_size_; |
50 | 48 |
51 DISALLOW_COPY_AND_ASSIGN(DropShadowLabel); | 49 DISALLOW_COPY_AND_ASSIGN(DropShadowLabel); |
52 }; | 50 }; |
53 | 51 |
54 } // namespace chromeos | 52 } // namespace chromeos |
55 | 53 |
56 #endif // CHROME_BROWSER_CHROMEOS_DROP_SHADOW_LABEL_H_ | 54 #endif // CHROME_BROWSER_CHROMEOS_DROP_SHADOW_LABEL_H_ |
OLD | NEW |