Chromium Code Reviews| Index: ui/views/controls/label.h |
| diff --git a/ui/views/controls/label.h b/ui/views/controls/label.h |
| index fbf67e796294c8e95a6197d065895f611c6cc91b..6293cff501081dba7bd287548fcdd42d8bf16161 100644 |
| --- a/ui/views/controls/label.h |
| +++ b/ui/views/controls/label.h |
| @@ -147,6 +147,13 @@ class VIEWS_EXPORT Label : public View, |
| // Get the text as displayed to the user, respecting the obscured flag. |
| base::string16 GetDisplayTextForTesting(); |
| + // Returns true if the label can be made selectable. For example, links do not |
| + // support text selection. |
| + // Subclasses should override this function in case they want to selectively |
| + // support text selection. If a subclass stops supporting text selection, it |
| + // should call SetSelectable(false). |
| + virtual bool IsSelectionSupported() const; |
|
msw
2016/12/13 03:04:56
nit: reorder function definition order to match th
karandeepb
2016/12/16 02:58:38
It is already matched, the order was probably inco
|
| + |
| // Returns true if the label is selectable. Default is false. |
| bool selectable() const { return !!selection_controller_; } |
| @@ -195,13 +202,6 @@ class VIEWS_EXPORT Label : public View, |
| SkColor disabled_color() const { return actual_disabled_color_; } |
| - // Returns true if the label can be made selectable. For example, links do not |
| - // support text selection. |
| - // Subclasses should override this function in case they want to selectively |
| - // support text selection. If a subclass stops supporting text selection, it |
| - // should call SetSelectable(false). |
| - virtual bool IsSelectionSupported() const; |
| - |
| // View: |
| void OnBoundsChanged(const gfx::Rect& previous_bounds) override; |
| void VisibilityChanged(View* starting_from, bool is_visible) override; |