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

Unified Diff: ui/views/controls/styled_label.h

Issue 2478863003: Fix the Web Bluetooth chooser when it is used on Chrome apps on non-Mac (Closed)
Patch Set: updated ChooserDialogViewTest 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/styled_label.h
diff --git a/ui/views/controls/styled_label.h b/ui/views/controls/styled_label.h
index 503f356ad4fbd979ff2a0b21f3b2ad4b2d556cfa..5ed7abac288e58e90cacf78592ef598eaaef52d2 100644
--- a/ui/views/controls/styled_label.h
+++ b/ui/views/controls/styled_label.h
@@ -68,6 +68,8 @@ class VIEWS_EXPORT StyledLabel : public View, public LinkListener {
// Sets the text to be displayed, and clears any previous styling.
void SetText(const base::string16& text);
+ void set_listener(StyledLabelListener* listener) { listener_ = listener; }
sky 2016/11/09 17:55:48 I would prefer not to expose this. I think it's mo
juncai 2016/11/09 20:25:02 Done.
+
const base::string16& text() const { return text_; }
// Sets the fonts used by all labels. Can be augemented by styling set by

Powered by Google App Engine
This is Rietveld 408576698