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 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 <string> | 8 #include <string> |
9 | 9 |
10 #include "views/controls/label.h" | 10 #include "views/controls/label.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 SkipDefaultKeyEventProcessing(const KeyEvent& e); | 50 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e); |
51 | 51 |
52 // Accessibility accessors, overridden from View: | 52 // Accessibility accessors, overridden from View: |
53 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); | 53 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); |
54 virtual bool GetAccessibleName(std::wstring* name); | |
55 | 54 |
56 virtual void SetFont(const gfx::Font& font); | 55 virtual void SetFont(const gfx::Font& font); |
57 | 56 |
58 // Set whether the link is enabled. | 57 // Set whether the link is enabled. |
59 virtual void SetEnabled(bool f); | 58 virtual void SetEnabled(bool f); |
60 | 59 |
61 virtual gfx::NativeCursor GetCursorForPoint(Event::EventType event_type, | 60 virtual gfx::NativeCursor GetCursorForPoint(Event::EventType event_type, |
62 const gfx::Point& p); | 61 const gfx::Point& p); |
63 | 62 |
64 virtual std::string GetClassName() const; | 63 virtual std::string GetClassName() const; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 95 |
97 // The color when the link is neither highlighted nor disabled. | 96 // The color when the link is neither highlighted nor disabled. |
98 SkColor normal_color_; | 97 SkColor normal_color_; |
99 | 98 |
100 DISALLOW_COPY_AND_ASSIGN(Link); | 99 DISALLOW_COPY_AND_ASSIGN(Link); |
101 }; | 100 }; |
102 | 101 |
103 } // namespace views | 102 } // namespace views |
104 | 103 |
105 #endif // VIEWS_CONTROLS_LINK_H_ | 104 #endif // VIEWS_CONTROLS_LINK_H_ |
OLD | NEW |