| 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 "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 void OnGestureEvent(ui::GestureEvent* event) override; | 44 void OnGestureEvent(ui::GestureEvent* event) override; |
| 45 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; | 45 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; |
| 46 void GetAccessibleState(ui::AXViewState* state) override; | 46 void GetAccessibleState(ui::AXViewState* state) override; |
| 47 void OnEnabledChanged() override; | 47 void OnEnabledChanged() override; |
| 48 void OnFocus() override; | 48 void OnFocus() override; |
| 49 void OnBlur() override; | 49 void OnBlur() override; |
| 50 void SetFontList(const gfx::FontList& font_list) override; | 50 void SetFontList(const gfx::FontList& font_list) override; |
| 51 void SetText(const base::string16& text) override; | 51 void SetText(const base::string16& text) override; |
| 52 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; | 52 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; |
| 53 void SetEnabledColor(SkColor color) override; | 53 void SetEnabledColor(SkColor color) override; |
| 54 bool IsSelectionSupported() const override; |
| 54 | 55 |
| 55 // TODO(estade): almost all the places that call this pass false. With | 56 // TODO(estade): almost all the places that call this pass false. With |
| 56 // Harmony, false is already the default so those callsites can be removed. | 57 // Harmony, false is already the default so those callsites can be removed. |
| 57 void SetUnderline(bool underline); | 58 void SetUnderline(bool underline); |
| 58 | 59 |
| 59 static const char kViewClassName[]; | 60 static const char kViewClassName[]; |
| 60 | 61 |
| 61 private: | 62 private: |
| 62 void Init(); | 63 void Init(); |
| 63 | 64 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 85 // The color when the link is pressed. | 86 // The color when the link is pressed. |
| 86 SkColor requested_pressed_color_; | 87 SkColor requested_pressed_color_; |
| 87 bool requested_pressed_color_set_; | 88 bool requested_pressed_color_set_; |
| 88 | 89 |
| 89 DISALLOW_COPY_AND_ASSIGN(Link); | 90 DISALLOW_COPY_AND_ASSIGN(Link); |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 } // namespace views | 93 } // namespace views |
| 93 | 94 |
| 94 #endif // UI_VIEWS_CONTROLS_LINK_H_ | 95 #endif // UI_VIEWS_CONTROLS_LINK_H_ |
| OLD | NEW |