Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(954)

Side by Side Diff: ui/views/controls/link.h

Issue 2413223003: Views:: Make Labels support text selection. (Closed)
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/controls/label_unittest.cc ('k') | ui/views/controls/link.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 GetAccessibleNodeData(ui::AXNodeData* node_data) override; 46 void GetAccessibleNodeData(ui::AXNodeData* node_data) 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
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_
OLDNEW
« no previous file with comments | « ui/views/controls/label_unittest.cc ('k') | ui/views/controls/link.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698