| 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 "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 44 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| 45 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 45 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 46 virtual bool SkipDefaultKeyEventProcessing( | 46 virtual bool SkipDefaultKeyEventProcessing( |
| 47 const ui::KeyEvent& event) OVERRIDE; | 47 const ui::KeyEvent& event) OVERRIDE; |
| 48 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 48 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 49 virtual void OnEnabledChanged() OVERRIDE; | 49 virtual void OnEnabledChanged() OVERRIDE; |
| 50 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 50 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 51 virtual void OnFocus() OVERRIDE; | 51 virtual void OnFocus() OVERRIDE; |
| 52 virtual void OnBlur() OVERRIDE; | 52 virtual void OnBlur() OVERRIDE; |
| 53 virtual void SetFont(const gfx::Font& font) OVERRIDE; | 53 virtual void SetFont(const gfx::Font& font) OVERRIDE; |
| 54 virtual void SetText(const string16& text) OVERRIDE; | 54 virtual void SetText(const base::string16& text) OVERRIDE; |
| 55 virtual void SetEnabledColor(SkColor color) OVERRIDE; | 55 virtual void SetEnabledColor(SkColor color) OVERRIDE; |
| 56 | 56 |
| 57 void SetPressedColor(SkColor color); | 57 void SetPressedColor(SkColor color); |
| 58 void SetUnderline(bool underline); | 58 void SetUnderline(bool underline); |
| 59 | 59 |
| 60 static const char kViewClassName[]; | 60 static const char kViewClassName[]; |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 void Init(); | 63 void Init(); |
| 64 | 64 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 79 | 79 |
| 80 // The color when the link is pressed. | 80 // The color when the link is pressed. |
| 81 SkColor requested_pressed_color_; | 81 SkColor requested_pressed_color_; |
| 82 | 82 |
| 83 DISALLOW_COPY_AND_ASSIGN(Link); | 83 DISALLOW_COPY_AND_ASSIGN(Link); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace views | 86 } // namespace views |
| 87 | 87 |
| 88 #endif // UI_VIEWS_CONTROLS_LINK_H_ | 88 #endif // UI_VIEWS_CONTROLS_LINK_H_ |
| OLD | NEW |