OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_CONTROLS_LINK_H_ | 5 #ifndef UI_VIEWS_CONTROLS_LINK_H_ |
6 #define UI_VIEWS_CONTROLS_LINK_H_ | 6 #define UI_VIEWS_CONTROLS_LINK_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ui/views/controls/label.h" | 10 #include "ui/views/controls/label.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 38 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
39 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; | 39 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; |
40 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 40 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
41 virtual void OnMouseCaptureLost() OVERRIDE; | 41 virtual void OnMouseCaptureLost() OVERRIDE; |
42 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 42 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
43 virtual bool SkipDefaultKeyEventProcessing( | 43 virtual bool SkipDefaultKeyEventProcessing( |
44 const ui::KeyEvent& event) OVERRIDE; | 44 const ui::KeyEvent& event) OVERRIDE; |
45 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 45 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
46 | 46 |
47 // Overridden from ui::EventHandler: | 47 // Overridden from ui::EventHandler: |
48 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 48 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
49 | 49 |
50 // Overridden from Label: | 50 // Overridden from Label: |
51 virtual void SetFont(const gfx::Font& font) OVERRIDE; | 51 virtual void SetFont(const gfx::Font& font) OVERRIDE; |
52 | 52 |
53 virtual void SetEnabledColor(SkColor color) OVERRIDE; | 53 virtual void SetEnabledColor(SkColor color) OVERRIDE; |
54 void SetPressedColor(SkColor color); | 54 void SetPressedColor(SkColor color); |
55 void SetUnderline(bool underline); | 55 void SetUnderline(bool underline); |
56 | 56 |
57 static const char kViewClassName[]; | 57 static const char kViewClassName[]; |
58 | 58 |
(...skipping 17 matching lines...) Expand all Loading... |
76 | 76 |
77 // The color when the link is pressed. | 77 // The color when the link is pressed. |
78 SkColor requested_pressed_color_; | 78 SkColor requested_pressed_color_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(Link); | 80 DISALLOW_COPY_AND_ASSIGN(Link); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace views | 83 } // namespace views |
84 | 84 |
85 #endif // UI_VIEWS_CONTROLS_LINK_H_ | 85 #endif // UI_VIEWS_CONTROLS_LINK_H_ |
OLD | NEW |