| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 // Overridden from View: | 33 // Overridden from View: |
| 34 virtual void OnEnabledChanged() OVERRIDE; | 34 virtual void OnEnabledChanged() OVERRIDE; |
| 35 virtual std::string GetClassName() const OVERRIDE; | 35 virtual std::string GetClassName() const OVERRIDE; |
| 36 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; | 36 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; |
| 37 virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE; | 37 virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE; |
| 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 ui::GestureStatus OnGestureEvent( | 42 virtual ui::EventResult OnGestureEvent( |
| 43 const ui::GestureEvent& event) OVERRIDE; | 43 const ui::GestureEvent& event) OVERRIDE; |
| 44 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 44 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| 45 virtual bool SkipDefaultKeyEventProcessing( | 45 virtual bool SkipDefaultKeyEventProcessing( |
| 46 const ui::KeyEvent& event) OVERRIDE; | 46 const ui::KeyEvent& event) OVERRIDE; |
| 47 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 47 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 48 | 48 |
| 49 // Overridden from Label: | 49 // Overridden from Label: |
| 50 virtual void SetFont(const gfx::Font& font) OVERRIDE; | 50 virtual void SetFont(const gfx::Font& font) OVERRIDE; |
| 51 | 51 |
| 52 virtual void SetEnabledColor(SkColor color) OVERRIDE; | 52 virtual void SetEnabledColor(SkColor color) OVERRIDE; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 71 | 71 |
| 72 // The color when the link is pressed. | 72 // The color when the link is pressed. |
| 73 SkColor requested_pressed_color_; | 73 SkColor requested_pressed_color_; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(Link); | 75 DISALLOW_COPY_AND_ASSIGN(Link); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace views | 78 } // namespace views |
| 79 | 79 |
| 80 #endif // UI_VIEWS_CONTROLS_LINK_H_ | 80 #endif // UI_VIEWS_CONTROLS_LINK_H_ |
| OLD | NEW |