OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 VIEWS_CONTROLS_LINK_H_ | 5 #ifndef VIEWS_CONTROLS_LINK_H_ |
6 #define VIEWS_CONTROLS_LINK_H_ | 6 #define VIEWS_CONTROLS_LINK_H_ |
7 | 7 |
8 #include "views/controls/label.h" | 8 #include "views/controls/label.h" |
9 | 9 |
10 namespace views { | 10 namespace views { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 const LinkController* GetController(); | 42 const LinkController* GetController(); |
43 | 43 |
44 // Overridden from View: | 44 // Overridden from View: |
45 virtual bool OnMousePressed(const MouseEvent& event); | 45 virtual bool OnMousePressed(const MouseEvent& event); |
46 virtual bool OnMouseDragged(const MouseEvent& event); | 46 virtual bool OnMouseDragged(const MouseEvent& event); |
47 virtual void OnMouseReleased(const MouseEvent& event, | 47 virtual void OnMouseReleased(const MouseEvent& event, |
48 bool canceled); | 48 bool canceled); |
49 virtual bool OnKeyPressed(const KeyEvent& e); | 49 virtual bool OnKeyPressed(const KeyEvent& e); |
50 virtual bool OverrideAccelerator(const Accelerator& accelerator); | 50 virtual bool OverrideAccelerator(const Accelerator& accelerator); |
51 | 51 |
52 virtual void SetFont(const ChromeFont& font); | 52 virtual void SetFont(const gfx::Font& font); |
53 | 53 |
54 // Set whether the link is enabled. | 54 // Set whether the link is enabled. |
55 virtual void SetEnabled(bool f); | 55 virtual void SetEnabled(bool f); |
56 | 56 |
57 virtual HCURSOR GetCursorForPoint(Event::EventType event_type, int x, int y); | 57 virtual HCURSOR GetCursorForPoint(Event::EventType event_type, int x, int y); |
58 | 58 |
59 virtual std::string GetClassName() const; | 59 virtual std::string GetClassName() const; |
60 | 60 |
61 void SetHighlightedColor(const SkColor& color); | 61 void SetHighlightedColor(const SkColor& color); |
62 void SetDisabledColor(const SkColor& color); | 62 void SetDisabledColor(const SkColor& color); |
(...skipping 22 matching lines...) Expand all Loading... |
85 | 85 |
86 // The color when the link is neither highlighted nor disabled. | 86 // The color when the link is neither highlighted nor disabled. |
87 SkColor normal_color_; | 87 SkColor normal_color_; |
88 | 88 |
89 DISALLOW_COPY_AND_ASSIGN(Link); | 89 DISALLOW_COPY_AND_ASSIGN(Link); |
90 }; | 90 }; |
91 | 91 |
92 } // namespace views | 92 } // namespace views |
93 | 93 |
94 #endif // VIEWS_CONTROLS_LINK_H_ | 94 #endif // VIEWS_CONTROLS_LINK_H_ |
OLD | NEW |